9 ms·
Byte Magazine – Smalltalk (1981)
- asplake 8y agoGlorious - how I wish I’d kept mine!
- robterrell 8y agoByte Magazine had the best covers. Page 98 has a fascinating Larry Tessler discussion of Smalltalk that includes a version of his "no modes" rant that later became the foundation of the Macintosh UX. It's fascinating to read in retrospect... he calls out Alan Kay's overlapping windows as de facto modes. (I'm trying to image a past where overlapping windows lost and tiled windows and virtual screens won.) But the thing I like the most is the ability to write some code in the text editor, highlight it, and use the "do it" menu command to immediately execute it. Would be terrible for security... but I want it.
- jhbadger 8y agoPlenty of text editors today allow this -- Emacs has "shell command on region" which many modes incorporate to allow running code fragments while editing. I'm not really seeing the security issue given that the code runs as you and can't do anything more than what you could do on the command line.
- arnsholt 8y agoSomewhat to the side of your comment about "do it", but my experience of working in Smalltalk is that it's amazing. The project I was working on had been in production sine 1996, and the Smalltalk VM it ran on dated to 1999 (Cincom bought VSE, license cost things happened), but the way Smalltalk lets you seamlessly move between writing code and exploring the state of a running system made the development process much smoother than any other system I've worked in. Also, the way (almost) everything in the VM can be extended or replaced was very useful in the context of very much legacy code in that project; there's a bug in the standard library? No problem, just patch the offending method(s) and ship the fix in the next release of the software.
- coldtea 8y ago>But the thing I like the most is the ability to write some code in the text editor, highlight it, and use the "do it" menu command to immediately execute it. Would be terrible for security... but I want it. How would it "terrible for security"? It can be done in most text editors like Vim, Sublime, etc, it's just a menu command / shortcut away.
- twic 8y agoI think the idea is that end users would be able to do this in the running application, because the running application is just another Smalltalk image.
- hhs 8y agoAgree about the covers. Also, as I'm flipping through the pages, I notice that the advertising copy is quite engaging. I wonder why today's typical paper magazine lacks that playfulness.
- protomyth 8y agoThe ads were done by a lot of folks without an advertising background, and basically said what would attract them. I miss the lack of slickness, but I guess that only works in a hobbyist / early market.
- e12e 8y agoI used to think that too. Then I accidentally hit ctrl-shift-c in outlook webmail/chrome - opening the dev console rather than copying the highlighted text... Point being smalltalk did "win" in the end (or: so far).
- isr 8y ago> But the thing I like the most is the ability to write some code in the text editor, highlight it, and use the "do it" menu command to immediately execute it. Would be terrible for security... but I want it. I don't see it as a security problem - just as accidentally headbutting your keyboard and spitting out "sudo rm -rf /" maybe a "security problem" in theory (to some), but not in practice! Anyway, what you're looking for is the acme editor. Some great guides available online (the obligatory introduction is Russ Cox's video). Ostensibly, its the "emacs for plan9", but has long since been available on other platforms, courtesy of plan9port (which makes much of the plan9 userspace available natively on unixy machines). Acme has heavily inspired by the oberon (a full language-as-OS system, akin to lisp machines and what not) editing environment, and somewhat influenced by smalltalk (Rob Pike spent some early time at the Xerox Parc Labs playing with it). It has the "text anywhere is executable (or searchable/plumbable/etc), if you want to" feature as a core concept. If anyone is interested, along with a host of acme-like clones, there's a quite usable fork called [acme2k](https://github.com/karahobny/acme2k https://github.com/karahobny/acme2k) which gives you a few additional keyboard shortcuts, plus the ability to apply your own colourscheme by editing a header file and recompiling (a la suckless and dwm).
- vram22 8y ago>But the thing I like the most is the ability to write some code in the text editor, highlight it, and use the "do it" menu command to immediately execute it. I vaguely remember reading (in an old BYTE issue, ha ha) that the Oberon operating system had something like this.
- dominicl 8y agoSmalltalk is an amazing time sink if you can get past the syntax. Having learned about it with Squeak Smalltalk the first time during University, it immediately captured my mind. The great collection library, integrated ide, integrated version control, the absence of files. And most exciting everything you interact with comes with it's underlying code and can be changed at runtime. Unfortunately trying to release a Smalltalk creation into production always turned out to be the most complex task. Smalltalk is an island. A beautiful island you can get lost in for years. But still an island.
- floren 8y ago> Unfortunately trying to release a Smalltalk creation into production always turned out to be the most complex task. Smalltalk is an island. A beautiful island you can get lost in for years. But still an island This was always something which prevented me from really digging deeply into Smalltalk -- a nagging feeling that I was tossing bits into this VM, and eventually it'll work the way I want, but it's now bound forever into the particular VM and that I wouldn't even be able to get a code listing out. I'm sure I was over-dramatizing the challenges for myself, but I would really be interested to hear how you actually do get source code out and distribute it to others.
- scroot 8y agoSmalltalk has had code versioning and sharing for a long time now (Envy, Monticello, etc). But in the past few years Git integration has really taken off. Pharo uses Iceberg to interact with git and the main image is now developed exclusively through it.
- travisgriggs 8y agoI’m always amused that this is called a magazine. At least this particular issue. It’s nearly 500 pages long!! My favorite chapter in the tome is the one by Peter Deutsch on control structures. Starts on page 322. I did Smalltalk for 20 years. I don’t have right words to express how much I loved the Smalltalk block closure, the fact that it was a reified object type that you could extend and use polymorphically is one of the unsung geniuses in Smalltalk. Every time I use python lambdas or Swift’s closures or Kotlin’s closures (the three closure enabled languages I use most today), I just sigh and wish.
- coldtea 8y ago>I loved the Smalltalk block closure, the fact that it was a reified object type that you could extend and use polymorphically Some example of that?
- CodeArtisan 8y agoMemoization. You could add a method to the class implementing blocks. Block>>memoize "Return a memoized one-argument block" | cache | cache := Map new. ^[:arg | cache at: arg ifAbsentPut: [self value: arg]] aBlock := [:foo | foo + 1]. aBlockMemoized := aBlock memoize.
- jolmg 8y agoI believe Ruby's blocks are based on Smalltalk's blocks. Could you describe how Ruby's blocks might be lacking in comparison to Smalltalk's?
- scroot 8y agoIn Smalltalk, blocks are actual objects in the system like everything else. You can send messages to them (I don't think Ruby allows this). In fact, that's the only way to get something out of a block -- send it the message #value (without args) or #value: (with args) to get some response back. As the poster above you mentioned, you can then create your own objects that are polymorphic to this pattern if you need to. In other words, make your own object respond to the #value/#value: messages and other objects in the system that are, say, expecting a block can use your custom object all the same. Objects that are polymorphic with blocks are often called "valuables" precisely because they respond to the #value messages.
- dharmatech 8y agoI'm surprised modern SmallTalks (Pharo, Squeak) haven't yet explored optional types. (Yes, I know about StrongTalk. :-) )
- scroot 8y agoThere are a couple of projects in the works that take an interesting approach to this. Because the image/VM is always running you can essentially "turn on" a checker that will note which classes of objects have been sent as message arguments to some method. After a while you have more or less a list of "types" that a given method understands because of what the system has experienced. These can then be used for type hints in the IDE. This approach is doubly interesting if you work with tests, because simply running a test suite you think is fairly comprehensive will result in a pretty good set of types.
- isr 8y agoYou may (or may not?) find this interesting, by one of the cuis-smalltalk maintainers: [LiveTyping](https://github.com/hernanwilkinson/LiveTyping https://github.com/hernanwilkinson/LiveTyping) is a project which keeps track of types (and shows them to you) as they become known to the vm. PS: cuis smalltalk = a less-bloaty "distribution" of squeak (I say "distribution" rather than fork, as that more closely captures the spirit. Its just a thorough culling of the core classes, and stripping out of extraneous stuff - all running on the same squeak vm)
- gtycomb 8y agoIn the early 1980's in addition to Smalltalk, the precursors of Haskell such as Hope, Miranda ... Byte would bring us these research languages and one would jump in and try them out.
- watersb 8y agoThis is the best BYTE issue. Good times.
- neilv 8y agoLook at the effort PARC Smalltalk people put into this Byte magazine issue, reaching out to the early microcomputer enthusiasts and industry. Imagine if some of the more powerful early home computers (which often came with BASIC and nice intro-to-programming manuals) had come with Smalltalk instead, and the first generation of microcomputer whiz kids had started with that world of influences. This Smalltalk issue of Byte was before my time, and I didn't get to use Smalltalk until a decade later. It was in a class taught by Bob Beck from Sequent, teaching OO as an adjunct on the side, using Smalltalk, C++, and object databases. This was one of the most influential classes I ever took. It also started my open source contribution habit, when I released my class project, a visual class hierarchy browser for Smalltalk. (A few years later, I actually had a chance to go work at PARC, in a junior role on a new project, and my overwhelmingly biggest regret in life was instead choosing to do something else that also seemed like something one had to go try or always wonder.)