abcdw,
@abcdw@fosstodon.org avatar

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

krevedkokun,
@krevedkokun@fosstodon.org avatar

@abcdw I recently thought about rewriting my bencode parser using accumulators/generators from srfi-158, maybe you can take a look

abcdw,
@abcdw@fosstodon.org avatar

@krevedkokun Just to practice srfi-158 or for some technical reason?

krevedkokun,
@krevedkokun@fosstodon.org avatar

@abcdw looks interesting and I think nrepl spec mentions something about streaming response so maybe it could be used for that

abcdw,
@abcdw@fosstodon.org avatar

@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.

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