[Haskell-cafe] [C Binding] Turning the mutable to immutable?
liamoc at cse.unsw.edu.au
Wed Jul 7 06:53:12 EDT 2010
Making an immutable API from a mutable one generally damages
performance (on von neumann architectures) somewhat, the goal is to
minimize that impact.
On 7 July 2010 19:40, Yves Parès <limestrael at gmail.com> wrote:
> That's indeed an advice I've read .
> But wouldn't it damage the performances, since code will have to go through
> an extra layer?
>  http://blog.ezyang.com/2010/06/principles-of-ffi-api-design
> 2010/7/7 Chris Eidhof <chris at eidhof.nl>
>> On 5 jul 2010, at 23:48, Yves Parès wrote:
>> > Hello,
>> > I don't know if some of you are familiar with the SFML library (stands
>> > for Simple and Fast Multimedia Library) --> http://sfml-dev.org
>> > As SDL, SFML is a 2D graphics library, but conversely to SDL it provides
>> > a hardware-accelerated drawing, through OpenGL.
>> > Well, I'm currently writing its Haskell binding, and I'm stuck with
>> > design issues.
>> > What I'm heading to is a full IO binding, and that's what I'd like to
>> > avoid.
>> Have you considered writing a low-level binding and building a high-level
>> library on top of that?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe