-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to protobuf-es from protobuf-ts #641
Comments
I don't remember a specific reason to not use I'd like to get through the Re PWA, while it's not a short-term priority, I'd like to understand what it would take to run optionally Runme as a web. Both for rendering read-only saved Runme DevOps notebooks and potentially to use a "remote kernel". In this extension mode, using the |
Just for reference. Here's a stable link https://github.com/bufbuild/protobuf-es/blob/v1.10.0/docs/migrating.md. The v2 release about ~1h ago rejiggered the docs and the old link will 404. I'm sure the migration docs got absorbed into the larger MANUAL.md. |
A couple things to be aware of. I think the semantics of streaming in the connect SDK area also different. It uses AsyncIterable |
RunMe is using the protobuf-ts plugin.
Foyle is using the protobuf-es plugin.
Filing this issue so we can track it and eventually figure out what to do about it. Don't think we need to do anything right now.
Per the Migration guide it looks like
protobuf-es
is the newer thing that is officially maintained bybuf
. It looks like the main contributor toprotobuf-ts
is also contributing toprotobuf-es
.@sourishkrout Did you have a reason you chose
protobuf-ts
overprotobuf-es
?I introduced
protobuf-es
into Foyle to support Ghost cells jlewi/foyle#167. I went withprotobuf-es
because I wanted to use the connect protocol to handle bidirectional streaming for ghost cells rather than gRPC. I didn't want to use regular grpc because grpc doesn't work in the browser and I didn't want to introduce more code that would be a blocker to running the frontend as a PWA in the browser (#616).The main downside to using both is we potentially have to convert between the two types (e.g. via serializing to JSON) which entails some overhead. Since this would only happen right now with Ghost Cells which is yet to be complete and would be an experimental feature I don't think we need to worry about it yet.
The text was updated successfully, but these errors were encountered: