Hi Cedreek,

(Part of this I mentioned on Discord as well, but not all readers will be on
Discord)

I'm working with a tiny Smalltalk image (currently around 150Kb) which
contains basic classes (very similar to PharoCandle, but with the regular
Smalltalk names without PC-prefix, see
https://github.com/carolahp/PharoCandleSrc). It additionally supports
WebSockets when used in combination with SqueakJS, but I'm working on a
regular WebSocket-version for OpenSmalltalk-VM as well.

The image has an ObjectEncoder/Decoder pair allowing the image to 'receive'
encoded classes and methods from a regular Smalltalk image (bytcode only,
since no compiler is present in the tine image). The tiny image can install
these classes and use them. The current 'protocol' is to send messages to
this tiny image and have the image send events back to the regular image.
The tiny image (client) is responsible for making a connection with the
regular image (server). But this protocol can be adjusted with newly
installed classes of course ;-).

My idea (dream?) is to create small cloud images for personal use, so you
can run many on limited computing units. These images will not have file- or
FFI-support and need to retrieve data through WebSocket/HTTP/... or other
web communication technology. It is part of a project I'm working on to
learn programming in Smalltalk to kids. They can spin up an image in the
cloud (or on their Raspberry Pi at home) and load their code from a remote
repository. The development environment will run in the cloud and be usable
with a web browser. In the web browser runs a tiny image which can execu...o
wait, I explained that part already ;-). So in the web browser this same
tiny image is running (on SqueakJS). This time, it loads code to be able to
manipulate the DOM. This tiny image is sort of the Javascript replacement.
So everything is Smalltalk! :-)

Still a long way to go though. I hope to be able to demonstrate a little of
this in a not so distant future. I will share my code as well. Everything
will be open source.

Feel free to reach out if anyone wants to participate. ;-)

Regards,
Erik




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to