Company
Date Published
Author
Aljaž M. Eržen
Word count
2585
Language
English
Hacker News points
None

Summary

EdgeDB, a database designed with developers in mind, has been focusing on enhancing the developer experience by working on a Language Server Protocol (LSP), which would provide code completion, error highlighting, and automatic code formatting in integrated development environments. The main challenge in implementing LSP was the existing parser, which required improvements in error recovery and needed to be rewritten in Rust for compatibility with EdgeDB's CLI and WASM builds. The team explored various options including Chumsky and Tree-sitter but ultimately decided to extend their existing parser and rewrite it in Rust, which resulted in a more efficient parser with a 26% improvement in EdgeQL query compilation speed. This new Rust parser not only enhances current performance but also sets the stage for future developments like LSP, promising a more intuitive and effective experience for developers working with EdgeDB.