You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, any kind of exceptions is slow on Javascript, I believe. So I suspect that it would work better to just rewrite code to not use exceptions for control flow (I have already done large parts of it in #768 and siblings), and it is not that much work.
It is maybe not that much work, but I disapprove the fact that idiomatic OCaml code should be rewritten because of the JS crowds.
One should never program anything serious in JS.
The way forward would be via some preprocessing first.
Then, if alternative versions are contributed (which should not insert performance regressions for regular OCaml users), we could remove the preprocessing hack little by little.
in case exceptions are used for control flow, we should use faster exception throwing
since the stack trace will never be needed
This is just a proposition. If other maintainers agree, this could be labelled an improvement
and beginner task.
I don't know if this has any benefit for the js_of_ocaml crowds.
The text was updated successfully, but these errors were encountered: