scalapb / zio-grpc

ScalaPB meets ZIO: write purely functional gRPC services and clients using ZIO
Apache License 2.0
259 stars 82 forks source link

Scala Native Build #577

Open dejvid opened 10 months ago

dejvid commented 10 months ago

Will there be a build with Scala native support? ScalaPB is already built for Scala native.

thesamet commented 10 months ago

@dejvid For ScalaPB, I re-implemented a part of the Java protobuf runtime in Scala so it can be compiled using Scala native and Scala.js. zio-grpc is built on top of grpc-java which doesn't have a Scala implementation, and writing it would require quite a bit of effort. Potentially, it's possible to explore if the Scala native implementation can somehow interoperate with the C++ implementation of grpc. Happy to keep this feature request open for a while to check for demand and see if anyone is volunteering!

dejvid commented 10 months ago

Okay, ScapaPB works on Scala native, just not the grpc-java. Because it is not written in Scala, what about the GRPC stuff that works on Scala.js? Could that part be used somehow?

If we want to run native-scala with gprc, and when multithreading starts working(scala native 0.5), the grpc feature is compelling to use.