Hacker News new | past | comments | ask | show | jobs | submit login

It's still one of the quickest ways to do math on the command line.

dc -e '3 k 57 47 / p'

Or what have you.

It's pretty useful. I recommend spending an hour or two with it. You'll use it.

One of the nice things about rpn is if you forget something or want to modify things, you'll quickly find out that it's more convenient.

A little syntax weirdness apparently goes a long way in making things ridiculously easier to manipulate.

You can write programs with it btw. Hobby away: https://rosettacode.org/wiki/Category:Dc

Things get delightfully cryptic: https://rosettacode.org/wiki/Generate_lower_case_ASCII_alpha...

Go through a Forth tutorial to get the hang of RPN style programming if that's truly gibberish to you. It won't make it easy, but it will make it readable




Haven't used a language with RPN as default, but Forth is somewhere on my endless "to look at at some point" list : )




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: