Calc

Dev tools

command-line calculator

SHOW HN2015

94points
33comments
#263of 2,565 in 2015
Top 11%of 2015 by points

How HN took it

RoastedHalf or more of the comments are critical

2 positive, 0 neutral or asking, 0 mixed, 5 critical, out of 7 comments about the project. Thread score -0.29.

Idea: 0 for, 4 againstPerformance: 1 for, 1 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple and intuitive to use

    From 1 comment
    • Other comments are reasonable, but fantastic work alfredxing, played around with it just now and loved how simple and intuitive it was. The only feature I really miss here is…
      soroushjp on HN
  • Better than bc for small calculations

    From 1 comment
    • 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 $…
      brute on HN

Objections

  • Name collides with existing calc calculator

    From 2 comments
    • 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…
      clarry on HN
    • This developer could have at least chosen a different name. Two programs, same funcionality, same name. Haven't we learnt anything?
      hobarrera on HN
  • Lacks RPN input, which is tiring with parentheses

    From 1 comment
    • 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…
      qguv on HN
  • Too many similar tools already exist

    From 2 comments
    • 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…
      qguv on HN
    • Every small tool deserves special launching site and promoting if it's "written in go" or some other hyped language.
      EugeneOZ on HN

Requests

  • Support previous answer via an ans constant

    From 2 comments
    • Other comments are reasonable, but fantastic work alfredxing, played around with it just now and loved how simple and intuitive it was. The only feature I really miss here is…
      soroushjp on HN
    • Thanks, and great suggestion! Would you mind opening an issue on GitHub for it? I'll probably get around to implementing it soon.
      alfredxing on HN
  • Add RPN mode

    From 2 comments
    • 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…
      qguv on HN
    • The algorithm I use combines shunting-yard and postfix (RPN) evaluation, but I guess it wouldn't be too hard to modify the source to just do the RPN part. If you want to try…
      alfredxing on HN

Questions

  • Is there an RPN mode or a way to modify it to RPN

    From 1 comment
    • 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…
      qguv on HN

Alternatives named

  • calc (chongo) arbitrary precision calculator

    From 1 comment
    • 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…
      clarry on HN
  • wcalc

    From 2 comments
    • I've been using wcalc personally, haven't had many reasons to use something else.
      mackal on HN
    • 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! ->…
      donpdonp on HN
  • Qalculate

    From 1 comment
    • Qalculate has both a GUI and a command-line `qalc` util that does what `calc` seems to do and much more: http://qalculate.sourceforge.net/
      EmanueleAina on HN
  • dc and bc

    From 2 comments
    • The algorithm I use combines shunting-yard and postfix (RPN) evaluation, but I guess it wouldn't be too hard to modify the source to just do the RPN part. If you want to try…
      alfredxing on HN
    • 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 $…
      brute on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/9058872)