News for hackers. Stuff that matters.
Re:Parsing bitstreams with Nom by woodruffw on Wednesday March 02, 2022 @09:46PM (#30536509)
This is very clever, and a great demonstration of how flexible and generic Nom is!

It's not quite as inspired, but I wrote a minimal bitstream cursor/parser from scratch in Rust a few months ago[1]. It's developed with LLVM bitstreams in mind, but the API itself is suitable for just about any bitstream.

[1]: https://docs.rs/llvm-bitcursor/latest/llvm_bitcursor/index.h...

Re:Parsing bitstreams with Nom by comagoosie on Thursday March 03, 2022 @08:58AM (#30541057)
I'm collecting a bit of a benchmark for rust bitstream libraries inside my own library[1], and I wasn't aware of yours, so I'll add it to the list this afternoon!

[1]: https://github.com/nickbabcock/bitter

Re:Parsing bitstreams with Nom by woodruffw on Thursday March 03, 2022 @11:38AM (#30543225)
Awesome! I'll be interested to see how my (extremely naive) implementation stacks up.
Re:Parsing bitstreams with Nom by comagoosie on Thursday March 03, 2022 @07:32PM (#30548993)
Updated the benchmark with your implementation! You can see the results here: https://github.com/nickbabcock/bitter#comparison-to-other-li...