This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-21
Channels
- # announcements (2)
- # asami (8)
- # aws (4)
- # beginners (32)
- # calva (12)
- # cider (72)
- # clj-kondo (16)
- # clojure (11)
- # clojure-germany (2)
- # clojure-italy (4)
- # clojure-serbia (2)
- # clojurescript (26)
- # data-oriented-programming (8)
- # datomic (9)
- # deps-new (17)
- # eastwood (4)
- # emacs (20)
- # fulcro (18)
- # funcool (1)
- # graalvm (8)
- # leiningen (12)
- # lsp (34)
- # malli (25)
- # meander (4)
- # membrane (4)
- # off-topic (153)
- # practicalli (1)
- # releases (2)
- # remote-jobs (3)
- # rewrite-clj (77)
- # ring (5)
- # shadow-cljs (108)
- # spacemacs (12)
- # tools-deps (9)
- # vscode (11)
- # xtdb (4)
@borkdude - I have an example of compiling avclj into a shared library and building a c++ executable to encode some h264 video. It wasn't too bad but here are caveats like your library export file cannot have reference vars not referenced from your jar's main class. • https://github.com/cnuernber/avclj/blob/master/native_test/avclj/libavclj.clj • https://github.com/cnuernber/dtype-next/blob/master/src/tech/v3/datatype/ffi/graalvm.clj#L360 • https://github.com/cnuernber/avclj/blob/master/scripts/compile-shared
It is pretty damn amazing you can compile Clojure, especially mixed native/JVM clojure like this into a shared library and the thing actually works when called from c++.

Wow. Now we can build hybrid C++ systems with Clojure as the dynamic language instead of Python or Common Lisp. It just keeps gettin' better!
I think your C FFI stuff might come in handy for building this https://github.com/borkdude/plsci directly as a postgres plugin without the Rust wrapper and do more interesting things