News for hackers. Stuff that matters.
Re:Rubinius 2.0 Preview Release by abrandoned on Wednesday June 08, 2011 @02:50PM (#2634489)
Huge fan of FFI (I use it to wrap/test all my shared libraries, mysql ext, etc..), but the problem of cross platform compilation still exists. I write a shared library and an FFI interface, but packaging it for use on Windows/*nix is still a pain (for compilation during install). Is there anything that solves for compilation across implementations and platforms? (FFI makes the interface simple after that)
Re:Rubinius 2.0 Preview Release by tptacek on Wednesday June 08, 2011 @03:08PM (#2634573)
I don't think we should have to sign up for coupling with a specific Ruby's runtime internals just to get cross-platform compilation of a shared library. For whatever it's worth, even autoconf can be made to work cross-platform.
Re:Rubinius 2.0 Preview Release by headius on Wednesday June 08, 2011 @06:39PM (#2635302)
Yeah, for that I don't have a solution. It seems like there ought to be a way to have FFI libraries bring along the lib they need and compile it right there, but portable C libs are still a bitch to manage across platforms no matter what you do. I hate to say it, but JVM libraries have a huge advantage here; most JRuby-specific libs that ship a jar file just work on any platform with no recompile and no portability issues. Hard to beat that :(