4 ms·
I also have a nearly complete implementation of this in Haskell. https://github.com/orclev/CBOR https://github.com/orclev/CBOR The main problem it currently fa
by orclev 13y ago
I also have a nearly complete implementation of this in Haskell. https://github.com/orclev/CBOR https://github.com/orclev/CBOR
The main problem it currently faces is that the encoding/decoding support for half-width floats is currently wrong, but so long as you avoid half-width floats it works perfectly.
Eventually I want to add support for encoding indefinite lists by way of one of the streaming libraries like conduit or pipes, but before I do that I need to refactor to the code to break the Binary instances out from the types.
- eeadc 13y agoJust take a look at the Appendix D of RFC7049, where they present reference implementations in C and Python for half-width float decoding: http://tools.ietf.org/html/rfc7049#appendix-D http://tools.ietf.org/html/rfc7049#appendix-D