-
Notifications
You must be signed in to change notification settings - Fork 448
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 BuckleScript a drop in replacement for ocamlc
.
#638
Comments
Apologies if this is covered somewhere, but I did check the docs. |
note The missing part as you said, is the The other part is Note that you can customize |
Bob, about relocating output files. With |
Also, it seems that the most compelling feature is being able to take any of the OCaml libraries and trivially turn them into bs libraries. If bs supported the exact compiler interface as |
It is fine to do To make it work with #.
#. replace We can provide a dummy option support for |
That is a typical npm setup. We need to build everything into
If BuckleScript's CLI API matched Is I think a dummy I think I'm just not seeing the benefits of deviating at all from the ocaml compiler flag API, but I'm sure you've thought of good reasons. |
The problem of |
You could put that burden on the person who supplies the |
That would be too restrictive to normal users. I am a little worried that if the author of the package does not have interest or minimal commitment to support buckle, this would not be a sustainable effort, since there are a number of ways to break it, introducing c stubs without providing JS polyfills (via deps or using The scala community does have some special build rules to make it work in scalajs, tweaking the build system with some extra flags is the minimal effort compared with other more subtle stuff, just my opinions. Btw, if other people are interested in contributing, we can discuss how to make it work better |
My company is considering moving some of our existing OCaml code to run on Node.js to leverage existing JS libraries. Not being able to use opam deps is a major blocker for existing code with transitive requirements. We would be willing to lend some effort to make this easier. Currently, it seems like a viable path for us might be to use JS-of-ocaml and Bucklescript in the same Node.js process, with some codegen to simplify talking between them. |
Yeah not being able to use PPX's easily via opam has stalled a lot of what I've been doing... ^.^; |
Looks like this issue is no longer relevant? |
Yes, this does not seem relevant anymore, closing. |
I'm aware that
bsc
can be used for the most part exactly likeocamlc
, but I am not clear if there are some differences. Could you please enumerate howbsc
is not quite a drop in replacement forocamlc
, and what needs to be done to make it a drop in replacement?Suppose we have our custom jenga rules that builds using
ocamlc
and produces libraries using-a
for example. It would be awesome if you could simply change all of the references toocamlc
withbsc
. What will it take to do this, and should it be a goal? It would tremendously help with the goal of being able to compile a library to either JavaScript or native.The text was updated successfully, but these errors were encountered: