News for hackers. Stuff that matters.
Re:How Discord achieves native iOS performance with React Na... by bsaul on Friday November 08, 2019 @08:20AM (#21481911)
how did the java interop work for you ? I used to work in a company that used that approach with gomobile (golang) , and frankly the dark magic required to have a decent java API to the shared library made me want to not touch that with a ten foot pole.

I believe it was due to JNI but my memories may be wrong.

Re:How Discord achieves native iOS performance with React Na... by Aissen on Friday November 08, 2019 @01:04PM (#21484952)
The answer is in the parent's comment. They used protobufs, so I guess there's no JNI, just a simple RPC over a local socket.
Re:How Discord achieves native iOS performance with React Na... by bsaul on Friday November 08, 2019 @04:02PM (#21486702)
Thanks, i completely missed that part. Very interesting solution...
Re:How Discord achieves native iOS performance with React Na... by izacus on Friday November 08, 2019 @04:17PM (#21486880)
We used Dropbox' Djinni for a long while and it was good for most cases, but there were performance limitations - we switched to protobuffs over byte[] arrays for complex data later.