This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-29
Channels
- # announcements (35)
- # aws (40)
- # babashka (10)
- # beginners (119)
- # calva (25)
- # cider (13)
- # clj-kondo (15)
- # cljsrn (23)
- # clojure (205)
- # clojure-dev (3)
- # clojure-europe (15)
- # clojure-germany (3)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-uk (58)
- # clojurescript (193)
- # community-development (2)
- # conjure (147)
- # core-async (49)
- # cursive (47)
- # datomic (27)
- # duct (1)
- # fulcro (19)
- # graalvm (3)
- # graphql (1)
- # helix (3)
- # hoplon (11)
- # jackdaw (1)
- # joker (1)
- # juxt (5)
- # kaocha (1)
- # keechma (3)
- # lambdaisland (6)
- # local-first-clojure (27)
- # malli (5)
- # off-topic (41)
- # rdf (27)
- # re-frame (7)
- # reagent (15)
- # reitit (5)
- # rum (11)
- # shadow-cljs (157)
- # spacemacs (18)
- # sql (4)
- # xtdb (8)
I need an example how to return a String (or CCharPointer to a String) from a native Graal library and how to read it from Java (or another Graal native application for that matter. I have tried this: https://github.com/borkdude/babashka/blob/7e31aedaff0d19caa8bb55f57636dc8b3ee8f0ce/libhsqldb/src/org/babashka/LibHsqlDb.java#L15 for the library and this for the program calling that library: https://github.com/borkdude/babashka/blob/7e31aedaff0d19caa8bb55f57636dc8b3ee8f0ce/src-java/org/babashka/LibHsqlDb.java#L4 but this results in a fatal error: https://github.com/borkdude/babashka/issues/397#issuecomment-621481269 I'm not so familiar with all this JNI stuff, so any help would be appreciated.
Does it really needs to be a String? String's have some weird things, I think a char array would be simpler?
I'm now trying a Char pointer: https://github.com/borkdude/babashka/issues/397