Re:Erjang is a virtual machine for Erlang, which runs on Java
by silentbicycle on Friday December 04, 2009 @10:33AM
(#976486)
Right, and due to Erlang's lightweight processes, it's not unusual to have a process finish before it needs to do any garbage collection. You can tune for this by spawning a process with a larger heap than the default - if you know that it tends to grow up to a certain size and then finish, you can just spawn it with that much to start and it will skip GC entirely.
Will be interesting to see what happens, no doubt. Message copying will have to be implemented, anyway, for inter-node communication.
I don’t know how Java’s various garbage collector compares to the one in Erlang, but I guess that Java’s is significantly faster.
Doubtful. A garbage collector specially designed for small heaps, running on such, will outperform Java's general-purpose ones. Also, Erlang's GC is stop-the-world (where "world" here is an Erlang process), and that yields numerous benefits. I think Java's GC will not be better for erjang.