[etoys-dev] Re: [squeak-dev] Re: Physical Etoys released!
richi.moran at gmail.com
Fri Mar 12 16:23:42 EST 2010
I split the Arduino and SqueakNxt packages on SqueakSource so that the Etoys
code wouldn't get mixed with the core classes that manage communication with
the devices. I also added a few comments and I translated the spanish
comments so that you find the code easier to understand.
For Arduino, you will find the following packages:
* ArduinoCore (http://www.squeaksource.com/ArduinoCore/)
* ArduinoEtoys (http://www.squeaksource.com/ArduinoEtoys/)
* ArduinoCompiler (http://www.squeaksource.com/ArduinoCompiler/) - This is
the only package that needs FFI, I use it to automatically upload Firmata
into the Arduino board. This package is not required but it makes life
For SqueakNxt, you will find the following packages:
* SqueakNxtCore (http://www.squeaksource.com/SqueakNxtCore/)
* SqueakNxtEtoys (http://www.squeaksource.com/SqueakNxtEtoys/)
I removed all the remaining references to FFI (we used to have a dll to
handle the nxt communication but now we only use serial ports) and I'm
working on improving the nxt code to fix a few bugs regarding the sensors
Anyway, if you look at the code, please send me back what you think. I'm
looking forward to learn from your code critics.
Thanks for the interest!
On Fri, Mar 5, 2010 at 7:38 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:
> On 05.03.2010, at 20:27, Ricardo Moran wrote:
> > On Thu, Mar 4, 2010 at 9:23 AM, Bert Freudenberg <bert at freudenbergs.de>
> >> On 03.03.2010, at 00:42, Ricardo Moran wrote:
> >>> I might be missing something obvious here, but why is FFI forbidden in
> Etoys? Is it a matter of security?
> >> Yes. One of the advantages of having a Virtual Machine is that you can
> be quite sure what the code running in it can and can not do. It has a
> pretty narrow interface to the "outer system". By allowing FFI that
> interface widens to all the libraries on the system, which means all bets
> are off.
> >> Additionally, FFI calls are highly platform-specific, whereas Etoys
> projects are supposed to work on any platform.
> > Yes, those are very good reasons for excluding FFI from Etoys. If we
> write a plugin to handle the communication with the external libraries we
> use, would you reconsider including our work in Etoys? (now that I think of
> it, we will probably have some license issues... I will have to check that).
> > Anyway, I think you can include the Arduino and SqueakNxt projects, they
> don't use FFI at all, only the SerialPlugin. Would that be ok?
> > I must say, I would really love to see our projects included in Etoys!
> I'd love to see more ways to connect Etoys with the real world. We
> integrated WorldStethoscope support already, and there is Joystick support,
> the camera works on some machines etc. We have the ScratchPlugin which would
> allow to connect to the ScratchBoard, and the Etoys code for this is sitting
> in a ticket already.
> Now I can't promise to take your code in before having looked at it, and
> I'm not the only one deciding that, but we're certainly going to consider it
> - Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the etoys-dev