by sanderjd · 11y ago · 0 comments
I'm not so sure they are. I've personally never been able to wrap my head around how I would use any of the Smalltalk environments I've played with to create and distribute something useful to a real person, entirely due to the necessity of "a full-fledged Smalltalk VM". It seems too all-or-nothing; maybe it would work well as an entire OS, but it doesn't work great at the application level.
And yet --
A very large Smalltalk application was developed at Cargill to support the operation of grain elevators and the associated commodity trading activities. The Smalltalk client application has 385 windows and over 5,000 classes. About 2,000 classes in this application interacted with an early (circa 1993) data access framework. The framework dynamically performed a mapping of object attributes to data table columns.
Analysis showed that although dynamic look up consumed 40% of the client execution time, it was unnecessary.
A new data layer interface was developed that required the business class to provide the object attribute to column mapping in an explicitly coded method. Testing showed that this interface was orders of magnitude faster. The issue was how to change the 2,100 business class users of the data layer.
A large application under development cannot freeze code while a transformation of an interface is constructed and tested. We had to construct and test the transformations in a parallel branch of the code repository from the main development stream. When the transformation was fully tested, then it was applied to the main code stream in a single operation.
Less than 35 bugs were found in the 17,100 changes. All of the bugs were quickly resolved in a three-week period.
If the changes were done manually we estimate that it would have taken 8,500 hours, compared with 235 hours to develop the transformation rules.
The task was completed in 3% of the expected time by using Rewrite Rules. This is an improvement by a factor of 36.
And I love Smalltalk, as a language. I want to write programs in it, and use it more, and get stuff done in it, but I'll be damned if I'll fight Squeak's windowing system and bizarre VCS.
Right now the only way I have to run Smalltalk is via Gnu Smalltalk, which is a bit old and cranky and not very fast. This makes me very sad.
(I wonder if I could translate Smalltalk source in to Lua and push it through LuaJIT...)
The Smalltalk VM is like a machine emulator --- it runs a complete Smalltalk system, complete with its own screen, GUI, multiple processes and concurrent programs, IDE, debugger, editor, etc, all mixed together. This typically all runs inside a single window, with its own windowing system.
It's a hangover from the days when Smalltalk would run on the bare metal of a computer --- it was the entire operating system.
Most Smalltalk implementations have 4 pieces:
- VM like the JVM
- sources file
- changes file
- image file
No it does not "typically all run inside a single window, with its own windowing system".
Most Smalltalk implementations have 4 pieces:
- VM like the JVM
- sources file
- changes file
- image file
> I've personally never been able to wrap my head around how I would use any of the Smalltalk environments I've played with to create and distribute something useful to a real person
I'm not confused about the existence of different pieces, I've just never been able to wrap my head around how to fit everything together within the current software ecosystem to create and distribute something useful to a real person. This may be due to any number of things: poor intelligence or research on my part, poor marketing on the part of the smalltalk community, poor documentation, or a design that just doesn't fit in very well.
I'm not at all convinced it can't be done, I've just never been able to figure it out. I'd really love to read an article along the lines of, "here's how we successfully created and deployed a non-trivial smalltalk application sometime within the last 5 years".
You mean like using Win32™ DLLs?
http://www.object-arts.com/downloads/docs/parameterconversio...
I haven't been looking for Smalltalk success stories. This sort-of thing?
For example, this is how VisualWorks Smalltalk does it (Application Delivery chapter):
www.cincomsmalltalk.com/main/Documentation/VisualWorks/AppDevGuide.pdf
It also comes with Seaside, which is a pretty nice web app framework, and will run out of the box. Instructions here:
http://smalltalk.gnu.org/blog/bonzinip/seaside-development-g...
building "apps" for desktop or mobile? ok, you got me there... smalltalk is probably not apropo...
… because?