bagucode / clj-native Goto Github PK
View Code? Open in Web Editor NEWClojure library wrapping JNA's direct call mapping
Clojure library wrapping JNA's direct call mapping
Hi there,
We're trying to use clj-native for our new Overtone internal server. However, an error occurs when the example is modified as follows:
Are we doing something silly, or is this a bug in clj-native?
It would be useful if there was a way to add typedefs.
I'm new to Clojure so maybe there's some magic way to have them, but well, I won't find out unless I ask.
Thanks.
Hi there,
It appears Overtone is relying on the latest 0.9.3-SNAPSHOT code now. https://github.com/overtone/overtone/blob/master/project.clj
Looking on clojars https://clojars.org/repo/clj-native/clj-native/, only 0.9.2 is available.
Could you push out a new version, please?
Thanks!
--Roger
p.s. thanks for fixing up the FIXME testcases!
The current implementation seems only load libraries from some specific path.
But with these codes, we can search for libraries in arbitrary paths:
import com.sun.jna.NativeLibrary;
//......
NativeLibrary.addSearchPath("opencv", "C:\\opencv");
OpenCV openCV = (OpenCV)NativeLibrary.loadLibrary("opencv", OpenCV.class);
[net.java.dev.jna/jna "3.4.0"] is pretty old (2011) and doesn't appear to be up-to-date for ARM chips. Any chance we could get an updated version?
I believe this is preventing Overtone from running on ARM. See https://groups.google.com/forum/#!topic/overtone/53jRQWBy4Rw
Declaring a const char* return value throws an exception. ("Typed pointer not allowed as return-value" or something to that extent.)
As I understand it this is a security measure to prevent you from blowing yourself up. const char* however seems like a pretty common type and supporting it would be a nice feature for the end-user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.