Re: [Pharo-dev] UnifiedFFI Docs

2017-10-26 Thread Esteban Lorenzano
> On 25 Oct 2017, at 21:39, Todd Blanchard wrote: > > OK, new question. > > How do I file this in? I was able to load tonel from iceberg. I added the > repo and it gave me a choice of packages to load and I loaded them using the > iceberg browser. > > I added this to

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-26 Thread Esteban Lorenzano
> On 25 Oct 2017, at 19:58, Todd Blanchard wrote: > > I did not - had no idea it existed. > > Is if fair to say that the 32 bit warning in the readme does not apply to > Pharo 64 bit? is not. I never tested it on 64bit :) in theory, it should work out of the box, but

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-25 Thread Todd Blanchard
OK, new question. How do I file this in? I was able to load tonel from iceberg. I added the repo and it gave me a choice of packages to load and I loaded them using the iceberg browser. I added this to the iceberg browser and there are no packages listed and I have absolutely no clue how to

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-25 Thread Todd Blanchard
I did not - had no idea it existed. Is if fair to say that the 32 bit warning in the readme does not apply to Pharo 64 bit? > On Oct 25, 2017, at 7:35 AM, Esteban Lorenzano wrote: > > :) > > Did you look at this project: >

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-25 Thread Esteban Lorenzano
:) Did you look at this project: https://github.com/estebanlm/libclang-pharo-bindings/ ? it was using parseTranslationUnit (no 2)… there you can find how is being used (I just converted it to tonel format, but older versions are in

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-24 Thread Todd Blanchard
Hey Esteban, Now that you have outed yourself as a maintainer of FFI, I have a question. :-) I want to call the libclang function: /** * \brief Parse the given source file and the translation unit corresponding * to that file. * * This routine is the main entry point for the Clang C API,

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-23 Thread Todd Blanchard
https://pharo.fogbugz.com/f/cases/20574/FFITypeArray-annonymousClassCreator-doesn-t-handle-pointer-types-correctly There you go. > On Oct 22, 2017, at 2:42 AM, Esteban Lorenzano

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-22 Thread Esteban Lorenzano
Hi, > On 21 Oct 2017, at 21:15, Stephane Ducasse wrote: > > Esteban will probably reply to this thread yes, I will :) > > > On Thu, Oct 19, 2017 at 10:34 PM, Todd Blanchard wrote: >> I have found the problem with VoidPointer3 generating

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-21 Thread Stephane Ducasse
Esteban will probably reply to this thread On Thu, Oct 19, 2017 at 10:34 PM, Todd Blanchard wrote: > I have found the problem with VoidPointer3 generating accessors. > > No idea how to contribute back a fix but this is what I've found. > >

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-19 Thread Todd Blanchard
I have found the problem with VoidPointer3 generating accessors. No idea how to contribute back a fix but this is what I've found. FFITypeArrayType>>annonymousClassCreator ^ String streamContents: [ :stream | stream nextPutAll: '(FFITypeArray

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-19 Thread Todd Blanchard
That’s great - it’s been kind of magical but a couple things have changed since you wrote it and some bugs have crept into ffi. Right now I’m finding the generated accessor for the VoidPointer3 is actually generating a void 3 accessor and that doesn’t work. I spent all day yesterday tracking

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Ben Coman
On Thu, Oct 19, 2017 at 1:05 AM, Todd Blanchard wrote: > I'm working through Ben's great blog post about playing with libclang and > I am puzzled by something. > Thx Todd. Knowing someone is looking at it encourages me to expand it. I'm interested in looking at your specific

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Todd Blanchard
> On Oct 18, 2017, at 1:21 PM, Nicolas Cellier > wrote: > > > > Should isNull be defined as you suggest in ByteArray? If the semantic is > #isNullPointer, then I don't think so. If it's a more general message, then > maybe... > > What is the class of

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Nicolas Cellier
2017-10-18 19:05 GMT+02:00 Todd Blanchard : > I'm working through Ben's great blog post about playing with libclang and > I am puzzled by something. > > invalidateSessionData >handle atAllPut: 0. > > zero;s out the handle. Cool. However, > > handle isNull > > does not

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Todd Blanchard
I'm working through Ben's great blog post about playing with libclang and I am puzzled by something. invalidateSessionData handle atAllPut: 0. zero;s out the handle. Cool. However, handle isNull does not return true despite it being used in the getString method as ^ handle isNull

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Dimitris Chloupis
Sure the documentation could be better, that is definetly important, but is already good enough and UFFI is a very technical subject much more suited to a mailing list . Its not physical possible to cover the massive potential of UFFI. On Wed, Oct 18, 2017 at 9:32 AM Stephane Ducasse

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-18 Thread Stephane Ducasse
Please do not hesitate to do Pull Requests. Luc told me that he wants to do a pass on it and Esteban promises that to me but he is super busy. Stef On Wed, Oct 18, 2017 at 5:54 AM, Todd Blanchard wrote: > Wonderful! Thanks. > >> On Oct 17, 2017, at 3:45 PM, stephan

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-17 Thread Todd Blanchard
Wonderful! Thanks. > On Oct 17, 2017, at 3:45 PM, stephan wrote: > > On 17-10-17 23:06, Todd Blanchard wrote: >> Anyone know what happened to this? >>

Re: [Pharo-dev] UnifiedFFI Docs

2017-10-17 Thread stephan
On 17-10-17 23:06, Todd Blanchard wrote: Anyone know what happened to this? https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/book-result/UnifiedFFI/UnifiedFFI.pdf https://github.com/SquareBracketAssociates/Booklet-uFFI has a link to