ringo / ringojs

RingoJS is a JavaScript platform built on the JVM and optimized for server-side applications.
https://ringojs.org
Apache License 2.0
838 stars 101 forks source link

Use JNA/JFFI from JRuby to implement POSIX features #12

Closed hns closed 14 years ago

hns commented 14 years ago

The libraries used by JRuby to implement POSIX and other native features are now hosted at github: http://github.com/wmeissner/

hns commented 14 years ago

Initial code for this is already contained in the file module in the chmod() and symlink() functions.

http://github.com/ringo/ringojs/blob/941eaadf55326d3d6b022c5afab87ef222bbf7f4/modules/file.js#L151-171

hns commented 14 years ago

Note: a quick way to get these running is to copy the files jaffl.jar jffi*.jar jna.jar jnr.posix.jar from the build_lib directory in jruby somewhere into the ringojs lib directory.

http://github.com/jruby/jruby/tree/master/build_lib/

hns commented 14 years ago

Jython's implementation:

http://jython.svn.sourceforge.net/viewvc/jython/trunk/jython/src/org/python/modules/posix/

hns commented 14 years ago

I just pushed initial support to my fork: 1476fe9dfbc5f2aa7d70d8b87a59622e0242e2a3

hns commented 14 years ago

closing