hhugo
hhugo
> I ended up hitting a recursion limit, and there's no way to configure it. So I guess that wouldn't ever run reliably. Can you show the exact error ?...
Turning into draft while I investigate CI failures
Quick answer: Related to https://github.com/ocsigen/js_of_ocaml/pull/978. Remove `-no-runtime` and and the explicit `+runtime.js`. I could look at a longer answer after I'm back at a computer.
The two other `+file.js` files are still required. See https://github.com/ocsigen/js_of_ocaml/blob/master/toplevel/examples/lwt_toplevel/dune
Can you share some code reproducing the issue ? What's the size of the bytecode file ? Have you tried `--disable inline` ?
> without --sourcemap: 0.5s > without --sourcemap and all input .js files don't have a sourcemap comment: 0.08s #1313 should reduce this difference. > with --sourcemap: 5.1s > without --sourcemap:...
> Passing --sourcemap makes basically every pass in the compiler dramatically slower, including codegen. passing --sourcemap forces the debug info to be read and used. You can achieve the same...
Here is a minimal repro case. 500 consecutive function calls ``` $ ocaml a.ml && ocamlc -g a.ml -o a.byte && js_of_ocaml --debuginfo --debug times a.byte ... Start Generation... code...
Could you give more details about the current implementation ? Why is it done this way ? Can't we update positions as we traverse the automation, instead of doing a...
There is a lot of room for optimization. Offset tracking could be shared between bindings. For example, in`(Plus 'a' as a), (Plus 'b' as b)`, end of binding a equals...