News for hackers. Stuff that matters.
Re:Ask HN: What side projects are you working on? by papaf on Thursday February 27, 2014 @04:36PM (#7315278)
How do you even start writing something like that?
Re:Ask HN: What side projects are you working on? by gosu on Tuesday March 04, 2014 @11:11PM (#7345221)
Well, I'd done a small kernel for a class. Later, I wrote a lockfree malloc and realized that large lockfree programs are actually pretty managable, and that was the start. It's generally just a matter of designing around simple data structures (which are the only ones you can really do lockfree) and a repetition of some key tricks like refcounting, generation counting, and type-stable memory. Writing the data structures and primitives was tough, but otherwise you don't have to worry about locking and things come out quite neatly as a result.