Re: [Pharo-users] UFFI and Fortran

2017-11-08 Thread Todd Blanchard
I keep running into issues on 64 bit FFI. Compiling 32 bit libraries is atypical and requires a lot of fiddling of unfamiliar build systems for various libraries so I'm just going to work in 64 bit land on Mac. > On Nov 6, 2017, at 7:25 PM, horrido wrote: > > That would be phenomenal! Let me

Re: [Pharo-users] UFFI and Fortran

2017-11-06 Thread horrido
That would be phenomenal! Let me know if and when it's done and I shall scream it out to all of social media! tblanchard wrote > Yes - the reason I've been trying to learn FFI is specifically to get > TensorFlow integration. > > I want a better ML workbench. > >> On Nov 2, 2017, at 9:08 PM, Be

Re: [Pharo-users] UFFI and Fortran

2017-11-03 Thread Dimitris Chloupis
Yes Atlas , a library I made that is available via Package Browser from inside the Pharo image, makes Pharo capable of using any cpython library from inside Pharo, with Pharo syntax, live coding and debugging again inside Pharo. The Pharo syntax is limited to just calling methods and variable assig

Re: [Pharo-users] UFFI and Fortran

2017-11-02 Thread Todd Blanchard
Yes - the reason I've been trying to learn FFI is specifically to get TensorFlow integration. I want a better ML workbench. > On Nov 2, 2017, at 9:08 PM, Ben Coman wrote: > > > > On Fri, Nov 3, 2017 at 11:10 AM, horrido > wrote: > Sounds like it's possible

Re: [Pharo-users] UFFI and Fortran

2017-11-02 Thread Ben Coman
On Fri, Nov 3, 2017 at 11:10 AM, horrido wrote: > Sounds like it's possible to call into TensorFlow (Python) from Pharo. That > would give Pharo a tremendous boost for machine learning applications. > > Am I right? > Tensorflow has a C API for FFI from other languages. * https://www.tensorflow.o

Re: [Pharo-users] UFFI and Fortran

2017-11-02 Thread horrido
Sounds like it's possible to call into TensorFlow (Python) from Pharo. That would give Pharo a tremendous boost for machine learning applications. Am I right? kilon.alios wrote > Maybe you talk about TalkFFI which aumatically wrapped C libraries for > Pharo and i think Squeak as well but used Na

Re: [Pharo-users] UFFI and Fortran

2017-11-02 Thread Todd Blanchard
SmalltalkAgents used to be able to point to any shared library and import all the functions. > On Oct 27, 2017, at 8:26 AM, Sean P. DeNigris wrote: > > Ben Coman wrote >> it seems to hint how to do it from Pharo UFFI. > > Slightly OT: I remember years ago, someone (Dave Mason?) demoed a librar

Re: [Pharo-users] UFFI and Fortran

2017-10-27 Thread Dimitris Chloupis
Maybe you talk about TalkFFI which aumatically wrapped C libraries for Pharo and i think Squeak as well but used Nativeboos, i think http://forum.world.st/TalkFFI-automatic-FFI-generation-for-Pharo-td4662239.html On the subject of Fortran yes you can use UFFI if Fortran code is compiled as a DLL

Re: [Pharo-users] UFFI and Fortran

2017-10-27 Thread Sean P. DeNigris
Ben Coman wrote > it seems to hint how to do it from Pharo UFFI. Slightly OT: I remember years ago, someone (Dave Mason?) demoed a library which automatically created FFI wrappers for C libs. I never heard anything about it after that, which is sad, because I was amazed and wanted to use it! --

Re: [Pharo-users] UFFI and Fortran

2017-10-26 Thread Ben Coman
Always starting by assuming someone in another language wants to do the same ;) googling... fortran ffi python second result... https://maurow.bitbucket.io/notes/calling_fortran_from_misc.html I only skimmed quickly, but it seems to hint how to do it from Pharo UFFI. cheers -ben P.S. Interesting

[Pharo-users] UFFI and Fortran

2017-10-26 Thread horrido
Can UFFI be used to call into a Fortran library? -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html