TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Python bindings to the Servo HTML5 parser, html5ever

146 pointsby tbodtalmost 8 years ago

4 comments

pcwaltonalmost 8 years ago
The html5ever parser source [1] is remarkably easy to read, since it uses the Rust macro system to represent the state transitions declaratively. It also uses pattern matching to nice effect.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;servo&#x2F;html5ever&#x2F;blob&#x2F;master&#x2F;html5ever&#x2F;src&#x2F;tokenizer&#x2F;mod.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;servo&#x2F;html5ever&#x2F;blob&#x2F;master&#x2F;html5ever&#x2F;src...</a>
评论 #14594144 未加载
评论 #14591566 未加载
评论 #14593364 未加载
edoceoalmost 8 years ago
This one and <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14588333" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14588333</a> should fight.
git-pullalmost 8 years ago
This is exciting. It&#x27;s using Cython [1]<p>To the author:<p>What do you feel about binding python to rust? Did you use any tutorials?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;tbodt&#x2F;htmlpyever&#x2F;blob&#x2F;880da57&#x2F;setup.py#L5" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tbodt&#x2F;htmlpyever&#x2F;blob&#x2F;880da57&#x2F;setup.py#L5</a>
评论 #14594224 未加载
Animatsalmost 8 years ago
This sounds useful. It should parse the same way Firefox does.
评论 #14593296 未加载