all AI news
Ruff v0.4.0: a hand-written recursive descent parser for Python
Simon Willison's Weblog simonwillison.net
Ruff v0.4.0: a hand-written recursive descent parser for Python
The latest release of Ruff - a Python linter and formatter, written in Rust - includes a complete rewrite of the core parser. Previously Ruff used a parser borrowed from RustPython, generated using the LALRPOP parser generator. Victor Hugo Gomes contributed a new parser written from scratch, which provided a 2x speedup and also added error recovery, allowing parsing of invalid Python - super-useful for a linter.
I tried Ruff 0.4.0 …
compilers contributed core generated generator hugo linter python recursive release ruff rust victor