Re:Snakeware – Linux distro with Python userspace inspired b...
by russellbeattie on Tuesday June 02, 2020 @03:17PM
(#23395009)
Not really - you don't have an invisible memory buffer that's just sitting there that you need to load with a program in order to use it. Then you type "run" and it magically pulls the program out of the ether and runs it. And the command line isn't automatically, and exclusively, used as an ed-like line editor.
I get that all shells are programmable, but booting right into a programming language REPL? You need a different mental model of what's happening under the hood for it to make sense.
Re:Snakeware – Linux distro with Python userspace inspired b...
by ziotom78 on Tuesday June 02, 2020 @05:21PM
(#23396451)
OTOH, I remember that the first thing I did when, as a 10-year-old boy, I got a VIC-20 (my very first computer) was to type
10 + 10
and "20" appeared after I pressed the Enter key. Today this would not work with Bash, yet at the time the computer's answer seemed pretty logical to me.
Re:Snakeware – Linux distro with Python userspace inspired b...
by the_af on Tuesday June 02, 2020 @08:10PM
(#23398112)
There modern day expression-oriented CLIs where this would work, too :)
Re:Snakeware – Linux distro with Python userspace inspired b...
by the_af on Tuesday June 02, 2020 @07:33PM
(#23397801)
It absolutely didn't seem strange to me back then, so I guess we disagree. The memory buffer isn't invisible, you can list it and modify it.
Lots of Basics worked like that back them, to me it's understandable without a second thought -- much like a REPL today is. In fact we designed a console/REPL just like this in my day job. It's superb because the shell to the computer is an interactive programming language. If this puzzles you, a Smalltalk environment would blow your mind :P
Some people argue computers ought to go back to that: you boot up, you get your programming environment and file and device manipulation interface ready, and it's all the same thing.
If you boot a Unix system with a shell like bash, you basically have a programmable console that serves as your interface for loading files and running programs, as well as a programming interface itself. The shell is effectively Unix's "Commodore Basic V2.0" ;)