spec VS Protobuf

Compare spec vs Protobuf and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
spec Protobuf
11 175
585 63,786
1.2% 0.7%
9.7 10.0
7 days ago 5 days ago
Ruby C++
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

spec

Posts with mentions or reviews of spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-09.
  • What is the best way to make simple games with Ruby?
    3 projects | /r/ruby | 9 Mar 2023
    You may define that Ruby is "CRuby" (MRI), the full-fledged implementation of the Ruby programming language specification (https://github.com/ruby/spec/).
  • Ending the predominance of the Array in Ruby
    5 projects | /r/ruby | 31 Jan 2023
    Testing: Interestingly, most of the work was figuring out how to test the library reliably. Grizzly-rb is proudly tested against the ruby/spec repository using Mspec and Rubocop. Special thank you to the person recommending Rubocop in a previous post.  The tests cover Enumerable, Array, Enumerator and Enumerator::Lazy classes.
  • Personal efforts to improve the quality of Ruby interpreter
    5 projects | dev.to | 27 Dec 2022
    Ruby interpreter is a complex program, so it naturally has bugs, and Ruby interpreter developers are taking various countermeasures against them. For example, we write tests and check them in CI environment (This is the result of daily maintenance of the test environment, such as RubyCI, chkbuild, ruby/spec: The Ruby Spec Suite aka ruby/spec and machines).
  • Finally: A Language Specification for Protocol Buffers
    10 projects | news.ycombinator.com | 12 Sep 2022
  • Where is Ruby language specification or full reference?
    2 projects | /r/ruby | 15 Jun 2022
    I can't find the link to the official announcement, but many years ago they published an official ISO for Ruby, however at the time the ISO was based off of 1.8.7 syntax/semantics. Other than that, you have the RubySpec project which is a series of tests that validate how Ruby should work.
  • Rewriting Libimagequant in Rust for Portability
    3 projects | news.ycombinator.com | 4 Jan 2022
    Java could have been a good example, but Sun had a rather strict validation process for calling something Java.

    Furthermore, there are big difference in philosophy with C:

    1. IB and UB are not considered normal parts of specifications, meaning there's way less opportunity for originality in the interpretation of the specifications

    2. there tends to be an ur-implementation, and notable divergences from that tends to be interpreted as either a bug in the other implementation(s) or a lack of specification to be resolved between all implementations

    Rust only has UB in unsafe (AFAIK), which greatly limits implementation flexibility in terms of observable behaviour; and the reference implementation would very much be considered the reference implementation, so I expect e.g. rust-gcc will be sticking close to the reference implementation and behavioural divergence will either be fixed to match, or will lead to more precise specification and both implementations converging.

    Probably eventually with, if not a Sun-style validation suite, a Ruby-style Spec Suite (https://github.com/ruby/spec).

  • Announcing TypeScript 4.5
    1 project | /r/programming | 18 Nov 2021
    Ruby: https://github.com/ruby/spec Yes, it is not a word document, but it is a spec nonetheless. It is an authoritative source. TypeScript has nothing like this; no, unit tests aren't the same.
  • A History of the Rubinius Ruby JIT
    1 project | news.ycombinator.com | 11 Nov 2021
  • Opal 1.3 released
    6 projects | /r/rails | 3 Nov 2021
    Opal is simply a Ruby to JavaScript compiler. While it may be someday possible to run Rails on it, as you can run Rails on JRuby, the primary focus of this project is to allow you to write frontend code in Ruby and possibly share some code between your frontend and backend. It's possible to compile entire Ruby libraries to JavaScript (with little changes needed due to some caveats). Opal supports a Ruby 3.0 level of features (regardless of your backend Ruby version), often surpassing MRuby in terms of compatibility. It is being actively tested for regressions against Ruby Spec and is self-hosting, ie. can compile itself (see: TryRuby).
  • Ruby Class Inheritance Flowchart
    1 project | /r/ruby | 25 Feb 2021

Protobuf

Posts with mentions or reviews of Protobuf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-07.
  • Consistent Hashing: An Overview and Implementation in Golang
    3 projects | dev.to | 7 May 2024
    protobuf: go get -u google.golang.org/protobuf/proto
  • Hitting every branch on the way down
    4 projects | news.ycombinator.com | 29 Apr 2024
    It's because they changed the versioning format: https://github.com/protocolbuffers/protobuf/releases?page=5

    But I suppose old version still receive bugfixes.

  • Reverse Engineering Protobuf Definitions from Compiled Binaries
    5 projects | news.ycombinator.com | 9 Mar 2024
    For at least 4 years protobuf has had decent support for self-describing messages (very similar to avro) as well as reflection

    https://github.com/protocolbuffers/protobuf/blob/main/src/go...

    Xgooglers trying to make do on the cheap will just create a Union of all their messages and include the message def in a self-describing message pattern. Super-sensitive network I/O can elide the message def (empty buffer) and any for RecordIO clone well file compression takes care of the definition.

    Definitely useful to be able to dig out old defs but protobuf maintainers have surprisingly added useful features so you don’t have to.

    Bonus points tho for extracting the protobuf defs that e.g. Apple bakes into their binaries.

  • Show HN: AuthWin – Authenticator App for Windows
    6 projects | news.ycombinator.com | 3 Mar 2024
  • Create Production-Ready SDKs With gRPC Gateway
    5 projects | dev.to | 8 Dec 2023
    gRPC Gateway is a protoc plugin that reads gRPC service definitions and generates a reverse proxy server that translates a RESTful JSON API into gRPC.
  • Create Production-Ready SDKs with Goa
    9 projects | dev.to | 22 Nov 2023
    To use more recent versions of protoc in future applications, you can download them from the Protobuf repository.
  • Roll your own auth with Rust and Protobuf
    5 projects | dev.to | 28 Oct 2023
    Use the Protobuf CLI protoc and the plugin protoc-gen-tonic.
  • Add extra stuff to a “standard” encoding? Sure, why not
    11 projects | news.ycombinator.com | 19 Sep 2023
    > didn’t find any standard for separating protobuf messages

    The fact that protobufs are not self-delimiting is an endless source of frustration, but I know of 2 standards:

    - SerializeDelimited* is part of the protobuf library: https://github.com/protocolbuffers/protobuf/blob/main/src/go...

    - Riegeli is "a file format for storing a sequence of string records, typically serialized protocol buffers. It supports dense compression, fast decoding, seeking, detection and optional skipping of data corruption, filtering of proto message fields for even faster decoding, and parallel encoding": https://github.com/google/riegeli

  • Block YouTube Ads on AppleTV by Decrypting and Stripping Ads from Profobuf
    11 projects | news.ycombinator.com | 26 Aug 2023
    It looks like it is in fact universal. Just glancing at the code here, it looks like the tool searches any arbitrary file for bytes that look like encoded protobuf descriptors, specifically looking for bytes that are plausibly the beginning of a FileDescriptorProto message defined here:

    https://github.com/protocolbuffers/protobuf/blob/main/src/go...

    This takes advantage of the fact that such descriptors are commonly compiled into programs that use protobuf. The descriptors are usually embedded as constant byte arrays. That said, not all protobuf implementations embed the descriptors and those that do often have an option to inhibit such embedding (at the expense of losing some dynamic introspection features).

  • How to learn to use protoc in 21 easily infuriating steps
    1 project | news.ycombinator.com | 12 Aug 2023

What are some alternatives?

When comparing spec and Protobuf you can also consider the following projects:

Opal - Ruby ♥︎ JavaScript

FlatBuffers - FlatBuffers: Memory Efficient Serialization Library

grizzly-rb - The Ruby library you will love to hate

SBE - Simple Binary Encoding (SBE) - High Performance Message Codec

opal-rails - Bringing Ruby to Rails · Rails bindings for Opal

MessagePack - MessagePack implementation for C and C++ / msgpack.org[C/C++]

dssim - Image similarity comparison simulating human perception (multiscale SSIM in Rust)

cereal - A C++11 library for serialization

custom-gtksourceview-languages - Custom modifications to the Gtk.SourceView Languages to support Markdown and syntax highlighting of code blocks in Markdown.

Apache Parquet - Apache Parquet

opal-devtools - A Browser extension providing tools for developing with Opal Ruby in the browser.

Bond - Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.