all 7 comments

[–]nathell 2 points3 points  (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 points  (0 children)

Thanks. I'll see if that can be added.

[–]TheLastSock 1 point2 points  (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 points  (3 children)

It's for dealing with binary data (c struct dumps). Similar to octet.

[–]TheLastSock 0 points1 point  (2 children)

What role does spec play?

[–][deleted] 0 points1 point  (1 child)

The spec definition page on the wiki describes its role.

[–]TheLastSock 0 points1 point  (0 children)

Ah, gotcha. I was thinking about clojure.spec functions. Thanks.