emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/geiser-kawa f8cf352 096/119: Update kawa-devutil version +


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-kawa f8cf352 096/119: Update kawa-devutil version + add Random_notes.org
Date: Sun, 1 Aug 2021 18:30:45 -0400 (EDT)

branch: elpa/geiser-kawa
commit f8cf352954ed9c07641c596139b061a8e064c39b
Author: spellcard199 <spellcard199@protonmail.com>
Commit: spellcard199 <spellcard199@protonmail.com>

    Update kawa-devutil version + add Random_notes.org
---
 Random_notes.org                                   | 10 ++++++++++
 pom.xml                                            |  2 +-
 src/main/java/kawageiser/kawadevutil/Complete.java |  2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Random_notes.org b/Random_notes.org
new file mode 100644
index 0000000..95c4218
--- /dev/null
+++ b/Random_notes.org
@@ -0,0 +1,10 @@
+#+STARTUP:contents
+** Would something like emacs -> dynamic module -> JNI -> add kawa-geiser to 
classpath -> java -> kawa -> geiser-kawa work?
+   
+Yes. I tried to make some simple changes to 
[[https://github.com/jbalint/emacs-gargoyle][emacs-gargoyle]] (my first and 
only time writing C) and it was very fast (at least 10 times faster than 
sockets).
+Limitations of using =geiser-kawa= directly from JNI:
+- Message passing is through strings: =emacs-gargoyle= makes an attempt at 
establishing a way to write conversions between types, but for the minimal part 
of it I explored, I used just strings
+- Due to emacs' GIL you can call java from elisp but you can't call elisp from 
java (nor C): you can work around this using:
+    - for elisp->java/kawa: directly JNI: very fast
+    - for java/kawa->elisp: emacs server: slower and wouldn't require dynamic 
modules anyway
+Unless I had to pass very large data between emacs and java/kawa, I would 
prefer to use sockets.
diff --git a/pom.xml b/pom.xml
index 8d93f9e..4f2b31c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,7 @@
         <dependency>
             <groupId>com.gitlab.spellcard199</groupId>
             <artifactId>kawa-devutil</artifactId>
-            <version>1fdfbc18591a068404e4cb86b4fb3c9b157dd44c</version>
+            <version>600e6b33776184c99164ff2cb8251835fd9ecef3</version>
         </dependency>
 
         <!-- https://mvnrepository.com/artifact/org.testng/testng -->
diff --git a/src/main/java/kawageiser/kawadevutil/Complete.java 
b/src/main/java/kawageiser/kawadevutil/Complete.java
index be13f1e..8ddb8a1 100644
--- a/src/main/java/kawageiser/kawadevutil/Complete.java
+++ b/src/main/java/kawageiser/kawadevutil/Complete.java
@@ -76,7 +76,7 @@ public class Complete {
     private static LList
     toLList(CompletionForClassMember completionForClassMember) {
 
-        String ownerClassName = 
completionForClassMember.getForClass().getName();
+        String ownerClassName = 
completionForClassMember.getOwnerClass().getName();
 
         ArrayList<String> modifiers = new ArrayList<>();
         for (Object modifier : 
completionForClassMember.getModifierMask().getRequired()) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]