chumsky
redis-rs
Our great sponsors
chumsky | redis-rs | |
---|---|---|
54 | 14 | |
3,252 | 3,362 | |
- | 2.2% | |
9.0 | 9.0 | |
10 days ago | 1 day ago | |
Rust | Rust | |
MIT License | GNU General Public License v3.0 or later |
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.
chumsky
-
Lezer: A Parsing System for CodeMirror, Inspired by Tree-Sitter
I attempted to use this but was disheartened but the fact that it doesn't statically type node names. Tree Sitter doesn't either but it has much more of an excuse given that it targets C.
https://github.com/lezer-parser/lezer/issues/8
The dev seems mildly hostile to outside involvement too, so I moved on. These days I use Chumsky which is Rust rather than Typescript, but also way more awesome, if you can deal with the often incomprehensible compilation errors at least!
-
nom > regex
there’s also chumsky: https://github.com/zesterer/chumsky
-
loxcraft: a compiler, language server, and online playground for the Lox programming language
rust-langdev has a lot of libraries for building compilers in Rust. Perhaps you could use these to make your implementation easier, and revisit it later if you want to build things from scratch. I'd suggest logos for lexing, LALRPOP / chumsky for parsing, and rust-gc for garbage collection.
-
Examples of function-based parsers in chumsky? Examples of unit tests?
The examples that come with chumsky and the chumsky tutorial and guide all define their parsers using closures.
-
pep-508 v0.2.1 - Zero copy Python dependency parser written with chumsky
chumsky's zero-copy rewrite has reached its first alpha release, and I have migrated my pep-508 parser to it, as suggested in my last announcement.
-
winnow = toml_edit + combine + nom
On my side, nom is still advancing well and a new major version is in preparation, with some interesting work a new GAT based design inspired from the awesome work on chumsky, that promises to bring great performance with complex error types. 2023 will be fun for parser libraries!
-
Rust implementation of Python dependency parser for PEP 508
I am using chumsky because I like the API, but it doesn't support zero copy at the moment. Although efficiency is good to have, it is not my primary good. This will probably get supported once chumsky implements support for it (see upstream issue).
-
Question about lexer and parser generators in Rust
Checkout https://github.com/zesterer/chumsky or https://github.com/rust-bakery/nom
-
whkd: A simple hotkey daemon for Windows
Getting the basics of this project done was surprisingly easy thanks to chumsky, which I'm sure most people know about by now, and a little-known but quite ergonomic crate for handling system-wide hotkeys on Windows called windows-hotkeys.
-
Error Handling Round-Up
BTW: The sister project https://github.com/zesterer/chumsky/ pre-implement this with a relatively easy interface. But doing it manually is totally doable and something I'm working on: https://github.com/Tablam/TablaM/tree/master/src/parser
redis-rs
-
Meet Fred: The most awesome Redis client for Rust.
The goto Redis client for Rust is called redis-rs. It has over 3k stars on Github. but I found it very annoying to use because I quickly found out that if you want to set any value you had to get a mutable reference to the underlying client. Which meant great pain to store Redis client in the global scope. People who do not know what a mutable reference is consider the let keyword in JavaScript. you can mutate or change a variable that is initiated with let.
-
[I made this] – staticPi – websocket forwarder
staticpi, is a websocket forwarding service. Basically, it enables one to keep a Raspberry pi, or any computer, “connected”, in order to send and receive messages to and from any client, without having to deal with a static IP address, open ports on your router, or similar. Built in Rust, using axum, which in turn uses tungestine-rs for the websocket connections, tokio, sqlx, redis-rs and others.
-
A Rust client library for interacting with Microsoft Airsim https://github.com/Sollimann/airsim-client
redis (use streams and pubsub)
-
Redust: a new Redis client
Are you addressing the long-standing issue that the redis client has related to dropped connections?
redis: by far the most popular and definitely the most ergonomic library. However, I was frustrated by its pubsub support; while generally acceptable, it's impossible to perform subscription operations while consuming messages. I like the library, but the workarounds to this issue were unacceptable to me.
-
Chumsky, a parser combinator crate that makes writing error-tolerant parsers with recovery easy and fun!
I switched to LALRPOP for gluon but I still use combine in https://github.com/mitsuhiko/redis-rs and some other projects which need to parse "protocols" (less need for good error messages/error recovery and more need for speed).
-
Getting started with MongoDB and Redis in Rust
The project is implemented with MongoDB Rust driver and redis-rs crate.
-
Redis Streams in Action - Part 2 (Rust app to consume from the Twitter Streaming API)
redis-rs, a Rust library for Redis with both high and low-level APIs
-
What are some examples of particularly well written crates?
I think the redis crate was a well-organized API library. It's still sometimes hard to know the right things to make public and I think they nailed it.
- Trying to utilize sqlx with postgresql and expecting performance on par with jdbc 😀. How do you guys do prepared statement, arg/param setting, batch insertions etc? The documentation doesn’t take me anywhere near that.
What are some alternatives?
tikv - Distributed transactional key-value database, originally created to complement TiDB
nom - Rust parser combinator framework
r2d2 - A generic connection pool for Rust
PickleDB - PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB
sled - the champagne of beta embedded databases
MeiliSearch - A lightning-fast search API that fits effortlessly into your apps, websites, and workflow
pest - The Elegant Parser
rust-embed - Rust Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
Gibbs MySQL Spyglass - Gibbs MySQL Spyglass
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
pom - PEG parser combinators using operator overloading without macros.