port from typescript to OCaml via BuckleScript?
This is a very nice project, it would be fun to write FFI code in OCaml/BuckleScript(https://github.com/bloomberg/bucklescript) and compile it into JS, I would like to help if you have interest, thanks!
Note it's possible to write runtime-free OCaml code (genereate very small/clean JS footprint without any runtime libs from OCaml)
Thanks for your suggestion! I've noticed BuckleScript for a while. It's great!
Currently vscode-ocaml has nothing complex. I can't find anything that can be written in OCaml to gain benefits. Though rewritten in OCaml is cool, but cool is not the goal.
Typescript is fit well for extension development. I use async/await a lot. And I often debug extension (for now there is no automatic test). I guess both async/await and debug are missed in BuckleScript.
I'll consider use BuckleScript in my other projects. Thank you!
hi @hackwaly , thanks for your reply, indeed, it is mostly for social reasons. we do have support for debug, via [%bs.debugger], our intern is working on promise bindings for bucklescript, I will ping you again when it's ready, nice work, keep going! feel free to close this issue.
Seems we can directly write language support in OCaml by using https://github.com/Microsoft/language-server-protocol.
@hackwaly clearly, this is getting more usable than I tried last time, and so is BuckleScript, maybe it is time to rewrite this plugin in OCaml and compile it into JS. There is no immediate benefit but it definitely would attract more ocaml developers to contribute cc @freebroccolo
Anything I could help?
No, just because I'm lazy, and I'm a layman of ocaml.