Comments (14)
👍
I've modified the Java GRPC compiler to create Scala service stubs instead. I'd be interested in porting that work over if it's something others are interested in.
We'd also need proto3 support. I think we're close, there doesn't seem to be a big difference between the two. The biggest change needed I've found is for all fields to be optional.
from scalapb.
@zackangelo
currently the grpc don't support scala directly,seems like we could leverage work here just as what you said.
it's beta now,I think will be soon to the GA stage.
from scalapb.
I am woking on scala gRPC support with @xuwei-k. We will fork ScalaPB rather than sending pull requests to get things done quickly. Let us know if you have any concerns. This issue will be closed in a few days.
from scalapb.
@tayama0324 nice, would definitely love to have it merged here when you're ready.
from scalapb.
About making all fields optional: can this be a setting, so I can choose to make all fields non-optional, instead? Wrapping everything in an Option can become too much overhead. The proto3 semantics allow for this (see this example).
from scalapb.
@iphydf the above comment seem to be unrelated to this bug - can you please file a different issue? FWIW, in Scalapb >= 0.5, primitives are not wrapped in an Option for proto3.
from scalapb.
@xuwei-k @tayama0324 can I help you and contribute some code? I want to use grpc at work.
from scalapb.
Status update: merge @xuwei-k PR into the grpc branch here. Added an implementation of a Marshaller to avoid conversions to/from Java protobufs.
from scalapb.
Added an implementation of a Marshaller to avoid conversions to/from Java protobufs.
Excellent! thanks a lot 😄
from scalapb.
The work has been merged into master and released in 0.5.18. Thanks @xuwei-k for doing the heavy lifting!
from scalapb.
FYI, I and @tayama0324 translated grpc-java examples. https://github.com/xuwei-k/grpc-scala-sample
from scalapb.
This is really awesome - thank you! When I get to write the docs for
ScalaPB/grpc I'll make sure to link to this repo.
On Fri, Dec 18, 2015 at 8:04 PM, kenji yoshida [email protected]
wrote:
FYI, I and @tayama0324 https://github.com/tayama0324 translated
grpc-java examples. https://github.com/xuwei-k/grpc-scala-sample—
Reply to this email directly or view it on GitHub
#44 (comment).
-Nadav
from scalapb.
This is great. Can you show us (java guys) a few hints on where to look for the code for implementing grpc on our projects @xuwei-k and @tayama0324 in https://github.com/xuwei-k/grpc-scala-sample. Thanks a lot for this excellent work.
from scalapb.
Documentation: https://scalapb.github.io/grpc.html
from scalapb.
Related Issues (20)
- allow_alias equality semantics differ between generated Scala and Java code HOT 1
- JSON serialization of Any message fails when the message has a special JSON representation HOT 2
- scalapb grpc runtime & InProcessTransport HOT 4
- Unrecognized enum serialized as int HOT 2
- Cannot name a 'oneof' field 'option' if an optional field exists HOT 1
- --jvm_0_out: protoc-gen-jvm_0: Plugin failed with status code 1. WIth Java version 11, change to 17 is fixed HOT 21
- Type Mismatch Error with `asRecognized` in versions 0.11.14 and 0.11.15 HOT 3
- sealed_oneof_companion_extends doesn't work for optional sealed oneof
- Sealed oneof "extend" for Empty case HOT 1
- java.lang.IllegalAccessError: tried to access method 'com.google.protobuf.LazyStringArrayList' HOT 10
- google/protobuf/empty.proto: File not found. HOT 1
- Define trait for GeneratedEnumCompanion’s fromJavaValue/toJavaValue HOT 1
- Support Scala 3.4 type wildcards HOT 2
- `_typemapper` are defined as package private, causing issues when deriving schemas HOT 4
- Protobuf with a field named using generates invalid Scala 3 code HOT 1
- ArrayIndexOutOfBoundsException on getFieldByNumber HOT 5
- UTF-8 Strings are unparseable? HOT 2
- JsonFormat.toJsonString omits authorisation string in the output JSON HOT 2
- Dependency on `scalapb.options.ScalapbProto` in generated code. HOT 3
- New release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalapb.