vscode-ocaml icon indicating copy to clipboard operation
vscode-ocaml copied to clipboard

port from typescript to OCaml via BuckleScript?

Open bobzhang opened this issue 9 years ago • 6 comments

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)

bobzhang avatar Jun 21 '16 21:06 bobzhang

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!

hackwaly avatar Jun 22 '16 03:06 hackwaly

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.

bobzhang avatar Jun 22 '16 12:06 bobzhang

Seems we can directly write language support in OCaml by using https://github.com/Microsoft/language-server-protocol.

hackwaly avatar Jun 28 '16 03:06 hackwaly

@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

bobzhang avatar Sep 30 '16 02:09 bobzhang

Anything I could help?

bobzhang avatar Apr 08 '17 03:04 bobzhang

No, just because I'm lazy, and I'm a layman of ocaml.

hackwaly avatar Apr 09 '17 02:04 hackwaly