3 ms·
Among reasonable programming languages (as defined in this article), which one compiles to the most optimized JavaScript that can efficiently interoperate with
by mwcampbell 6y ago
Among reasonable programming languages (as defined in this article), which one compiles to the most optimized JavaScript that can efficiently interoperate with external JS code? Reason or OCaml via BuckleScript? F# via Fable? Scala? Maybe Kotlin is close enough?
- scns 6y agoI would bet my money on Bucklescript/ReasonML/ReScript. https://github.com/rescript-lang/rescript-compiler/wiki/Why-bucklescript-matters-for-Javascript-platform https://github.com/rescript-lang/rescript-compiler/wiki/Why-... https://www.javierchavarri.com/performance-of-records-in-bucklescript/ https://www.javierchavarri.com/performance-of-records-in-buc... Its Standard library Belt is optimized to compile to efficient JS too. (edit: added line about Belt)
- qsort 6y agoIs Reason even actively developed these days? Isn't it sort of a dead project, or have I misunderstood something?
- mwcampbell 6y agoI just discovered that the BuckleScript team started a rebranding to ReScript a few months ago: https://rescript-lang.org/ https://rescript-lang.org/
- qsort 6y agoYeah, that's the issue with this kind of tools, unfortunately. I myself would like a more functional-oriented approach, but realistically JS/TS is a more stable ecosystem. My go-to choices are JS for small individual projects and TS for larger projects or if a team is involved.