4 ms·
yes. and multithreaded. Theres no meaningful reason to use cljs other than to avoid java or if the java runtime isn’t available (eg. browser).
by shadowmint 9y ago
yes. and multithreaded.
Theres no meaningful reason to use cljs other than to avoid java or if the java runtime isn’t available (eg. browser).
- zcam 9y agostartup time: not sure it's good ux to wait seconds for every command... lumo/cljs is instantaneous
- Spivak 9y agoIt's not like you need to spin up a separate JVM for each command.
- shadowmint 9y ago500-600ms is, to be fair, a big one time cost. The downsides are pretty darn significant though. I can’t imagine a situation where I would trade ‘starts a bit faster’ for ‘throw away all parallelism in code’ personally... but hey. Plenty of people use node for very serious stuff. I suppose I just think this is an example of fast and cheap on the fast/cheap/good scale.
- lvh 9y agoBut this is a shell. You start _all the time_, including plenty of times where you don't really notice: other processes often start subprocesses via your shell to get your environment right. Meanwhile, the shell is usually just waiting for you, so it's not like it's an intrinsically parallel process. This doesn't impact the shell's ability to run multiple things at once: the shell eventually creates subprocesses. One would expect an event-loop like Node to be perfect for this sort of thing.