Hi everyone. I just finish a gRPC server in C#, hesitating whether to use Kotlin for the client-side...
r
Hi everyone. I just finish a gRPC server in C#, hesitating whether to use Kotlin for the client-side. My problem is the server-side is using proto3, but it seems that the good gRPC generator for Kotlin wire doesn't support proto3 yet (https://github.com/square/wire/issues/279). Is there any generator that can generate Kotlin-style code while handling proto3...?
r
I believe the closest you can get now is using the Java generators along with #kroto-plus to create some nice Kotlin lambda builders and coroutines support.
1
r
Ah, pretty frustrating about seeing builder pattern in Kotlin I'll say... but it seems this is the best we have. Many thx!
j
before proto3 existed i was sort of happy with an annotated java proxy solution to wire up bytebuffers structs borrowing the proto grammar from protostuffs and generating in maven. some square developers may even be familiar with Autobeans https://github.com/0xCopy/prautobeans
r
Okay... just watched a talk about gRPC in KotlinConf 2019 given by Marharyta Nedzelska, maybe kroto+ is pretty nice. I think I'll try kroto+ and ScalaPB. Thanks a lot!
n
link to the talk please
r

https://www.youtube.com/watch?v=pCTLu4awGVk

. here. she regarded kroto+ as the best solution, I think.