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

It supports Node.js or is only for web applications?


It supports Javascript. Node.Js runs on Javascript.

Draw your conclusions.


True, but its main target is definitely the browser. The stand-alone interpreter of Node.js can run code written in Scala.js, and is actually used for benchmarks (along with d8) [1]. However, Scala.js does not emit Node.js modules, nor does it provide any built-in way to import other Node.js modules.

[1] https://github.com/jonas/scalajs-benchmarks




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: