stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

[Build] Investigate Melange as an alternative to Js_of_ocaml #1361

Open WardBrian opened 1 year ago

WardBrian commented 1 year ago

Melange (https://github.com/melange-re/melange) recently hit 1.0 and (seemingly) offers similar features to Js_of_ocaml: https://melange.re/v1.0.0/melange-for-x-developers/#for-js_of_ocaml-developers

It would be interesting to build a version of stancjs with this tool instead (probably requiring some source edits, at a minimum a bump to OCaml 4.14). The main thing I am interested in is if the produced Javascript is faster than the existing (which would help RStan, see: https://github.com/stan-dev/rstan/pull/1087#issuecomment-1711751769)