The library has two main namespaces: clj-native.direct and clj-
native.dynamic.
The direct namespace uses the "direct mapping" feature of JNA in order
to be as efficient and arity and type safe as possible. However, it
does not support varargs functions since they require reflection and
dynamic translation of the parameters. That's what the dynamic
namespace is for: It can map any C function into clojure, even vararg
functions like printf but at a higher cost in call time and less
safety (it's easy to crash the jvm by sending the wrong type or number
of parameters). Access to global variables through the JNA Pointer
class is also available in the dynamic namespace.
The library is available from github: http://github.com/bagucode/clj-native
and clojars: http://clojars.org/clj-native
Example usage of the direct namespace can be found here:
http://github.com/bagucode/clj-native/blob/master/src/examples/c_lib.clj
Please report issues or make requests to my github account or by mail.
Enjoy!
/Markus
Please help!
/Markus
clj-baremetal ?
--
Ramakrishnan
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-Rgds, Adrian.
2010/3/17 Meikel Brandmeyer <m...@kotka.de>:
> aborigine
Najure.
> > clojure+u...@googlegroups.com<clojure%2Bunsu...@googlegroups.com >
Najure.
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Omnem crede diem tibi diluxisse supremum.
Probably not what you want to hear, but I think great names are both
memorable and descriptive. Leaning on those criterias clj-native is
not bad at all.
Lau
2010/3/17 mac <markus.g...@gmail.com>:
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Communication is essential. So we need decent tools when communication
is lacking, when language capability is hard to acquire...
- http://esperanto.net - http://esperanto-jongeren.nl
Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004
There are also the clo-cytus or clocytus variations.
Alexandre
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
Edmund
"Do it with love, l-o-v-e"
MJ
j/k :)
Seriously though, thank you for working on this. I'm sure it will
remove a serious barrier to entry for some people.
Alex
inclojenous
c-jure
cclojure
full-circle
c-no-free
brace-yourself
chickey (my favourite)
(Merriam-Webster says: to obtain by indirect or involved means, to
obtain by trickery, to use devious or dishonest methods to achieve
one's ends)
Personally, I much prefer library names that are descriptive rather
than creative. Give your kids cute names, not your libraries.
-SS