Live data from Hacker News

Show HN: Calc – A fast and intuitive command-line calculator written in Go

github.com

21–30 of 34 posts

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#21
post #14

Earlier quoted context omitted.

I've been using wcalc personally, haven't had many reasons to use something else.

wcalc is pretty much the best terminal-mode calculator anywhere. It handles significant digits very well and knows about a bunch of mathematical constants in unicode form! -> √7×2÷π−ε0×σ+α+γ+R∞×Mτ-Φ0 = 2.26885 http://w-calc.sourceforge.net/download.php

and it's apt-gettable from wheezy upwards!

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#22
post #2

An alternative that isn't discussed in the Why not use ...? section is calc: http://www.isthe.com/chongo/tech/comp/calc It is very powerful, has history, shows previous calculations, and it's pretty darn quick too. Of course, there are plenty more calculators, powerful too. I only mention calc because it bothers me that the name of this new project collides with it, without really providing anything useful beyond hav…

calc package is called apcalc on dbian/ubuntu.

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#23
post #2

An alternative that isn't discussed in the Why not use ...? section is calc: http://www.isthe.com/chongo/tech/comp/calc It is very powerful, has history, shows previous calculations, and it's pretty darn quick too. Of course, there are plenty more calculators, powerful too. I only mention calc because it bothers me that the name of this new project collides with it, without really providing anything useful beyond hav…

This developer could have at least chosen a different name.

Two programs, same funcionality, same name. Haven't we learnt anything?

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#24
post #2

An alternative that isn't discussed in the Why not use ...? section is calc: http://www.isthe.com/chongo/tech/comp/calc It is very powerful, has history, shows previous calculations, and it's pretty darn quick too. Of course, there are plenty more calculators, powerful too. I only mention calc because it bothers me that the name of this new project collides with it, without really providing anything useful beyond hav…

This developer could have at least chosen a different name. Two programs, same funcionality, same name. Haven't we learnt anything ?

As I mentioned below, I chose "calc.go", but that didn't work well with the `go get` command, so I had to get rid of the ".go"

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#26
post #10
post #2

An alternative that isn't discussed in the Why not use ...? section is calc: http://www.isthe.com/chongo/tech/comp/calc It is very powerful, has history, shows previous calculations, and it's pretty darn quick too. Of course, there are plenty more calculators, powerful too. I only mention calc because it bothers me that the name of this new project collides with it, without really providing anything useful beyond hav…

Upvoted for calc. I use it for all the small calculation, as it most often behaves slightly better than bc $ echo "1/2" | bc 0 $ echo "1/2" | bc -l .50000000000000000000 $ echo "scale=1; 1/2" | bc .5 $ echo "1/2" | calc -p 0.5 $ echo "+1+1+1+1" | bc -l (standard_in) 1: syntax error $ echo "+1+1+1+1" | calc -p 4 $ echo "sqrt(-1)" | bc -l Runtime error (func=(main), adr=4): Square root of a negative number $ echo "sqrt…

Slightly shorter, and it's nice to have the expression at the end of the line:

    $ bc -l 

Re: Show HN: Calc – A fast and intuitive command-line calculator written in Go

#28
post #4

I stopped using infix calculators a while back in favor of RPN/stack calculators (dc) because I get quite tired of parens. Is the program structured such that this change would be simple? Otherwise I feel like this is simply yet another CLI calculator.

Incidentally I wrote a simple CLI RPN calc in half an hour recently: https://github.com/alexander-b/clac

I was planning on adding a REPL-mode to it today for fun, and then someone linked me this post, saying "this could have been clac!", hehe.

Post reply on HN