4 ms·
Funnily enough erlang does not have these horrible GC issues people are seeing in .NET and the HotSpot JVM.
by bfrog 15y ago
Funnily enough erlang does not have these horrible GC issues people are seeing in .NET and the HotSpot JVM.
- derleth 15y agoYeah, but Erlang is a fake language, and fake languages are known for doing impossible things. ;)
- wglb 15y agoYou have my curiosity piqued. Why is that?
- derleth 15y agoApparently, the secret of Erlang garbage collection is that it's done per-thread, and the whole Erlang model is based on spawning many threads. As a result, each thread only has a few K of RAM to collect, as opposed to a bigger pool per thread for Java. http://prog21.dadgum.com/16.html http://prog21.dadgum.com/16.html
- simcop2387 15y agoI imagine that some of it is also the almost entirely strictly functional design of the language. Some of the ways it makes you write things should make certain tasks like that easier for the compiler. It should be almost always known at compile time when it'll be able to reap things.
- derleth 15y agoRight. For one thing, nothing in Erlang is mutable: To change something, you copy it and change the copy. This sounds like it should make generational garbage collection easier (to a first approximation, nothing in the older generation is being used) but I don't know.