9.
Problems in JRuby
OS Level: Filesystem, spawn. ..
Library: Graphics, Crypto, NoSQL
C ext Replacement/ Transition
Lang & Runtime: LLVM, Chang, V8
10.
Easy to Use
Java
N ativ e Good Performance
Runtime Many Features
11.
GitHub https: //github. com/ jnr
Java jnr-ffi Main Part
» jffi FFl for Java
Nalylve jnr-posix POSIX
Runtlme jnr-constants Define Constants
jnr-unixsoeket UNIX Socket
jnr-signal Handle Signal
et al.
12.
J
NI JNR
mm:
JNI Call
Java World
Native World
JNI lmpl JNI lmpl
W
Target Lib.
13.
Foreign Function Interface
Interface to Call C/ C++
for High-Level Language
Iibffi
14.
Java Foreign Function Interface
Iibffi based
Low-Level Lib
Broad Platform Support
Darwin universal
Linux x86, X64, ARM, PPC. ..
Windows x86, x64
l FreeBSD/ OpenBSD x86,x64
g Solaris x86,x64,Sparc et al.
26.
User Code
If
J NR Stub
If
JNI Ca" I‘ I? :ri: fI V 9 I I liiéifl >-pe'j"J J H
JNl
{L
lmpl
mt? ‘ *’* ’_I. gf -
jffi I V ,9.
. LI . ~_ ’ ‘V. i q
‘W I my ‘: ’/| .?iaI , .:vI‘I@; .:(;
Target Libs
27.
Conclusion
JNI: Hard to Use
JNA: Low Performance
» JNR Easy to Use
Good Performance
Many Features
I} Panama FFI
28.
J ava
N ative
R untime
Java in the Box
Y. Sakuraba
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.
Be the first to comment