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

Great example for why you might actually want to use node.js: being able to ensure your rendering code runs identically on the client and the server. That's something no other language can offer as cleanly or natively for the next few years.


scala + scalaJS IMHO does it better right now (with a lot more type safety and a lot more performance on the server)


You can't actually run a JS framework faster from within the JVM than you can in V8. And if you're writing all your code in Scala, then you're losing the productivity benefits of having a real UI framework written in JS.


I think you are missing the point.

My server code is running Scala on the JVM on the server, which is JITted down with all the magic of the JVM into native, and running full steam.

My client code is cross compiled javascript that the browser does it's thing client side.

The magic is:

1) Both parts are the same codebase, I can share data objects and logic between platforms

2) I get actual static typing on everything. Not some kind of fake static typing like coffeescript. So just the fact that my code compiles makes my code roughly equal to a mess of Javascript with a bunch of tests hitting the happy path.

3) I get to write in an actual decent language, not Javasript, the worse language to ever write in.

Javascript is the new assembly. It's great, but I never want to touch it! If I can touch a higher level language, why wouldn't I?


Not sure you understood that.

I've been doing this for a while, after being sick of all those poor quality JavaScript frameworks and it works perfectly fine.

Usually the "main" JavaScript framework code is bloated, but kind of working, but as soon as you need some add-on or extension you are entering bug hell.

I'll just write the code in Scala, and have the assurance that it works without having to deal with unmaintained, bug-filled JavaScript libraries.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: