News for hackers. Stuff that matters.
Re:WebAssembly: a binary format for the web by pmelendez on Sunday November 01, 2015 @06:01PM (#10488862)
Not sure why you think a GC is a good thing. Deterministic object disposal is to me way more convenient and safe than a GC (haven't you ever experienced a race when the GC dispose your memory too soon or not soon enough?)
Re:WebAssembly: a binary format for the web by pinealservo on Sunday November 01, 2015 @08:11PM (#10489339)
There are definitely reasons for manual memory management to still be a thing, but if a GC disposes of memory "too soon", i.e. when there are still live references to the memory, then it is a bug in the GC or in some FFI code that didn't manage interaction with the GC correctly.

GC is generally a good thing precisely because it prevents use-after-free errors and enables programming at a higher level without worrying about memory management. There is often a performance cost to this, it's true, but for large classes of programs it's a cost that's worth paying.

Re:WebAssembly: a binary format for the web by mrec on Sunday November 01, 2015 @06:08PM (#10488883)
If you're hitting race conditions based on when GC runs, I'm pretty sure you're doing it wrong. Java does deterministic destruction of resource-holding objects via try-with-resources, not GC.
Re:WebAssembly: a binary format for the web by pjmlp on Monday November 02, 2015 @02:52AM (#10490589)
Deterministic object disposal is quite easy to do in GC languages, provided they support higer order functions.

It is no different than imposing a programming pattern like RAII.