4 ms·
Erjang exists, but it seems pretty dormant. JVM and BEAM have pretty different philosophies, so while you could probably add messaging and distribution to JVM,
by toast0 5y ago
Erjang exists, but it seems pretty dormant. JVM and BEAM have pretty different philosophies, so while you could probably add messaging and distribution to JVM, I don't think it would be the same. I think it would be hard to get one thread-like thing per connection and millions of connections per OS process to work on the JVM, unless you can get OS threads to scale that high (which seems unlikely?).
- the_only_law 5y ago> but it seems pretty dormant. It’s been getting an RC for the newest version like monthly?
- toast0 5y agoLast commit is 2016? https://github.com/trifork/erjang/ https://github.com/trifork/erjang/
- dgb23 5y agoThere is Project Loom[0] which seems to promise some of what you describe. [0] https://wiki.openjdk.java.net/display/loom/Main https://wiki.openjdk.java.net/display/loom/Main
- toast0 5y agoYeah, that might do it, although from a brief skim, I suspect it's likely to end up with function color issues making it hard to really embrace virtual threads. Interesting to read about, thanks.
- kimi 5y agoNo - they are doing the opposite. A "lite" thread will be a thread, period. It has a different implementation, but it behaves the same way. You ask for one or the other, but they basically work the same way from the PoV of the programmer.
- MrBuddyCasino 5y agoProject Loom is the only approach that truly promises to solve function colouring, user code just uses the thread API, while the underlying implementation can be swapped out transparently. I'm not aware of any other ones that do this (not, not even Zig).