<div dir="ltr">Hi Nicolas,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 11, 2018 at 2:23 PM, Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I'm trying to see how hard it is to port my HDF5 work from VW to Squeak.<br>It was not a pleasure in VW, because that already raised some questions despite that there is a somehow detailed DLLCC manual:<br><br><a href="https://stackoverflow.com/questions/49544642/why-cant-i-pass-an-uninterpretedbytes-to-a-void-thru-dll-c-connect" target="_blank">https://stackoverflow.com/<wbr>questions/49544642/why-cant-i-<wbr>pass-an-uninterpretedbytes-to-<wbr>a-void-thru-dll-c-connect</a><br><a href="https://stackoverflow.com/questions/49564024/isnt-pointer-type-checking-disabled-in-dll-c-connect-and-is-that-ok" target="_blank">https://stackoverflow.com/<wbr>questions/49564024/isnt-<wbr>pointer-type-checking-<wbr>disabled-in-dll-c-connect-and-<wbr>is-that-ok</a></div></div></div></blockquote><div><br></div><div>What are you actually trying to do?  Can you post the C definitions?  I'm very familiar with both the SqueakFFI and DLLCC (as of 7.4.1) and the basic differences are to do with DLLCC's better cross-platform support, in that it auto-redefines typedefs on load.  But other than that I think the SqueakFFI is either just as good, or in some cases better (e.g. DLLCC has a bug in that it is the actual parameter that carries detailed type information for a struct, whereas in Andreas' SqueakFFI it is, correctly, the formal parameter).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br><br>But in Squeak, it sounds like hard++:<br></div><br><a href="https://stackoverflow.com/questions/49782651/how-one-aligns-structure-fields-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49782651/how-one-<wbr>aligns-structure-fields-in-<wbr>squeak-ffi</a><br><a href="https://stackoverflow.com/questions/49783126/how-one-defines-a-union-type-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49783126/how-one-<wbr>defines-a-union-type-in-<wbr>squeak-ffi</a><br><a href="https://stackoverflow.com/questions/49783443/how-one-defines-a-fixed-size-array-member-in-a-struct-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49783443/how-one-<wbr>defines-a-fixed-size-array-<wbr>member-in-a-struct-in-squeak-<wbr>ffi</a><br><a href="https://stackoverflow.com/questions/49783882/how-one-deals-with-typedefs-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49783882/how-one-<wbr>deals-with-typedefs-in-squeak-<wbr>ffi</a><br><a href="https://stackoverflow.com/questions/49784253/how-one-deals-with-multiple-pointer-level-like-char-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49784253/how-one-<wbr>deals-with-multiple-pointer-<wbr>level-like-char-in-squeak-ffi</a><br><a href="https://stackoverflow.com/questions/49784522/how-one-supports-both-32-and-64-bits-target-in-squeak-ffi" target="_blank">https://stackoverflow.com/<wbr>questions/49784522/how-one-<wbr>supports-both-32-and-64-bits-<wbr>target-in-squeak-ffi</a><br><br>Either I'm blind, or the very light documentation that I found lacks those details <br><a href="http://wiki.squeak.org/squeak/2426" target="_blank">http://wiki.squeak.org/squeak/<wbr>2426</a><br><br></div>I think that I could throw a few more questions (dealing with enums...) but I don't want to excede some unknown quota and start irritating a touchy SO moderator ;)<br><div><br><div><div>I'm afraid that there is no answer but "you're on your own"...<br></div><div>I'm open to studying Alien or UnifiedFFI of Pharo.<br></div><div>Or I can try and improve FFI.<br></div><div>At this stage, my trajectory has already been quite perturbed, and despite my knowledge of rocket science, I can see that I'm not going to put HDF5 on the intended orbit :(<br><br></div><div>Thoughts?<br></div><div><br><br></div></div></div></div>
<br><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>