Re:A Universe in One Line of Code with 10 PRINT
by Turing_Machine on Sunday November 12, 2017 @06:55PM
(#15683238)
You can get pretty close to that with JavaScript, especially with all the CodePen-like sites out there -- but even without those, the JavaScript console is pretty similar to the old BASIC prompt in terms of immediacy and ubiquity.
JavaScript also has this in common with BASIC: the language bigots hate it. :-)
Re:A Universe in One Line of Code with 10 PRINT
by wruza on Monday November 13, 2017 @03:58AM
(#15685216)
I like BASIC, C, D, Objective C, Perl, Lua, 8080 and x86 Assembly (no code for around 15 years, but still) and probably few others catched my eye, like Io, LISP, Haskell, but I had no time to master these, only done a bunch of snippets discovering their power. But I hate js (and php) with all of my soul’s strings, no matter how much time I spent learning or fixing it. How about that single data point.
Otoh, I bet most js bigots only know one language very good, guess what it’s name is.
Re:A Universe in One Line of Code with 10 PRINT
by Jare on Monday November 13, 2017 @03:34PM
(#15689968)
Indeed! I defended JS for this exact purpose after the 2D canvas became truly ubiquitous. Still a minor amount of boilerplate but you can be drawing stuff in no time. With an integrated editor it would be perfect!
Re:A Universe in One Line of Code with 10 PRINT
by Momquist on Sunday November 12, 2017 @10:43PM
(#15684133)
Python still has Turtle in its standard library, with which you can create direct and simple graphics like you describe.
Re:A Universe in One Line of Code with 10 PRINT
by tomsmeding on Monday November 13, 2017 @07:05AM
(#15685885)
There is also a thing called Logo (http://www.softronix.com/logo.html); that implementation is windows-only and old, but it was a glorious first programming language for me.
There is also a unix version called ucblogo, but when I tried that a while ago on mac, it was terribly slow and didn't have a number of the nice additions that mswlogo had.
Re:A Universe in One Line of Code with 10 PRINT
by tomsmeding on Saturday November 18, 2017 @05:26AM
(#15728486)
For people looking through the archives: FMSLogo is an updated version of MSWLogo, and is linked to from the same page. It runs beautifully under Wine, too, so not being on Windows is no excuse for not trying it out. ;)
Re:A Universe in One Line of Code with 10 PRINT
by qubex on Monday November 13, 2017 @02:31PM
(#15689398)
Fun fact: LOGO is a LISP.
Re:A Universe in One Line of Code with 10 PRINT
by hexane360 on Sunday November 12, 2017 @04:28PM
(#15682718)
This is a niche I think Scratch (https://scratch.mit.edu/) does a pretty good job of filling
Re:A Universe in One Line of Code with 10 PRINT
by jpalomaki on Monday November 13, 2017 @04:00AM
(#15685228)
And if I remember right, on some Spectrum model you even had all the basic commands written on keys (I was once hunting with a friend for the famous "any" key which we had determined had to be pressed in order to get to play Pyjamarama)
Re:A Universe in One Line of Code with 10 PRINT
by foo101 on Sunday November 12, 2017 @10:21PM
(#15684023)
Your code does not work for me. I get syntax error in line 20: https://imgur.com/a/mqI29. What did I do wrong and how can I get it to work?
Re:A Universe in One Line of Code with 10 PRINT
by mrob on Monday November 13, 2017 @04:58AM
(#15685406)
It's for the ZX Spectrum:
https://imgur.com/a/Yb757
There's a Javascript emulator here: http://jsspeccy.zxdemo.org/
128K mode is easier because it lets you type the keywords instead of pressing single key shortcuts. For the punctuation, type:
ctrl-l for =
ctrl-b for *
ctrl-alt-n for ,
ctrl-j for -
I think what we have lost from the old 8-bit computers and their BASIC, was the ability to instantly have something show on the screen, like the classic Sinclair Spectrum spider web:
(or something like that) That stuff got me hooked.