News for hackers. Stuff that matters.
Re:Graal and Truffle could accelerate programming language d... by nostrademons on Tuesday July 19, 2016 @03:03PM (#12123990)
Interesting. What happens if the native memory layout doesn't support a feature that the extension code requires? For example, what if a JRuby+Truffle script calls into a C library, which allocates a struct and invokes a Ruby callback with it, which then wants to access the fields via reflection? C doesn't normally include type information with its structs, so how would the Ruby code know the memory layout of the object?

What if it's not the C extension in your project that does the allocation, but a closed-source third-party library that your C code calls into? Do you need to recompile all source code to generate the appropriate typemaps?

Re:Graal and Truffle could accelerate programming language d... by thomaswue on Tuesday July 19, 2016 @06:52PM (#12125563)
Yes. Sulong assumes that at least the LLVM bitcode including debug information is available. It does not work with third party machine code binaries where no source information is available.