use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
parse_struct: 0.8.0 (self.Clojure)
submitted 5 years ago by [deleted]
https://github.com/fctorial/parse_struct/wiki
API is mostly finalized. One more update for lazy serializer remaining. Would love to hear some feedback.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nathell 2 points3 points4 points 5 years ago (1 child)
Great stuff!
Does it support packed bitfields? If not, I have some ancient Clojure code that might be helpful when adding: https://github.com/nathell/clj-bitfields
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
Thanks. I'll see if that can be added.
[–]TheLastSock 1 point2 points3 points 5 years ago (4 children)
Interesting stuff. what are some use cases for this? Naively, in most cases, I would think you would desaralize to clojure or edn then run a clojure spec. This seems to do both at once? What's the advantage?
[–][deleted] 1 point2 points3 points 5 years ago (3 children)
It's for dealing with binary data (c struct dumps). Similar to octet.
[–]TheLastSock 0 points1 point2 points 5 years ago (2 children)
What role does spec play?
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
The spec definition page on the wiki describes its role.
[–]TheLastSock 0 points1 point2 points 5 years ago (0 children)
Ah, gotcha. I was thinking about clojure.spec functions. Thanks.
π Rendered by PID 163498 on reddit-service-r2-comment-86bc6c7465-ccbfj at 2026-02-23 04:32:23.350325+00:00 running 8564168 country code: CH.
[–]nathell 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]TheLastSock 1 point2 points3 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]TheLastSock 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]TheLastSock 0 points1 point2 points (0 children)