Re: [Pharo-users] FFI structs

2014-11-05 Thread Alain Rastoul
Hi Ronie, Great that you work on a threaded FFI because it is a pain for some libraries. FFI ODBC for example, works very well but is not usable in real applications because of sql locks that locks the pharo vm. I don't like FFI too much, NativeBoost is much better, unfortunately I don't know abo

Re: [Pharo-users] FFI structs

2014-11-05 Thread Annick Fron
This is good news ! Annick Le 30 oct. 2014 à 23:37, stepharo a écrit : > Ronie is working on unifying all the api and proposing one syntax mechanism > for > - nativeBoost back-end > - FFI > and may be Alien > > The FFI situation is not good and we know we should improve it. > >

Re: [Pharo-users] FFI structs

2014-10-31 Thread Ronie Salgado
> > Ronie is working on unifying all the api and proposing one syntax > mechanism for > - nativeBoost back-end > - FFI > and may be Alien I had a skype session with Eliot the last. He taught me about the callback mechanism and I am actually going to use Alien for the callbacks, by ada

Re: [Pharo-users] FFI structs

2014-10-31 Thread p...@highoctane.be
On Fri, Oct 31, 2014 at 6:51 AM, Tudor Girba wrote: > That is cool. > As long as we keep what is working, ahem, working. I now depend on quite a couple of FFI related libs. What I need is an easy FFI wrapping tool, like https://github.com/ronsaldo/swig. Is UFFI going that way? Phil > > Doru >

Re: [Pharo-users] FFI structs

2014-10-30 Thread Tudor Girba
That is cool. Doru On Thu, Oct 30, 2014 at 11:37 PM, stepharo wrote: > Ronie is working on unifying all the api and proposing one syntax > mechanism for > - nativeBoost back-end > - FFI > and may be Alien > > The FFI situation is not good and we know we should improve it. > > > On

Re: [Pharo-users] FFI structs

2014-10-30 Thread stepharo
Ronie is working on unifying all the api and proposing one syntax mechanism for - nativeBoost back-end - FFI and may be Alien The FFI situation is not good and we know we should improve it. On 29/10/14 20:18, Thomas Bany wrote: Oops, sorry, I was misslead by Steph reply. Some of t

Re: [Pharo-users] FFI structs

2014-10-29 Thread Thomas Bany
Oops, sorry, I was misslead by Steph reply. Some of the comments might still hold. For the *time: ’05:45’* code to work, you would need FFI to handle all the hassle of memory management and actually allocate the memory for 5 characters and copying it. I never used FFI but I doubt it does this. Lo

Re: [Pharo-users] FFI structs

2014-10-29 Thread Annick Fron
I can’t use NativeBoost on the Raspberry, I would be glad if I could !!! Le 29 oct. 2014 à 12:18, stepharo a écrit : > did you read the NativeBoost tutorial on the PharoForTheEntreprise book? > If you do please report potential mistakes so that we can improve. > > > On 29/10/14 05:59, Annick

Re: [Pharo-users] FFI structs

2014-10-29 Thread Thomas Bany
Hi Annick ! I'll explain first why you got the error. The assignment time: ’05:45’ failed because you tried to put an array of char (of size 5*sizeof(char)) inside an address. At some point, you need to allocate the memory that will hold the data. In your case, you can do it quite easily with th

Re: [Pharo-users] FFI structs

2014-10-29 Thread stepharo
did you read the NativeBoost tutorial on the PharoForTheEntreprise book? If you do please report potential mistakes so that we can improve. On 29/10/14 05:59, Annick Fron wrote: I I have a C struct with a char* struct result { char* time } I define an ExternalStructure in FFI , with o