HackerTrans
TopNewTrendsCommentsPastAskShowJobs

etfb

no profile record

comments

etfb
·12 年前·discuss
I think it must have been. If he was aware of it at all, he would have associated it with the Reverse Polish Notation of his HP calculator, and probably knew that, while they were certainly powerful, RPN calcs were never going to make it to the mainstream.

And actually implementing a basic interpreter isn't all that complex. The loop is simple:

Read a line.

If the line starts with an integer, you're adding a line to your program; otherwise you need to interpret then execute.

Read the first word. In some BASICs, this is the first string of characters that matches one of the keywords; in others, it's all the alphanumerics up to a non-alphanumeric.

(In effect) dispatch to the appropriate interpretation routine based on which keyword you just read in. For example, PRINT goes to the argument handler for PRINT, LET goes to the argument handler for LET, and so on.

Then you just have a bunch of routines (read one variable name, read an expression and interpret it as a number, read a destination line number, etc) and different keywords use them in different ways.

It's pretty simple, really. Way easier than writing a full LALR parser.
etfb
·12 年前·discuss
Woz is, for me, the ISO standard geek, the distillation of all that I aspire to. Somewhere in Paris is a vault, and in that vault is a platinum-iridium Steve Wozniak, against which all of us are judged and found wanting.
etfb
·14 年前·discuss
If I'd answered this a couple of months ago, I'd have had to say 20+ years. But it was late January or early February 1982 when my parents bought a Commodore CBM-8032 "business machine" with an 8050 dual 5¼" disk drive and a daisy wheel printer, and I began learning how to be a total geek. They swore the novelty would wear off eventually; maybe give it another decade?