80 points · by mpweiher · 7y ago · 19 comments
One of my former colleagues from that team used to often joke about how the Self[2] team was effectively cheating with hidden classes and inline caching in the late 80s, because they had workstations with 64 megs of RAM whilst almost everyone else had to contend with a megabyte or less of RAM.
[1]: http://stephane.ducasse.free.fr/FreeBooks/BlueBook/Bluebook....
[2]: http://bibliography.selflanguage.org/_static/self-power.pdf
A GUI dev. environment ahead of its time, though "image save"-based development with classes strewn around everywhere isn't the best model for development, nevermind delivery where you never know what your code is going to be running next to. ST is also largely to "blame" for single receiver dispatch, and to a less extent the overuse of implementation inheritance, as most languages for performance don't have messages as first-class objects meaning that delegation becomes harder so inheritance was used over composition in most OO languages following. (Though you can use monkey-patching in langs that support it.)
What do you mean "classes strewn around everywhere" ?
"Smalltalk-80 The Interactive Programming Environment" chapter 23 explains the different ways class definitions, comments and methods could be saved to text files; and filed into a vanilla image in a standard build process.
http://sdmeta.gforge.inria.fr/FreeBooks/TheInteractiveProgra...
> …nevermind delivery where you never know what your code is going to be running next to.
Do you mean you never know what non-smalltalk code would be running on the same machine as the smalltalk code ?
Why would that be a problem ?
Why would that be more of a problem with a Smalltalk image than with .pyo ?
So, not the OP, but my answers to your questions:
>What do you mean "classes strewn around everywhere" ?
It was rarely clear where your classes ended, and the system ones began, which got in the way of distribution, particularly if you wanted to run on different hardware. It was surmountable, but a pain in the ass compared to Unix (which is not really the world's highest bar, particularly at the time).
> Do you mean you never know what non-smalltalk code would be running on the same machine as the smalltalk code ?
> Why would that be a problem ?
It's what's versus running in the same VM image, including modifications to the system classes themselves. There's no good boundary between apps other than they don't have references to eachother.
>Why would that be more of a problem with a Smalltalk image than with .pyo ?
Because a .pyo only has the classes that pertain to what it's trying to do, and doesn't stop you from running other python instances at the same time. Imagine if there was only one python vm allowed to run at once, the source was an afterthought (and considered not idiomatic), and pyos were basically just memory dumps each with their own unique monkey patching of system classes.
There's a good chance that squeak/pharo have done work to address this, but that was the state of the world for Smalltalk 80. It was designed right at the cusp of collaboration on design of personal computer apps, and it shows in the overall design.
Smalltalk V/Win from the early 1990s, on the other hand, did a pretty good job. Your image was saved as v.exe which started out essentially empty while the actual VM and the system classes were stored in a bunch of immutable .dll files. As you developed in the same style as in any other Smalltalk, the v.exe file would grow and grow with all the stuff that was particular to your application. You would then distribute that plus a subset of the .dll files (those needed to run you application but not to develop it).
Another serious issues is that people routinely modified the system classes. Once you had imported a few large libraries there would be any number of changes to classes like Object that would cause the libraries to mis-behave if they went missing or were changed. As nice as it was to be able to mod anything, I think it hurt reliability.
Please look at chapter 23,"Smalltalk-80 The Interactive Programming Environment" (system change set, change-management, conflict resolution).
> …only Smalltalk VM running on a given system…
I remember running side-by-side Smalltalk images on the same system (one with Windows UI look and one with Mac UI look -- so I could tell which was which) in 1994.
> …which got in the way of distribution, particularly if you wanted to run on different hardware.
Let's say you'd been developing on a Mac and wanted to show on a Windows machine: you simply installed the Windows VM on the Windows machine, and copied your image file (and change log) from the Mac to the Windows machine — done.
> …rarely clear where your classes ended, and the system ones began…
Prefixing class names was a common way to make it really clear which were your classes.
If there is a C compiler and sufficient memory to hold the image, all of squeak can be ported to a new processor in a few week.
Alan Kay's original Smalltalk team did that with the MIckey Mouse PDA when they were working at Disney — they knew who they would be working for next and so named the opensource Smalltalk-80 project at Apple "Squeak" in honor of that venerable old mouse.
Even after the team left Disney, the name stuck (and now you know the rest of the story).
Surprised that video has so few views!