summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2011-07-20 17:31:11 +0200
committerThomas Schwinge <thomas@schwinge.name>2011-07-20 17:31:11 +0200
commita2f5e581d9774611de34111d11e646840e767aa4 (patch)
tree2fc858c459baf652bb033e8892c34028f87ecd1b
parent3254cc1f93c366aba162e38fac622b83058ad471 (diff)
parent7db3ef59172cff66ea4700b2a791f36bcfc078d2 (diff)
Merge remote-tracking branch 'IKR/master'
-rw-r--r--user/jkoenig/java/discussion.mdwn28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/jkoenig/java/discussion.mdwn b/user/jkoenig/java/discussion.mdwn
index f16d7678..d7c8548d 100644
--- a/user/jkoenig/java/discussion.mdwn
+++ b/user/jkoenig/java/discussion.mdwn
@@ -77,6 +77,34 @@ either new ones or existing ones, as applicable.
pages ([[!taglink open_issue_documentation]]).
+# Java Native Interface (JNI)
+
+ * <http://en.wikipedia.org/wiki/Java_Native_Interface>
+ * <http://download.oracle.com/javase/7/docs/technotes/guides/jni/>
+ * <http://java.sun.com/products/jdk/faq/jnifaq.html>
+ * <http://java.sun.com/docs/books/jni/>
+
+
+## Java Native Access (JNA)
+
+ * <http://jna.java.net/>
+ * <https://github.com/twall/jna#readme>
+
+This is a different approach, and *while some attention is paid to performance,
+correctness and ease of use take priority*.
+
+As we plan on only having a few native methods (for invoking `mach_msg`,
+essentially), JNA is probably the wrong approach: portability and ease of use
+is not important, but performance is.
+
+## Compiled Native Interface (CNI)
+
+ * <http://gcc.gnu.org/onlinedocs/gcj/About-CNI.html>
+ * <http://per.bothner.com/papers/UsenixJVM01/CNI01.pdf>
+
+Probably faster than JNI, but only usable with GCJ.
+
+
# IRC, freenode, #hurd, 2011-07-13
[[!tag open_issue_documentation]]