Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
1–10 of 54 posts
Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#2> 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
#3From 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…
Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#4From 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…
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
#5From 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…
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.
Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#6I've chosen Prost for our project, but see the whole list:
https://github.com/stepancheg/rust-protobuf#related-projects
Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#7Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#8Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#9Re: Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox
#10Is there really any good reason for code-gen? Just because “google did it” doesn’t mean it’s a good idea.