janriemer, to rust

Currently in the process of rewriting my #transpiler from #nom v4.2 to #chumsky v1.0.0-alpha.6 🤓

It is a lot of fun so far, but I have to say these type signatures are wild!😄

I'm still struggling with it far more than I'd like, but I guess it is just a matter of time until intuition kicks in and it will become more and more natural.

Exciting project ahead!🙂

I'm even able to parse string literals with escape sequences - something I haven't even achieved with nom!

#Rust #RustLang

janriemer,

Sometimes, in order to stay flexible and fit, you need to do some (type) gymnastics 🤸

Slowly getting the hang of #chumsky #parser combinator #crate 🤓

One concept (among others!) I haven't learned yet, but will run into, is #recursion in chumsky. I know, there are good docs on it - it's just something I haven't gotten to yet.

All in all, I'm very happy with chumsky so far. Kudos to its maintainers! 🙂 🎩

#Rust #RustLang

shuttle, to rust
@shuttle@mastodon.online avatar

What are some underappreciated crates you think more people should know about?

janriemer,

@shuttle

Parsing crates:

chumsky | A library for humans with powerful error recovery

https://crates.io/crates/chumsky

winnow | making a breeze

https://crates.io/crates/winnow


Crates in the ecosystem:

pollster | an incredibly minimal async executor for that lets you block a thread until a future completes

https://crates.io/crates/pollster

smol | A small and fast async runtime

https://crates.io/crates/smol

hhg, to rust

What is everyone using for files in ? I am trying to find a that supports both a file, but also overrides through env vars. I see config-rs is trying to go through a rewrite, but activity is sparse.

janriemer, to rust

Oh, this looks fantastic! ✨

library to compare strings (or any sequences). 25+ algorithms, pure Rust, common interface, support.

https://github.com/life4/textdistance.rs

Based on popular and battle-tested textdistance library (and written by the same author).

Apparently, it also takes algorithms from the library, which I wished for to be written in Rust.

https://github.com/Yomguithereal/talisman

janriemer, to rust

Oh wow, this looks freakin' awesome! 🤩

welds - An async written in using the framework.

https://github.com/weldsorm/welds

You can even drop down to low-level sqlx queries, in case you need it:

https://github.com/weldsorm/welds/blob/c9a9a664cf07b99314ac773dd9ce20f5efc7301c/tests/postgres/tests/all_tests.rs#L169

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • slotface
  • ngwrru68w68
  • everett
  • mdbf
  • modclub
  • rosin
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • InstantRegret
  • provamag3
  • kavyap
  • ethstaker
  • osvaldo12
  • normalnudes
  • tacticalgear
  • cisconetworking
  • cubers
  • Durango
  • Leos
  • anitta
  • tester
  • megavids
  • lostlight
  • All magazines