4 ms·
You sound like you have similar tastes to mine. If so, I'm guessing Scala.js's slow compiles and heavy output size is an annoyance. Check out BuckleScript/Reaso
by yawaramin 8y ago
You sound like you have similar tastes to mine. If so, I'm guessing Scala.js's slow compiles and heavy output size is an annoyance. Check out BuckleScript/ReasonML. Reason provides a new syntax for OCaml, in a way like what Elixir does for Erlang. Compile times are instant (I'm not exaggerating ... much), type system and inference are powerful (more than Scala), and output is extremely minimalistic ES5.
- virtualwhys 8y ago> I'm guessing Scala.js's slow compiles and heavy output size is an annoyance Compared to BuckleScript, sure, but that's an extreme outlier, near instantaneous whole project (wtf) compilation times with tiny output is most definitely not the norm. As a Scala.js user that is also subjected to the Angular/Ionic/Webpack world, the former is very fast, as in, 1-2 seconds incremental compilation, whereas the latter is a lumbering beast, often taking over 10 seconds for "live reload" for even the simplest of changes. In terms of output size, yes, there is the Scala collections "tax" (@150KB), but thereafter the bang-for-buck factor pays off -- all the power of Scala with minimal increase in bundle size.
- yawaramin 8y agoWell, sometimes you can't avoid it :-) But since you mentioned live reload, BuckleScript now also has instant live reload via a WebSocket connection to the browser: https://bucklescript.github.io/blog/2018/07/17/release-4-0-0#a-simple-approach-to-accelerate-feedback-loop-in-a-reliable-way https://bucklescript.github.io/blog/2018/07/17/release-4-0-0...