Re:Why Basic is Still Relevant
by gaius on Monday December 21, 2009 @02:38AM
(#1007386)
The thing is, Smalltalk (and Forth, and to a certain extent Lisp) do what they do by pretending that everything outside the language runtime doesn't really exist. I wonder how much it's possible for young children to really care about manipulating symbols in such a closed world. Now consider LOGO which is all about moving the turtle around the the floor (and is quite Lisp-like). Even now, decades later, when I'm typing the commands that will make the tape robots in a distant datacentre spin into motion, I'm remembering LOGO at primary school...
[ Parent
| on HN ]
Smalltalks usually come with some sort of graphical environment that facilitates the building of GUIs. Those environments usually also provide simpler graphical primitives you can draw with. In fact, if all you want is LOGO, you can use the Pen class (a standard ST-80 class) in Squeak or Pharo as a LOGO turtle:
p := Pen new.
360 timesRepeat: [p go: 1; turn: 1].
that will draw a circle.
4 timesRepeat: [p go: 100; turn: 90].
and that, a square.
More complicated stuff can be done with Morphic and eToys.
Yep, but the important part of a LOGO teaching system is the real actual turtle moving around a giant piece of paper. It makes it "real".
Re:Why Basic is Still Relevant
by JulianMorrison on Monday December 21, 2009 @04:52AM
(#1007501)
I don't know why you include Forth in that "closed world" category. It was originally designed to control machinery, and it's still ideal for exploratory embedded code.
In Forth the BLOCK mechanism for file access is unlike any other programming language, for example. It doesn't even really have a concept of a filesystem or files; you load pages into memory yourself.
Re:Why Basic is Still Relevant
by JulianMorrison on Monday December 21, 2009 @06:04AM
(#1007564)
Block files are for when Forth is the OS and you want a quick simple way to divide up your storage. Forths that are hosted on eg: Linux all let you use the regular filesystem.