News for hackers. Stuff that matters.
Re:Teaching the Essentials of Garbage Collection by aidenn0 on Wednesday April 17, 2013 @03:13AM (#5563151)
That's actually pretty cool; I remember the joy when my own malloc/free ran without crashing real-world programs; doing the same witha GC would be both satisfying and a good way to find bugs.
Re:Teaching the Essentials of Garbage Collection by gliese1337 on Tuesday April 16, 2013 @07:00PM (#5561497)
I've actually used this system as a student in a programming language design class, in which we had to implement semispace and mark-and-sweep collectors. I had the misfortune (unique in 2 sections of the class that semester) of running into a bug in the framework, but I believe that got fixed, and it was otherwise pretty dang cool.
Re:Teaching the Essentials of Garbage Collection by seivan on Tuesday April 16, 2013 @09:58PM (#5562189)
We used C++ to write a game and _SOMEHOW_ without knowing properly about how GC worked - learned to write our own garbage collectors for projectiles that went out of screen and enemies that died. :) It was basically the eye opener for how GC's worked. Though I am sure it's faaaaaar more complicated than the Sets we used to keep track. It still made me better at manually handling memory.

That being said, I prefer GC and/or Automatic Reference Counting at compile time. Still though, it was a nice "feeling" to manage your own memory in an (incredibly small) project.

Re:Teaching the Essentials of Garbage Collection by malkia on Tuesday April 16, 2013 @11:14PM (#5562459)
"GC and/or Automatic Reference Counting at compile time" - What do you mean by that?
Re:Teaching the Essentials of Garbage Collection by bennyg on Wednesday April 17, 2013 @12:39AM (#5562712)
He's probably talking about ARC for Objective-C, that automatically releases references and allocations when it's impossible for those allocations to be used again in scope.
Re:Teaching the Essentials of Garbage Collection by seivan on Wednesday April 17, 2013 @02:32AM (#5563030)
Heh, I would have thought spelling the acronym out might be more clear than just typing ARC.
Re:Teaching the Essentials of Garbage Collection by shin_lao on Wednesday April 17, 2013 @02:53AM (#5563085)
Re:Teaching the Essentials of Garbage Collection by optiminimalist on Tuesday April 16, 2013 @06:21PM (#5561328)
That looks like a great tool! I recently took a class in programming language design where we had to implement a simulated Treadmill garbage collector using a circular linked list in Java. It taught us the basics of how the algorithm works but not really how it functions within the context of an actual programming language implementation.

The proposed framework looks like it has a lot of potential.

Re:Teaching the Essentials of Garbage Collection by lifthrasiir on Tuesday April 16, 2013 @10:44PM (#5562351)
Brown PLT is jokingly said to do every programming language research unrelated to the type theory (not saying the type theory is unimportant of course). I hope to see more researches and directions like that.
Re:Teaching the Essentials of Garbage Collection by rayiner on Tuesday April 16, 2013 @08:08PM (#5561745)
This is really an awesome pedagogical tool.