TL;DR : is good and convenient with same language (JavaScript). All great reasons to code in Clojure(script) and CLJC, when you are using the same (excellent) language everywhere but also with the benefits of incomparable JVM and Java ecosystem on the backend, and JS ecosystem for the front. We can throw in a REPL for good measure, too.

Or maybe you just use Azure or AWS and spin up a dedicated server for each app, so don't feel you need JVM. Then it's only the superior language factor.

@worldsendless node is nice because it brought us libuv which is an async socket framework used for high throughput :ablobcatbongokeyboard:

never used clojure though. lisps are nice.
Follow

@icedquinn Thanks! I hadn't heard of libuv. I'm still trying to wrap my head around it, but I see things like vert.x that might be the JVM contender in the same space? Here is some OLD (2012) news that seemed to relate. news.ycombinator.com/item?id=3

@worldsendless the main win is just async dispatch, really. anything that implements fibers/green threads on top of an async dispatcher to wake them up is going to outperform anything that uses the old blocking threads model. on the plus side fibers look nicer than the callback hell of nodejs.

a long time ago there was much screaming about how the BSDs had things like kpoll and kqueue which let you pause a program until any one of a collection of file descriptors had something to read, which was instrumental in solving the c10k problem.

apple had grand central, BSDs had kpoll/kqueue. erlang channels already worked like this but most people are allergic to erlang. libuv+nodejs basically pushed async to the forefront because webshit bootcampers could use it by default (in java it's not default; you have to specifically use newio/netty/etc.)

I forget if Go does async networking. there is some machinery where a goroutine sometimes occupies a thread and sometimes doesn't, i think it may try to if it can (and fall back to multithreading if it can't) but i've been out of that game.
@worldsendless Hotspot is one of the most advanced JIT/compilers on the planet so it will be very hard to displace.
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.