B
* Bil Kleb said:It was neat to see Ruby naturally appear under this
thread recently on news:comp.lang.fortran
I think Ruby is getting quite popular in SC now. Btw: Is there something
like f2py for ruby?
I guess one have to use swig instead to get a binding for a fortran lib.
But there seems to be no english tutorial on the web. Any hints?
Cheers,
Steph.
PS: Bil, sorry for the PM.
* [email protected] said:better still - ruby/dl can call into fortan libs directory : no binding
required. i think this only works with f77 code though...
* Stephan Mueller said:I guess you are right. Tried it with gfortran and all I get is a
segfault.
better still - ruby/dl can call into fortan libs directory : no
binding required. i think this only works with f77 code though...
Dean said:Fortran compilers pass arguments in the opposite order compared to C
and C++.
Stephan said:Got it working now with Ruby 1.8.4 and gfortran-4.0. Thumbs up and thanks
for the help!
* Bil Kleb said:Steph, can you post an example somewhere?
If there are any fortran gurus out here, I've long thought that a
RubyInline::Fortan would be a nice thing to see.
I'm willing to help with this, but I don't know squat about fortran
(and honestly, don't want to). However, getting it working for
RubyInline would be a very cool feat and I can finally get some my
friend at LBLL to maybe start using ruby.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.