Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make OCaml the best scripting langauges #428

Closed
bobzhang opened this issue May 31, 2016 · 4 comments
Closed

Make OCaml the best scripting langauges #428

bobzhang opened this issue May 31, 2016 · 4 comments

Comments

@bobzhang
Copy link
Member

  • Bindings to NodeJS core libraries and Built in functions (JS built in functions are slow, but it is fine in such scenario)
  • Treating files ending with mlx in a special way, so that we compile it on the fly given the compiler is fast enough, (caching js files if is already built)
@bobzhang bobzhang added the ideas label May 31, 2016
@bobzhang
Copy link
Member Author

it's already there, time to create bindings for NodeJS!
https://github.com/bloomberg/bucklescript-addons

@bobzhang
Copy link
Member Author

bobzhang commented Jul 21, 2016

we can add an option as below:

bsc --bs-main main.ml

after all compilation, bsc will load nodejs to run main.js

User can also explicitly pass all files:

bsc --bs-main main.ml --bs-files *.ml *.mli

@bobzhang bobzhang added this to the prod-release milestone Jul 21, 2016
@bobzhang
Copy link
Member Author

note it can also be used as a webpack loader #561

@bobzhang
Copy link
Member Author

bobzhang commented Aug 5, 2016

now it's real see #594

@bobzhang bobzhang closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant