This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-05
Channels
- # adventofcode (95)
- # announcements (3)
- # babashka (11)
- # beginners (39)
- # boot (19)
- # bristol-clojurians (1)
- # cider (32)
- # clj-kondo (39)
- # cljsrn (8)
- # clojure (156)
- # clojure-dev (35)
- # clojure-europe (4)
- # clojure-italy (15)
- # clojure-nl (28)
- # clojure-spec (43)
- # clojure-uk (153)
- # clojurescript (168)
- # core-async (13)
- # core-logic (11)
- # cryogen (4)
- # cursive (13)
- # datomic (26)
- # duct (3)
- # emacs (8)
- # fulcro (33)
- # garden (4)
- # graalvm (18)
- # graphql (4)
- # jobs-discuss (2)
- # kaocha (1)
- # leiningen (3)
- # malli (8)
- # off-topic (1)
- # pathom (7)
- # re-frame (21)
- # reagent (3)
- # rewrite-clj (1)
- # schema (4)
- # shadow-cljs (40)
- # sql (2)
- # uncomplicate (3)
calling C from Clojure in Graal native: https://github.com/retrogradeorbit/graal-native-image-jni
👍 8
fwiw, javah is apparently obsolete: https://stackoverflow.com/questions/50352098/javah-missing-after-jdk-install
^ @retrogradeorbit (nice work, btw 🙂 )
I think he used JDK8. I also still keep using JDK8 since JDK11 seems a bit experimental still in GraalVM?
to use javac instead of javah, the following seems sufficient:
cd src && javac -h . HelloWorld.java
instead of:
cd src && javah -jni HellowWorld
i don't know about that -- when i remove the part of the Makefile for creating the class file, it doesn't work
javac -help has this to say about -h:
-h <directory> Specify where to place generated native header files
fwiw this is a diff for what i have now: https://pastebin.com/WDH8zv0E