Guillermo Polito wrote
> On Mon, Sep 17, 2018 at 6:52 PM Alistair Grant <

> akgrant0710@

> >
> wrote:
> 
> 
>> Would it be useful for future FFI work to have primitives available
>> which convert file names to and from the various platform specific
>> formats?  (Linux is basically a no-op, and Windows could be written
>> in-image, but OSX requires the platform routines to be called).
>>
> 
> Maybe... Are the OSX routines exposed as C functions (that we can call
> through FFI) or they are objective-C methods/functions (that are more
> complicated to map)?
> 
> Thanks Alistair!

+1. From the image point of view, the non-standard normal form used on OSX
is the biggest issue.
If it's available through FFI, the platform-specific String encoding options
I mentioned previously could be implemented entirely in the image. 
If there are extra hoops to jump though, like having to provide utf8 to said
FFI function, it might still be worth it for the reduced performance
overhead. 

Cheers,
Henry



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Reply via email to