Implemented bencode encoding/decoding in Guile Scheme.
TDD is a pleasure, when you have proper tools and can [re]run specific test groups instantly.
https://git.sr.ht/~abcdw/guile-nrepl/tree/257353b1/item/src/bencode.scm
Implemented bencode encoding/decoding in Guile Scheme. TDD is a pleasure, when you have proper tools and can [re]run specific test groups instantly. https://git.sr.ht/~abcdw/guile-nrepl/tree/257353b1/item/src/bencode.scm 4 comments
@abcdw looks interesting and I think nrepl spec mentions something about streaming response so maybe it could be used for that @krevedkokun Yep, I saw something related to streaming, but if it will be practical, we can update the implementation later, should not be a big deal. |
@abcdw I recently thought about rewriting my bencode parser using accumulators/generators from srfi-158, maybe you can take a look