I ported Tree-sitter to Go
90x faster incremental parsing in pure Go—tree-sitter without C toolchain friction.
Pure JavaScript port of SQLite's LALR(1) SQL parser with improved error messages
Patched Lemon to dump parse tables to JSON for a 200x speedup.
JavaScript developers building SQL tools or editors
node-sql-parser · pgsql-ast-parser · sql.js
SQLite uses a LALR(1) parser generator call Lemon (similar to Yacc). I patched Lemon to dump its parse tables to JSON, then ported SQLite's [parse.y][] grammar to TypeScript with some help from Claude. The result is this library, which I think is the fastest JavaScript SQL parser out there:
~2.5x faster than liteparser (wasm) ~6x faster than @guanmingchiu/sqlparser-ts (wasm) ~10x faster than node-sql-parser ~100x faster than pgsql-ast-parser ~200x faster than sqlite-parser ~250x faster than @appland/sql-parser
This shipped in Notion a few weeks ago and cleared up some sporadic crash reports where the library we previously used choked on valid input.parse.y: https://github.com/justjake/sqlite3-parser-js/blob/main/vend...
90x faster incremental parsing in pure Go—tree-sitter without C toolchain friction.
424k statements/sec with zero dependencies — sqlparse can't match this performance.
Hand-coded parser beats established libraries on speed but remains alpha quality.
Pure Rust autodiff + GPU math avoids C++ FFI hell, but matmul claim needs apples-to-apples benchmarks.
Complete SQLite parser in C with AST generation for tooling and AI systems.
Browser-based missile intercept physics sim with zero dependencies and realistic Mach constants.