protobuf-go
quick-protobuf
protobuf-go | quick-protobuf | |
---|---|---|
6 | 3 | |
2,713 | 430 | |
1.9% | - | |
8.8 | 6.3 | |
1 day ago | 3 months ago | |
Go | Rust | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
protobuf-go
- Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
-
Developing games on and for Mac and Linux
Protocol Buffers: https://developers.google.com/protocol-buffers
-
Adding Codable conformance to Union with Metaprogramming
ProtocolBuffers’ OneOf message addresses the case of having a message with many fields where at most one field will be set at the same time.
-
Logcat is awful. What would you improve?
That's definitely the bigger thing. I think something like Protocol Buffers (Protobuf) is what you're looking for there. Output the data and consume it by something that can handle the analysis.
-
Bitcoin is the "narrow waist" of internet-based value
These protocols prevent an O(N x M) explosion of code that have to solve for many cases. For example, since JSON is an almost ubiquitous format for wire transfer (although other things do exist like protobufs), if I had N data formats that I want to serialize, I only need to write N serializers/deserializers (SerDes). If there was no such narrow waist and there were M alternatives to JSON in wide usage, I would have to write N x M SerDes for wire encoding my data.
-
A new ProtoBuf generator for Go
So, I thought this at one point, too. But it turns out that methods is a type alias to an unnamed type, so there's no package level privacy issues: https://github.com/protocolbuffers/protobuf-go/blob/v1.26.0/...
quick-protobuf
-
Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
[quick-protobuf]: https://github.com/tafia/quick-protobuf
-
Add extra stuff to a “standard” encoding? Sure, why not
I actually went through all projects listed in [1] because I remember this very quirk. It turns out that there are many such libraries that have two variants of encode/decode functions, where the second variant prepends a varint length. In my brief inspection there do exist a few libraries with only the second variant (e.g. Rust quick-protobuf), which is legitimately problematic [2].
But if the project in question was indeed protobuf.js (see loeg's comments), it clearly distinguishes encode/decode vs. encodeDelimited/decodeDelimited. So I believe the project should not be blamed, and the better question would be why so many people chose to add this exact helper. Well, because Google itself also had the same helper [3]! So at this point protobuf should just standardize this simple framing format (with an explicitly different name though), instead of claiming that protobuf has no obligation to define one.
[1] https://github.com/protocolbuffers/protobuf/blob/main/docs/t...
[2] https://github.com/tafia/quick-protobuf/issues/130
[3] https://protobuf.dev/reference/java/api-docs/com/google/prot...
[4] https://github.com/protocolbuffers/protobuf/blob/main/src/go...
What are some alternatives?
generational-arena - A safe arena allocator that allows deletion without suffering from the ABA problem by using generational indices.
riegeli - Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers.
gapid - Graphics API Debugger
protobuf - Protocol Buffers for JavaScript (& TypeScript).
ion - The Identity Overlay Network (ION) is a DID Method implementation using the Sidetree protocol atop Bitcoin
nix-init - Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]
Protobuf - Protocol Buffers - Google's data interchange format
imstr - Immutable strings, in Rust.
no-noise-android - Filters out the noisiest spam from the device log of Android devices.
msgpack - MessagePack is an extremely efficient object serialization library. It's like JSON, but very fast and small.
klogging - Kotlin logging library with structured logging and coroutines support
flapigen-rs - Tool for connecting programs or libraries written in Rust with other languages