Live data from Hacker News

Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox

github.com

1–10 of 54 posts

Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox

#2
From pb-jelly-gen:

> The core of this crate is a python2 script codegen.py that is provided to the protobuf compiler, protoc as a plugin.

That's... surprisingly janky. Not only Python tooling is always painful to deal with (compared to Go/Rust/...), but Python 2? And in a project that otherwise has no reason to depend on Python? :(

In comparison, the Go protoc plugin is written in Go, the alternatice rust-protobuf protoc plugin is witten in Rust, the Typescript one is written in Typescript...

Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox

#3
post #2

From pb-jelly-gen: > The core of this crate is a python2 script codegen.py that is provided to the protobuf compiler, protoc as a plugin. That's... surprisingly janky. Not only Python tooling is always painful to deal with (compared to Go/Rust/...), but Python 2? And in a project that otherwise has no reason to depend on Python? :( In comparison, the Go protoc plugin is written in Go, the alternatice rust-protobuf pr…

this might be one of those projects that gets open sourced with the hope that someone else will maintain it

Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox

#4
post #2

From pb-jelly-gen: > The core of this crate is a python2 script codegen.py that is provided to the protobuf compiler, protoc as a plugin. That's... surprisingly janky. Not only Python tooling is always painful to deal with (compared to Go/Rust/...), but Python 2? And in a project that otherwise has no reason to depend on Python? :( In comparison, the Go protoc plugin is written in Go, the alternatice rust-protobuf pr…

The very first prototypes of Dropbox were Py2, so I suspect that legacy is a reason why it was chosen for the codegen.

My $dayjob also started as a large python code base, and so there are still lots of one-off Py2 scripts that need to be deleted or rewritten.

Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox

#5
post #2

From pb-jelly-gen: > The core of this crate is a python2 script codegen.py that is provided to the protobuf compiler, protoc as a plugin. That's... surprisingly janky. Not only Python tooling is always painful to deal with (compared to Go/Rust/...), but Python 2? And in a project that otherwise has no reason to depend on Python? :( In comparison, the Go protoc plugin is written in Go, the alternatice rust-protobuf pr…

> In comparison, the Go protoc plugin is written in Go, the alternatice rust-protobuf protoc plugin is witten in Rust, the Typescript one is written in Typescript...

So they're maintaining a project with two languages with Python 2 as a hard requirement for code generation? Oh dear.

This tells me that this project will have the same fate as djinni [0] or their similar archived projects.

[0] https://github.com/dropbox/djinni

Post reply on HN