js_of_ocaml
js_of_ocaml copied to clipboard
Compiler from OCaml to Javascript.
We could greatly improve the code generated when compiling `cmo` files if we knew the arity of the functions exported by each module. This information could be stored in a...
It would be great to be able to generate Node.js style modules. One issue is that we currently access the elements of a module by index. It would be much...
https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers
Somehow it is annoying that self-recursive functions that go through a simple error monad do blow the stack. See for example here https://github.com/dbuenzli/otfm/commit/4ea6a34b884c5a680fa4333b79f6fd8117a0b8c0
# Description The parsing module runtime has a bug in `parsing.js`. In happened in the "ERROR_DETECTED" case. There's a break instruction that is breaking a for loop instead of breaking...
# Description While investigating #1307, I made this to try to understand what was going on. It implements the tracer of the `Parsing` module using `console.log` with minor differences with...
I'm trying to run OCaml programs on Windows through [JScript](https://docs.microsoft.com/en-us/previous-versions//hbxc2t98(v=vs.85)?redirectedfrom=MSDN) (an old implementation of ECMAScript 3). It's an easy and portable way to access COM (actually ActiveX) objects. A generator...
Are there instructions somewhere on how you are supposed to compile a toplevel ? I couldn't find that mentioned on the website. It seems something changed and my old runes...
A large jsoo application I've encountered at work spends about 9 minutes compiling with js_of_ocaml using direct-compilation (separate compilation is _much_ faster). Profiling the compiler shows that almost all of...
We're seeing this error when switching our code to use effects. Some screenshots: Here's a link to the compiled file: https://www.dropbox.com/scl/fi/9l8hcrlhk73ue9lx5hys6/interactive_with_effects_js.bc.js?rlkey=58xnqq9hxvnoh76uh0x7k4qjx&dl=0