slbotbm commented on issue #2228:
URL: https://github.com/apache/iggy/issues/2228#issuecomment-3850748333

   @hubcio 
   There were three approaches that I found out about:
   1. Use JNI and creating an FFI in which rust controls the runtime and calls 
the particular functions to execute.
   2. Some way in which rust calls the java code remotely, the code is 
executed, and the inputs are returned to rust for further calculation.
   3. Implementing a full-blown benchmarking suite in Java that copies the rust 
version.
   
   I had originally wanted to go with 3., but if the calculations are too 
complex, we could try to go with 2., though the exact details would need to be 
ironed out. 1. would give not give us correct input values for calculation 
since a round trip would look like Rust -> JNI -> start JVM -> call Java code 
-> send message to server -> receive message -> JNI -> Rust, until and unless 
we find out a way to subtract the latency caused by JNI and the JVM.
   
   I assume you wanted to implement something like 2.?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to