logoalt Hacker News

marcosdumay11/08/20241 replyview on HN

> Especially if you need to do runtime parsing in a network service serving large traffic

Yeah, that's the focus of it, and the thing you can use Rust well.

All the popular Rust parsing libraries aren't even focused on the use that most people use "parser" to name. They can't support language-parsing at all, but you only discover that after you spent weeks fighting with the type-system to get to the real PL problems.

Rust itself is parsed by a set of specialized libraries that won't generalize to other languages. Everything else is aimed at parsing data structures.


Replies

pimeys11/08/2024

There is also the rust-analyzer which is a separate binary. Should compile with a stable rust compiler. I remember reading it's source together with the zig compiler. Both are quite impressive codebases.