News for hackers. Stuff that matters.
Re:A Python implementation of formal systems from the book “... by ehudla on Thursday March 30, 2017 @12:00PM (#13996533)
My implementation of M-I-U, more than 30 years ago, as a kid, in Turbo Pascal.

https://github.com/ehud/MIU

Re:A Python implementation of formal systems from the book “... by jaytaylor on Thursday March 30, 2017 @12:07PM (#13996587)
That's really cool and impressive that you saved it for so long! Clean code, too :)
Re:A Python implementation of formal systems from the book “... by ehudla on Thursday March 30, 2017 @12:08PM (#13996599)
Thanks. It is a miracle something survived on those floppies, let alone computer deaths... The directory they are under is called "Y2K Backup\MYFILES\Ancient Pascal Disk 3"...
Re:A Python implementation of formal systems from the book “... by hultner on Friday March 31, 2017 @10:18AM (#14004012)
Sometimes I wish I would've saved code from my younger days so I could go back and hack on them again, to bad github didn't exist back then.
Re:A Python implementation of formal systems from the book “... by ac0kg on Sunday April 02, 2017 @05:47PM (#14019219)
Cool, compiles and runs in Turbo 7 under DOSBox.

http://imgur.com/a/V7BAD

Re:A Python implementation of formal systems from the book “... by ehudla on Thursday March 30, 2017 @02:11PM (#13997586)
I was asked how to install Pascal now, but I have no idea. I suspect the code relies on DOS and Turbo Pascal too much to run now without jumping through some hoops.
Re:A Python implementation of formal systems from the book “... by pjmlp on Thursday March 30, 2017 @02:55PM (#13997945)
I had a quick look through it, you might be able to run it with FreePascal.

http://www.freepascal.org/

Re:A Python implementation of formal systems from the book “... by ehudla on Thursday March 30, 2017 @03:03PM (#13997991)
Thanks!
Re:A Python implementation of formal systems from the book “... by mixmastamyk on Thursday March 30, 2017 @04:16PM (#13998530)
Didn't the original PC have lowercase? I thought I programmed TP in mixed-case, but can't remember.
Re:A Python implementation of formal systems from the book “... by pjmlp on Friday March 31, 2017 @02:43AM (#14001645)
Pascal wasn't case sensitive, so it was mostly a matter of style.

On Modula-2 and Oberon languages and their descendants keywords are uppercase and the languages are case sensitive.

But you could anyway write in lowercase and let the editor format the code for you, no need for banging the shift key all the time. :)

Actually I kind of like having keywords as uppercase, it means on a poor man's teletype or modern black-and-white printer without formatting, it is easier to spot the keywords versus the rest of code.

Re:A Python implementation of formal systems from the book “... by defined on Thursday March 30, 2017 @07:04PM (#13999699)
I definitely programmed TP 1.0 in mixed case on a TRS-80 Model II running CP/M.
Re:A Python implementation of formal systems from the book “... by ehudla on Friday March 31, 2017 @01:37AM (#14001375)
Sure. It was a style thing!