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: [email protected] 
[[email protected]] On Behalf Of Igor Stasenko 
[[email protected]]
Sent: Thursday, September 23, 2010 11:02 AM
To: [email protected]
Subject: Re: [Pharo-project] NativeBoost examples (was: Re: DoubleArray)

2010/9/23 Henrik Johansen <[email protected]>:
>
> 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
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



--
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to