Hacker GitHub

← All repos

haberman/upb

View on GitHub ↗ ★ 69 C

a small protobuf implementation in C

19 mentions on Hacker News by 4 people: 0 stories, 19 comments · first 2011-01-09 · latest 2015-04-27

Mentions per year 19 mentions · busiest year 2011 (8)
20082026
  1. …collection, this doesn't work so well. More info about my scheme is in comments in these headers: https://github.com/haberman/upb/blob/master/upb/refcounted.h https://github.com/haberman/upb/blob/master/upb/refcounted.c I always was…
    comment by haberman · 2015-04-27 · in Pre-Pooping Your Pants with Rust
  2. …I developed for handling cyclic references in my library "upb" would work as a Rust library: https://github.com/haberman/upb/blob/master/upb/refcounted.h The basic idea is that you refcount groups of objects instead of refcounting objects…
    comment by haberman · 2014-09-15 · in The Road to Rust 1.0
  3. …can be had. For example, this implementation of protobuf deserialization is quite a bit faster: https://github.com/haberman/upb http://blog.reverberate.org/2011/04/upb-status-and-prelimina...
    comment by jdf · 2014-05-05 · in Simple Binary Encoding
  4. …approach to the problem, with my Protocol Buffer / JSON / etc. serialization framework upb ( https://github.com/haberman/upb ). Instead of using static code generation, I use a JIT approach where I generate specialized code on-the-fly.…
  5. …written in C. By the way, I'm not just making stuff up, I have written a JIT of my own: https://github.com/haberman/upb/blob/master/upb/pb/decoder_x...
    comment by haberman · 2012-11-30 · in Speeding up PHP with the HipHop VM
  6. …languages in mind. There are already Lua and Python bindings, you could use them as example. https://github.com/haberman/upb/wiki https://github.com/haberman/upb/tree/master/bindings
  7. > As a build bot? What are you building? My library upb ( https://github.com/haberman/upb/wiki ). It is ~5k LoC and builds in 10 seconds on x86. 4gig of RAM is entirely unnecessary. It pays to be small. :)
    comment by haberman · 2012-05-22 · in VIA launches $49 Android PC
  8. …structure of any structured data that a parser wants to produce or a serializer wants to consume. https://github.com/haberman/upb/wiki
  9. I struggled with a similar question for my low-level protobuf library UPB ( https://github.com/haberman/upb ). Here are some blog posts describing my dilemma about this: http://blog.reverberate.org/2009/11/porting-upb-to-c.html…
  10. …kernel, so I integrated the BSD implementation of it into my library/kmodule for this purpose: https://github.com/haberman/upb/blob/master/bindings/linux/s...
    comment by haberman · 2012-04-24 · in Error handling style in C
  11. …of my life's goals is to help change that. If you find this intriguing, please feel free to follow: https://github.com/haberman/upb/wiki https://github.com/haberman/gazelle
  12. …If you do more pure stream parsing the win is even greater. My protobuf work is open source: https://github.com/haberman/upb > I'm not sure I could have won much by counting the cycles it took me to pull (say) an NBO integer out of a…
    comment by haberman · 2011-12-21 · in ISO C is increasingly moronic
  13. …http://code.google.com/p/protobuf/source/browse/trunk/src/go... [2] https://github.com/acg/lwpb [3] https://github.com/haberman/upb
  14. …Protocol Buffer implementation that does not have these limitations. Using my implementation upb ( https://github.com/haberman/upb/wiki ) you can import schema definitions at runtime (or even define your own schema using a convenient API…
  15. …is why I'm working on a high-performance Protocol Buffer library that does not do code generation: https://github.com/haberman/upb/wiki
  16. …of a parser), but I am extremely motivated to return to it. http://www.reverberate.org/gazelle/ https://github.com/haberman/upb/wiki
    comment by haberman · 2011-03-15 · in Parsing: the solved problem that isn't
  17. The core of my protobuf-decoding library upb ( https://github.com/haberman/upb/wiki ) is 3k SLOC of C. That includes * a hash table implementation * a reference-counted string type * a generic interface for doing tree traversals of…
    comment by haberman · 2011-02-03 · in What can you do in 2k LOC of C?
  18. …and I finally have the interface right. I'm hoping it will be usable with Python soon (weeks). https://github.com/haberman/upb/wiki (if anyone's looking at the code, I'm working on the src-refactoring branch at the moment) The benefits of…
  19. …a long time on what I consider a major solution to this problem. There are two parts to it. upb ( https://github.com/haberman/upb/wiki/ ) is a standalone and very minimalist implementation of Google's Protocol Buffers serialization format.…