97 points · by Morgawr · 12y ago · 29 comments
https://archive.org/details/80-microcomputing-magazine-1983-...
I distinctly remember as a kid it was very slow indeed, but interesting.
I got lost reading the ads. In retrospect, computing used to be a much more expensive hobby than it is today. Not just relative terms, but absolute terms. Then again, people are much poorer now, so its required.
Anyway, since 1983, he became a neuroscience prof and mentions his BASIC LISP on his homepage
The line numbers are not consecutive, but I think he's well under a thousand lines of BASIC, there just aren't enough pages of code in the listing to exceed that.
And yes, this was considered reasonable coding style back then. That is why this generation never shrank in terror at the sight of bad Perl code. Why yes, this is a bit hard to read, but I've certainly seen worse...
Line numbers. Control flow exclusively by if/then and for/next. We Love GOTO (noobs probably don't know what a GOTO is or why some considered them harmful). No namespaces, everything was a giant global shared namespace where $T meant the same thing everywhere. No naming conventions for variables (like Hungarian or CamelCase). No one used revision control. No unit tests. No symbolic debuggers (they were coming, soon, and something like them existed for assembly, but this was 1983 and not-assembly). For better or worse, no REGEXes. No object orientation, pure procedural. Everything is in one file because quite a few people had no disk drive and relied on cassette tapes. Line editing was a little crude compared to modern vim/emacs and pretenders to the throne. No IDEs until Turbo Pascal and the like quite a few years later (Or was quickbasic first? Either way it would be a long time...)
By modern standards MSBASIC is pretty weird.
> http://mypage.iu.edu/~rdbeer/
Just wanted to say thanks for linking to this fine chap. He seems to have a cross-section of interests such that I can really relate to and draw from. In particular, some people here might be interested about the intersection of cellular automata theory and (what it has to say about) cognition, autonomous systems, etc. (see e.g. [1, 2]) This is one of his approaches to understanding dynamic systems and how coordinated bahaviour can arise in them. See his publication list, too. [3]
Apparently formal treatments / approaches to autopoiesis have been developed for quite some time (currently recommended books seem to be from e.g. 1980 and onward.) Interesting indeed! :)
[1]: http://pubs.cogs.indiana.edu/pubspdf/34233/34233_varela.pdf
https://github.com/alandipert/gherkin/wiki/Why-gherkin%3F
The short version is that bash is the closest thing to being universally available on every UNIXoid system no matter what, and so by writing stuff in bash, you make it so that it can run everywhere. But because bash sucks to program in, this is a minimalist interpreter for a sane language. You can then write programs in that language, and they will only depend on bash and on this interpreter, and the interpreter is simple enough not to need any sort of complex installation.
I can't quite think of a use case for this where it's not worth e.g. installing Python first, but it's an interesting project all the same.
Whereever you get Bash, you can reasonably assume Perl5 (unless in an initrd or something). Even on some old AIX 4 I had a readily available Perl 5.005.
Nonetheless I wish there were more actual shells that were not sh descendants.
Also I wonder if awk would have been a better language than bash. I think awk is more available across various Unixes.
If anything, the length that they are willing to go to do this points to the brokenness of package managers. There are still a lot of disadvantages to a package manager versus cp-ing some code.
Here you go!
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/l...
In the meantime, for variadic addition, one can do:
(load-file "core.gk") (reduce + 0 '(1 2 3)) ;=> 6