<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It's not part of Etoys yet. If its low-level interface indeed requires FFI, then that interface would have to be rewritten as plugin for Etoys to include it.<div><br></div><div><span class="Apple-style-span" style="font-size: 12px; ">- Bert -</span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font><div><div>On 22.07.2011, at 14:55, karl ramberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>What about the Physical Etoys project ?</div>
<div><a href="http://tecnodacta.com.ar/gira/projects/physical-etoys/">http://tecnodacta.com.ar/gira/projects/physical-etoys/</a></div>
<div>&nbsp;</div>
<div>Karl<br><br></div>
<div class="gmail_quote">On Fri, Jul 22, 2011 at 2:20 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5"><br>On 22.07.2011, at 02:10, Eliot Miranda wrote:<br><br>&gt;<br>&gt;<br>&gt; On Thu, Jul 21, 2011 at 4:57 PM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>&gt; On 22 July 2011 02:34, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Hi All,<br>&gt; &gt; &nbsp; &nbsp; today I committed the threaded FFI plugin along with the threaded VM and<br>&gt; &gt; hope to be able to support people in doing threaded FFI work on the x86<br>&gt; &gt; platforms really soon now (Esteban, amongst others, this means you ;) ).<br>
&gt; &gt; &nbsp;But to put the image-level code that uses the new FFI plugin into<br>&gt; &gt; production the standard VM needs to be upgraded to not crash with the<br>&gt; &gt; ExternalFunction image changes the new threaded FFI plugin wants. &nbsp;The main<br>
&gt; &gt; change is that ExternalFunction changes size, gaining a stackSize inst var<br>&gt; &gt; which is used to tell the FFI plugin how much stack spacer to reserve for<br>&gt; &gt; marshalling (its computed on first use). &nbsp;The best way for this to happen is<br>
&gt; &gt; to start using the ThreadedFFIPlugin as the standard plugin in the<br>&gt; &gt; Interpreter VM. The ThreadedFFIPlugin overall is simpler than the old FFI<br>&gt; &gt; plugin (no assembler support code) and better (fully reentrant). &nbsp;But for<br>
&gt; &gt; this to happen we may need to implement the platform=specific parts of<br>&gt; &gt; the ThreadedFFIPlugin (still entirely Smalltalk code) for PowerPC and ARM<br>&gt; &gt; (and perhaps others, SPARC??). &nbsp;I understand what has to be done and I can<br>
&gt; &gt; explain it to anyone interested in working on the problem, but I don't have<br>&gt; &gt; any hardware with which I can test the results so its pretty pointless my<br>&gt; &gt; doing the work and producing something inevitably broken. &nbsp;So are there<br>
&gt; &gt; people out there who would be interested in doing the port to PPC and ARM?<br>&gt; &gt; &nbsp;It means fleshing out the classes<br>&gt; &gt; &nbsp; &nbsp; ThreadedARMFFIPlugin ThreadedFFICalloutStateForARM<br>&gt; &gt; &nbsp; &nbsp; ThreadedPPCBEFFIPlugin ThreadedFFICalloutStateForPPC<br>
&gt; &gt; and having a solid understanding of how alloca works to do stack allocation<br>&gt; &gt; and how the ABIs on ARM and PPC pass registers.<br>&gt; &gt; here's hoping there are a few good low-level people who would be interested.<br>
&gt; &gt; Let me know.<br>&gt;<br>&gt; I wonder if you find anyone today using these archs, not saying using<br>&gt; squeak/pharo on them + knowing low-level details + wanting to help :)<br>&gt;<br>&gt; Right, chances are thin. &nbsp;But then if no one is interested then the work doesn't need to be done. &nbsp;Bert, you mentioned the other day that PPC was still relevant for etoys. &nbsp;But am I right in thinking etoys never uses the FFI?<br>
<br></div></div>Right. Etoys should run on both ARM and PPC, but it does not use FFI.<br><font color="#888888"><br>- Bert -<br><br><br><br></font></blockquote></div><br>
<br></blockquote></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br class="Apple-interchange-newline"></span></font></span>
</div>
<br></div></body></html>