News for hackers. Stuff that matters.
Re:Show HN: A 6KB, fast and mostly-correct XML parser in C by mtdewcmu on Friday November 15, 2013 @11:26AM (#6740256)
Ah. I have not yet looked too far into how yxml works. I never came up with a perfectly satisfactory solution to the zero-buffer problem myself, but you've hit on a lot of the things that make it a hassle either way. It's almost impossible to do a usable xml parser under the assumption that it will not buffer and it will not be guaranteed access to more than one character at a time. I started developing one like that based on a goto-driven state machine, but I stopped working on it, because the interface was going to be too inconvenient.

What I meant about blocking was blocking on malloc. It sounds like you're expecting the caller to take care of allocation?

There are no comments on this comment yet.