lady-deirdre
micro-mitten
lady-deirdre | micro-mitten | |
---|---|---|
1 | 1 | |
70 | 531 | |
- | - | |
5.2 | 0.0 | |
about 1 month ago | almost 4 years ago | |
Rust | Rust | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lady-deirdre
-
Why Split Lexing and Parsing into Two Separate Phases?
Well, my personal experience was in the opposite direction actually.
I used to use combinators-based approach without Lex/Syn separation (aka PEGs) for a long time. But then I came up to understanding that the separation approach is actually better in performance. And also that working and debugging of the Token sequences while writing parser manually is just more handy (at least for me).
But this is my personal experience of course. I do believe too that it all depends on the goal, and parsers micro-optimizations is not that much critical in many cases, and that combinators approach actually works quite well too.
As of Nom, I can say that it works quite well. But I think that the it's performance gains stem from the fact that Rust is a systems-based PL, and it optimizes function combinations just better than, let say, JavaScript or Python.
In my incremental parsers library Lady Deirdre I utilize Lex/Syn separation, and the LL(1) recursive-descend parsing, and it shows much better performance than in Tree-Sitter at least on relatively big files [1].
[1] https://github.com/Eliah-Lakhin/lady-deirdre/tree/master/wor...
micro-mitten
-
Does such a language already exist ("Rust--")?
Micro-mitten (different approach but should be nearly as fast and safe)
What are some alternatives?
comemo - Incremental computation through constrained memoization.
mmtk-core - Memory Management ToolKit
zz - πΊπ ZetZ a zymbolic verifier and tranzpiler to bare metal C
lexgen - A fully-featured lexer generator, implemented as a proc macro
seize - Fast, efficient, and robust memory reclamation for Rust.
pony-tutorial - :horse: Tutorial for the Pony programming language
firefly-boot - Bootstrap compiler for Firefly
Carp - A statically typed lisp, without a GC, for real-time applications.
TablaM - The practical relational programing language for data-oriented applications