Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had some fun implementing binmaps a while ago - http://scattered-thoughts.net/blog/2012/01/03/binmaps-compre...

I originally encountered them in http://libswift.org/ which was the predecessor to http://datatracker.ietf.org/doc/draft-ietf-ppsp-peer-protoco.... Both are very elegant simplifications of bittorrent and the IETF draft is pretty readable.



Jamii I've seen your ocaml implementations, your code has been very instructive - thanks!


How do you manage in erlang without mutable arrays? It must be expensive to build it out of tuples.


atm I'm not doing live streaming so I can store & reload these from disk. I'm likely to end up using hipe_bifs:bitarray* or https://github.com/ferd/bitarray where those are not available, if needed. See http://erlang.org/pipermail/erlang-questions/2009-May/043485... for an example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: