News for hackers. Stuff that matters.
Re:Parser combinator library in C by jheriko on Tuesday August 07, 2012 @07:43AM (#4349598)
nice, but would be better to have something simpler that doesn't rely on various libraries and features that are typically forbidden in high performance environments.

incidentally almost every memory leak I deal with comes from not being allowed to allocate my own memory and having to fiddle around with gc and refcount rubbish.

I have written whole non-trivial games with no detectable leaks.

Re:Parser combinator library in C by wbhart on Tuesday August 07, 2012 @08:04AM (#4349648)
Could you provide some more information about "features that are typically forbidden in high performance environments".

Probably you want a parser expression grammar with a packrat parser if you really want speed anyway.

At the moment I am not smart enough to see how to implement combinators in C in an elegant way without GC of some form. But I'll think about it. Maybe something will occur to me.

Patches are welcome of course.

Re:Parser combinator library in C by jheriko on Tuesday August 07, 2012 @07:44AM (#4349602)
(without stopping to check for leaks half way through)