A Mutable Log

A blog by Devendra Tewari


Project maintained by tewarid Hosted on GitHub Pages — Theme by mattgraham

Binary serialization for JavaScript objects

One particular mechanism I find lacking in JavaScript is an easy, reusable, way to parse binary data. I have leveraged custom attributes in the past in .NET. JavaScript does not provide custom attributes. One means of specifying the format of binary data is to use JSON. I tend to favor declarative mechanisms for writing reusable code.

I like it better when I can leverage open source code. Cross-pollination of ideas from other language communities can also provide interesting design ideas.

I found the following that I may use instead of writing my own parser

If you are looking for something similar for Ruby, you can take a look at BinData.