Hacker News new | past | comments | ask | show | jobs | submit login

I like the idea, and it could work in many cases, but it's hard to make it truly universal. For example languages like Lua, Java and C# have finalizers, and JavaScript GCs do not, so you can't reuse the outer GC. Other possible issues are weak refs, etc.

So even if we duplicate by compiling another GC, we are enabling new types of GCing, it isn't an exact clone.




While Java does have finalizers, there is no guarantee that they will run. In other words, a valid implementation could just skip running them at all.


That's a good point, and a shame as well. Hopefully they both get added to the language at some point and we can move towards something like this.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: