News for hackers. Stuff that matters.
Re:MyHTML – HTML Parser on Pure C with POSIX Threads Support by Mikhail_Edoshin on Saturday March 12, 2016 @11:24AM (#11273370)
Basic XML parsing should be very simple, it's deterministic with one-symbol lookahead. There's a number of small C parsers out there and even one written in assembly. If you want to validate it though or parse DTDs, that's a different story.
Re:MyHTML – HTML Parser on Pure C with POSIX Threads Support by gsnedders on Saturday March 12, 2016 @01:04PM (#11273774)
DTDs really are the thing that should never have been in XML. Namespaces in XML make them pretty useless, given they only have a concept of QNames and not namespace URL & local name tuples, and they don't compose in any sensible way. They are such a large part of the complexity of the XML it's just sad.
Re:MyHTML – HTML Parser on Pure C with POSIX Threads Support by agumonkey on Saturday March 12, 2016 @11:45AM (#11273433)
Indeed that's why I was surprised to be 200x slower than libxml2. A lesson in performance.
Re:MyHTML – HTML Parser on Pure C with POSIX Threads Support by khedoros on Sunday March 13, 2016 @04:00AM (#11276683)
Any idea what the cause of the bottleneck is?