-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Truffle] Begin Sulong integration #3800
Conversation
|
||
MX_DIR = ENV['MX_DIR'] | ||
|
||
if MX_DIR.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless MX_DIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same below)
What does the final |
Yes it means JRuby's C extension compiler. I didn't call it 'cc' as it'll need to be able to compile C++ as well. Do people use other languages as well? |
I know of extensions written in Rust used in the wild. I've seen interesting in writing them in Go, which is evidently possible now. |
Adds a command
jruby-cext-c
to compile C extensions.Loads Sulong modules and calls the
Init_
method.Example:
At the moment none of the C API is supported, and there is some bug that stops
printf
working from theInit_
method, so it's hard to see that anything is happening, but it is!You need Sulong, obviously. Depends on graalvm/sulong#150.
@mrigger @nirvdrum @pitr-ch @eregon