Lately I’ve been trying out Scala.js and Scala 3.
As a test, I have taken an old project of mine – a crossword puzzle generator, and compiled it with Scala.js. This is a CPU-intensive application, as it tries to create crossword puzzles with maximum density. To do this, it tries out lots of different possibilities of combining words – and this takes time.
However, the speed of modern browsers and the efficiency of compiled Scala.js code makes it possible that this application now runs in the browser, and still remains fast enough to be usable. However, the native JVM version is still faster, but I have not measured this.
- Try out the puzzle maker here: https://papauschek.github.io/crossword-puzzle-maker
- or check out the code here on GitHub: https://github.com/papauschek/crossword-puzzle-maker