That&#39;s indeed an advice I&#39;ve read [1].<br>But wouldn&#39;t it damage the performances, since code will have to go through an extra layer?<br><br>[1] <a href="http://blog.ezyang.com/2010/06/principles-of-ffi-api-design">http://blog.ezyang.com/2010/06/principles-of-ffi-api-design</a><br>
<br><div class="gmail_quote">2010/7/7 Chris Eidhof <span dir="ltr">&lt;<a href="mailto:chris@eidhof.nl">chris@eidhof.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 5 jul 2010, at 23:48, Yves Parès wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I don&#39;t know if some of you are familiar with the SFML library (stands for Simple and Fast Multimedia Library) --&gt; <a href="http://sfml-dev.org" target="_blank">http://sfml-dev.org</a><br>
&gt; As SDL, SFML is a 2D graphics library, but conversely to SDL it provides a hardware-accelerated drawing, through OpenGL.<br>
&gt; Well, I&#39;m currently writing its Haskell binding, and I&#39;m stuck with design issues.<br>
&gt; What I&#39;m heading to is a full IO binding, and that&#39;s what I&#39;d like to avoid.<br>
<br>
</div>Have you considered writing a low-level binding and building a high-level library on top of that?<br>
<font color="#888888"><br>
-chris</font></blockquote></div><br>