[ann] Bolty - binary javascript object serializer

79 views
Skip to first unread message

Alan Hoffmeister

unread,
Nov 4, 2014, 11:11:36 AM11/4/14
to nodejs
Hello guys,

I want to introduce Bolty, a small piece of code that can serialize JS
objects into binary buffers and back again into an object. It consumes
a lot less space than JSON and can also handle objects that contains
buffers and other types of data. It's a lot like Protocol Buffers but
uses pure JS and its very extensible.

https://github.com/alanhoff/node-bolty

--
Alan Hoffmeister
https://twitter.com/alan_hoff
https://github.com/alanhoff
https://keybase.io/alanhoff

Kevin Ingwersen (Ingwie Phoenix)

unread,
Nov 4, 2014, 11:18:45 AM11/4/14
to nod...@googlegroups.com
Hey there.

This sounds like an interesting project. Did you make bindings for other scripting languages - mainly PHP - too? I am just looking for a smaller soltuion than JSON… o.o

Kind regards, Ingwie
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CALmFrqTmP9%2BgiAQvj1Okg7f%2BKueK8Fsz4hO%2B1q0_uJxUd8qPOA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Alex Kocharin

unread,
Nov 4, 2014, 11:18:45 AM11/4/14
to nod...@googlegroups.com

I thought we had BSON for this purpose already.


04.11.2014, 19:11, "Alan Hoffmeister" <alanhof...@gmail.com>:

Alan Hoffmeister

unread,
Nov 4, 2014, 11:35:47 AM11/4/14
to nodejs
@Alex, Bolty generates a much smaller output compared to BSON, but is
a bit less flexible.

@Kevin no bindings yet, sry. It shouldn't be complicated to implement
one for PHP.
2014-11-04 14:13 GMT-02:00 Kevin Ingwersen (Ingwie Phoenix)
<ingwi...@googlemail.com>:
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/0B9409B0-C1E5-479D-8888-F4B97B7F2DEA%40googlemail.com.

Danilo Sampaio

unread,
Nov 4, 2014, 12:33:30 PM11/4/14
to nod...@googlegroups.com
Thank you for sharing Alan!
A very simple API.
On Tue Nov 04 2014 at 13:18:27 Kevin Ingwersen (Ingwie Phoenix) <ingwi...@googlemail.com> wrote:
Hey there.

This sounds like an interesting project. Did you make bindings for other scripting languages - mainly PHP - too? I am just looking for a smaller soltuion than JSON… o.o

Kind regards, Ingwie
> Am 04.11.2014 um 16:59 schrieb Alan Hoffmeister <alanhof...@gmail.com>:
>
> Hello guys,
>
> I want to introduce Bolty, a small piece of code that can serialize JS
> objects into binary buffers and back again into an object. It consumes
> a lot less space than JSON and can also handle objects that contains
> buffers and other types of data. It's a lot like Protocol Buffers but
> uses pure JS and its very extensible.
>
> https://github.com/alanhoff/node-bolty
>
> --
> Alan Hoffmeister
> https://twitter.com/alan_hoff
> https://github.com/alanhoff
> https://keybase.io/alanhoff
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.

> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CALmFrqTmP9%2BgiAQvj1Okg7f%2BKueK8Fsz4hO%2B1q0_uJxUd8qPOA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.

To post to this group, send email to nod...@googlegroups.com.

Kevin Ingwersen (Ingwie Phoenix)

unread,
Nov 4, 2014, 12:33:35 PM11/4/14
to nod...@googlegroups.com
I dont like the idea to compile a module just to use two functions, so I am looking for a flat - scripted - alternative instead.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1265521415117737%40web28m.yandex.ru.

Alex Kocharin

unread,
Nov 4, 2014, 12:33:36 PM11/4/14
to nod...@googlegroups.com

Yeah, BSON is optimized for traversal speed mostly. If we're talking about size, it'd make sense to look for CBOR or MessagePack.

(I see that Bolty generates even smaller output because if the schema, but I wouldn't consider it an advantage)

My point is: it's better to implement one of the existing standards than invent a new one imho.


04.11.2014, 19:35, "Alan Hoffmeister" <alanhof...@gmail.com>:
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CALmFrqQrV3vjuLHnSD_WOA7m8cKJHvMDVcdxOUWwQZEgDZOarg%40mail.gmail.com.

Floby

unread,
Nov 5, 2014, 11:55:10 AM11/5/14
to nod...@googlegroups.com
I though we had gzip
Reply all
Reply to author
Forward
0 new messages