News for hackers. Stuff that matters.
Re:Show HN: Python bindings to the Servo HTML5 parser, html5... by git-pull on Tuesday June 20, 2017 @02:56AM (#14592674)
This is exciting. It's using Cython [1]

To the author:

What do you feel about binding python to rust? Did you use any tutorials?

[1] https://github.com/tbodt/htmlpyever/blob/880da57/setup.py#L5

Re:Show HN: Python bindings to the Servo HTML5 parser, html5... by gsnedders on Tuesday June 20, 2017 @08:58AM (#14594224)
Seems to be using lxml's C API for treebuilding; I wonder how that compares (perf wise, primarily) to using libxml2 directly and then calling adoptExternalDocument?
Re:Show HN: Python bindings to the Servo HTML5 parser, html5... by tbodt on Tuesday June 20, 2017 @08:00PM (#14599572)
I did not know adoptExternalDocument existed...
Re:Show HN: Python bindings to the Servo HTML5 parser, html5... by gsnedders on Wednesday June 21, 2017 @06:49AM (#14602588)
Heh, okay, so it wasn't a deliberate decision!