3 ms·
Instead of having a Smalltalk image which contains the typical GUI (Morphic or otherwise being BitBlt on a HTML Canvas) I run a Smalltalk image which has a numb
by TheErikOnBike 5y ago
Instead of having a Smalltalk image which contains the typical GUI (Morphic or otherwise being BitBlt on a HTML Canvas) I run a Smalltalk image which has a number of Classes representing WebComponents. These classes have a small interface with Javascript (implemented as primitive calls in case you are familiar, similar to other SqueakJS plugins). When instantiating such a WebComponent, it will also instantiate a DOM element (the WebComponent). Events in the browser are wrapped in Smalltalk event classes and will be given to an event handler process (Smalltalk process) which will do the relevant work. So for example drag and drop is implemented fully in Smalltalk. The Smalltalk image I run to have this Web UI (and run only a Web UI, no business logic in the browser) is very small. It is only a little over 200Kb.
My code is free to use. See https://github.com/ErikOnBike/CodeParadise https://github.com/ErikOnBike/CodeParadise
I need to add some more documentation and more demos. I have been very busy with developing software and have been lacking a bit in giving some love to those.
Edit: An explanation and demo can be found here: https://vimeo.com/457353130 https://vimeo.com/457353130
- jiriro 5y agoInteresting. At 54:55 Tim Rowledge mentions Distributed Smalltalk by Chris Mala (not sure about the name). Is there any information about this? I could not find anything what seemed relevant or recent.
- timrowledge 5y agoThat would be "Chris Muller". Chris wrote, amongst other things, the Magma database and the Maui user interface stuff. Take a look at http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/rBdVcxgb http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/rBdVcxgb for the Magma code and http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/yM0obItA http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/yM0obItA for the client-server stuff. You might also be interested in the image spawning capabilities in Dave Lewis' OSProcess project; very fast forking of running images with their own work to do etc. See http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/uLwQvnlU http://www.squeaksource.com/@QWhy5xpjQLo5Sty4/uLwQvnlU