Sig, You say "Of course, an FFI API is there" but it's not always clear what is and isn't working. You appear to be further along that I thought was the case. I *really* enjoy being wrong in that direction :) And yes, being able to enter ASM is good - it would be REALLY bad if we had to do that for everything. Add some questions (valid or FUD, I don't know yet) about the ease of use of Alien, and it gets confusing. Bill ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Igor Stasenko [siguctua@gmail.com] Sent: Thursday, September 23, 2010 11:02 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] NativeBoost examples (was: Re: DoubleArray) 2010/9/23 Henrik Johansen <henrik.s.johansen@veloxit.no>:
On Sep 23, 2010, at 4:03 07PM, Stéphane Ducasse wrote:
igor
May be a layer for people that are not fluent with assembly would help. Make the path easy from FFI writing.
It is already, RTM :) http://code.google.com/p/nativeboost/wiki/NBFnSpecParser
Get some patterns so that people can learn by following patterns.
Oh, yeah.. see. I was showing an example how to implement own primitive using NativeBoost. Of course, an FFI API is there, and doing all the magic under the hood, so you dont have to know any assemler voodo: releaseDC: hdc <primitive: #primitiveNativeCall module: #NativeBoostPlugin> ^ NBFFICallout stdcall: #( int ReleaseDC ( HWND self , " handle to window" HDC hdc " handle to DC " )) module: #user32 the above is an FFI call to external function ReleaseDC, which can be found in 'user32.dll' windoze module.
Stef
Cheers, Henry _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig. _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project