News for hackers. Stuff that matters.
Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by IshKebab on Wednesday February 22, 2023 @02:48PM (#34901586)
What's the advantage of defining the grammar in Rust? JavaScript is admittedly an odd choice, but it works, there are a ton of grammars out there and it isn't needed at runtime.

Changing the runtime to Rust is very useful though - I've wanted that for a long time to make WASM and cross compilation easier.

Re:Rust-sitter: Define your entire tree-sitter grammar in Ru... by hardwaregeek on Wednesday February 22, 2023 @04:08PM (#34902768)
The ability to define the grammar via high quality Rust bindings is pretty inspired imo. It gets you waaaay better bindings than the homogenous Node type that tree-sitter provides you.