A crossword puzzle maker written in Scala.js

An example of a generated puzzle

An example of a generated puzzle

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.

This entry was posted in Scala, Web Development. Bookmark the permalink.