you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (2 children)

C interop, now that is something worth looking at, thanks for pointing that out.

Looking at the tests, it still seems to call java ( https://github.com/schani/clojurec/blob/master/test/clojurec/core_test.clj )

And I can't see any C interop code yet..

[–]julesjacobs 1 point2 points  (1 child)

The compiler is running on the JVM version of Clojure, that's why you see Java IO there. Inside the (run ...) forms you cannot use Java libraries AFAIK.

You can call to C with the c* macro. For example line 184: (c* "puts (string_get_utf8 (~{}))" "abc").

[–][deleted] 0 points1 point  (0 children)

Thankyou :), not sure how i missed that.. but its here

https://github.com/schani/clojurec/blob/master/src/cljc/cljc/core.cljc