Better HN
topnewbestaskshowjobs
Log inSign up

vcbdcgdg

5 karma · joined Aug 6, 2019 (7y ago) · 5 submissions

Submissions

comment 7y ago · link · parent

If you watch MIT's CS 101 class on their OpenCourseWare (the one filmed in the 80s) you'll see Sussman and Abelson teaching scheme to a class full of electrical engineers from HP.

I think these are guys are the guys who designed RPL

comment 7y ago · link · parent

"I miss RPN on my calculator."

I'm about to bite the bullet and buy a 48GX to replace my G which has annoying buttons (My original G+ died when I got caught walking home in the rain).

$200 for a used 20 year old calculator.

" It makes so much sense."

Yup.

comment 7y ago · link · parent

I have a question, if you don't mind:

I have a stopwatch function in my HP48 that I don't want using a local variable (avoid polluting my precious menu), or having to keep it in a stack.

Instead I want the value of the last time I ran the program to be stored within the program itself. I believe this is called a closure in CS.

Right now I can have << value -> X 'expression' EVAL rest of the program >>

And it'll work just fine, but how could I get the value at the very top modified?

(I know my cell phone has a stopwatch. We're not allowed phones at work)

comment 7y ago · link · parent

That's actually another difference, although I think its small:

Scheme allows multiple arguments, RPL cannot. I.e.

(+ 1 2 3 ) evals to 6,

1 2 3 + evals to 1 5

RPL cant add your entire stack because presumably you have stuff in your stack you want to keep and not add.

But, if we put that aside, if RPL allowed:

[ 1, 4, 5, 6, [4 ,2 1, 6]]

where [] represent stacks, i.e. a stack can be an object in the stack, then the RPL would be very close to lisp.

Which is very close to what this min does.

comment 7y ago · link · parent

Just in the last few days I've been playing around with my HP48 and wondering how close to a reverse scheme with no brackets RPL is.

I figured the only real difference is that scheme has list of lists, but you can't have a stack of stacks with RPL.

Really cool.