Remix.run Logo
vjerancrnjak 6 hours ago

It’s funny how there is continuous reinvention of parsing approaches.

Why isn’t there already some parser generator with vector instructions, pgo, low stack usage. Just endless rewrites of recursive descent with caching optimizations sprinkled when needed.

zahlman an hour ago | parent | next [-]

Because you have to learn how to use any given parser generator, naive code is easy to write, and there are tons of applications for parsing that aren't really performance critical.

embedding-shape 5 hours ago | parent | prev | next [-]

Hardware also changes across time, so while something that was initially fast, people with new hardware tries it, finds it now so fast for them, then create their own "fast X". Fast forward 10 more years, someone with new hardware finds that, "huh why isn't it using extension Y" and now we have three libraries all called "Fast X".

high_na_euv 5 hours ago | parent | prev | next [-]

I'd say because parsing is very specific kind of work heavily dependent on the grammar you're dealing with

mgaunard 5 hours ago | parent | prev [-]

There are good parser generators, but potentially not as Rust libraries.