Live data from Hacker News

Julia as a CLI Calculator

krasjet.com

131–134 of 134 posts

Re: Julia as a CLI Calculator

#132
post #118

One thing I miss is RPN-string input. Unlike normal RPN where you load the "stack," for RPN string you can enter > 2 3 + 4 * as one line, press enter, and get 20. This lets you take advantage of the no-parens nature of RPN while viewing the expression on one line rather than flipping through the stack. Only Windows PowerToy scientific calculator had this mode, that I know of.

this sounds like "dc" except with dc you'd need to add a "p" at the end to print the top of the stack

I had never even heard of dc. This is a lifesaver.

Re: Julia as a CLI Calculator

#133
post #37

Earlier quoted context omitted.

Having built several OO codebases with 1000+ classes I really really really second this view.

OOP has become an antipattern (ok, partially kidding but...)

There are a few scenarios in which I miss simple inheritance when I write Julia code, they are few and far between (in real world problems). What fascinates me is how virtually the whole of the programming world decided that inheritance was the way to go and pursued it for 20 years - on the basis of what now looks like zero evidence.

Re: Julia as a CLI Calculator

#134
post #133

Earlier quoted context omitted.

OOP has become an antipattern (ok, partially kidding but...)

There are a few scenarios in which I miss simple inheritance when I write Julia code, they are few and far between (in real world problems). What fascinates me is how virtually the whole of the programming world decided that inheritance was the way to go and pursued it for 20 years - on the basis of what now looks like zero evidence.

Yeah, absolutely
Post reply on HN