Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Always been curious about workflow of people who use Scala.js. I am a complete newbie when it comes to frontend. How do you do frontendish interactive development considering scalac's slowness?


scalac is only slow when it needs to compile an entire project. But the Scala tooling ecosystem has invested a lot in incremental compilation, which means that most of the time when you make a change, only 1 or 2 files are recompiled, which is quite snappy. In turn, the Scala.js linker also performs its linking and optimizations incrementally, so that in an interactive development setting, the whole cycle is quite fast.


fine, but what tooling/workflow would one use for the type of development javascripters are accustomed to? Like make a change and immediately observe result on the page?


Workbench [1], for example :)

[1] https://github.com/lihaoyi/workbench


Also, if you use webpack (directly or through scalajs-bundler), the use of webpack-dev-server makes live loading automatic.


Thank you. Did not know about this plugin




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: