On Thu, Feb 16, 2017 at 9:08 AM, Jason Lunn <jason.l...@gmail.com> wrote:

> It has probably been a decade since I had a reason to try to use JNI. Does
> anyone have any experience building Gems using that approach? Would it be
> the case that there would be one JAR per supported platform (x64-mingw32,
> x86_64-linux, universal-darwin, x86-mingw32), or would it be a fat jar
> that include multiple JNI wrappers?
>
> I am not clear on what capabilities of the existing gem are needed to
> satisfy the dependency of the Google Cloud gem (which is my personal
> motivation to see this move forward). Maybe Mike Moore knows better if the
> client side would be enough?
>

The Google Cloud gems are clients only, and so supporting the client-half
of GRPC would be sufficient for our use of GRPC.


> I think I prefer to see the JRuby support sit alongside the existing Ruby
> code in the same repository, and tested in a consistent way. This will help
> avoid breaking behavior from slipping into the C implementation that isn't
> observed until someone thinks to update the other repo. It should also make
> it less likely that a gem update is released for the C derived platforms
> without a corresponding update for the JRuby variant.
>
> On Wednesday, February 15, 2017 at 1:30:59 PM UTC-5, apo...@google.com
> wrote:
>>
>> As has been noted before, I think this would be possible by doing a pure
>> implementation, wrapping the java client, or with a JNI wrapper over the
>> C-core (these implementations probably end up relatively different from
>> C-wrapping grpc-ruby).
>>
>> Actually one thing hasn't been noted yet: If only a client-side library
>> is needed, then perhaps the jruby-platform target could only need to
>> emulate the client-half of the c-wrapping grpc-ruby (would probably
>> simplify things).
>>
>> As for where the project could live though, one option is it could go
>> into the same grpc repo as current grpc-ruby. Another is it could be done
>> entirely as a third party project in its own repo, for which we could give
>> some guidance.
>>
>> On Wednesday, February 15, 2017 at 8:59:31 AM UTC-8, Jason Lunn wrote:
>>>
>>> There is a GRFC <https://github.com/grpc/proposal/pull/13> to add
>>> support for the JRuby <http://jruby.org/> interpreter, which runs on
>>> the JVM.
>>>
>>> Please provide all feedback on this thread.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAPR0QboCNYQ4f%3D4mZLNua-SmKwXfgR_4FAJf3XVJ9hqW16FOow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to