Live data from Hacker News

SpeedCrunch

speedcrunch.org

31–40 of 138 posts

Re: SpeedCrunch

#31
post #22

One thing I do not like about Speedcrunch: there is a slight delay between pressing enter and showing the result, just enough to be noticed.

I just installed it to try it out and I love the idea but this is the worst part about it. Even with no history as another said, it still has a delay.

Looks like my delay happens when converting between units. It's almost like it prompts me to confirm when I press Enter so I end up having to hit it twice. Other than this it is really great.

Re: SpeedCrunch

#34
A small plug for my own script: I'm proud to present the most useful, least-work script I've ever written: `math`

https://github.com/shawwn/scrap/blob/master/math

  #!/bin/sh

  scale=4 # results will print to the 4th decimal
  echo "scale=$scale; $@" | bc -l
It just yeets all its arguments into bc -l, so you can run math 1+2-3 or math '(1024 - 7)*10' or whatever else you want. I even use it in other shell scripts, since bash's math facilities are rather limited and inconsistent across sh vs bash.

  :~$ echo $(((3+4)*5))
  35
  :~$ echo $(((3+4)*5/1024))
  0
  :~$ math '((3+4)*5/1024)'
  .0341
It has all the precision you want, as long as you only want results up to the 4th decimal.

It's surprising how much I use it. I find myself absentmindedly typing out math 220*1024*1024 while talking to people in meetings (what, you don't have meetings where it's crucial to know how quickly 220MB can be transferred?) and like thousands of other situations.

Meanwhile, funny story: I bought an iPad recently, and discovered that it's a delightful way to pass the time while shopping. You can stick it in your cart and pull up 3blue1brown and zone out while getting your pineapples. So I was doing that, and I went to reach for the calculator app to figure something out, and discovered that there is no calculator on iPads.

The punchline is that if you want a calculator on an iPad, it'll either cost you $5 or your soul: https://i.imgur.com/CJsDtB0.jpg

Someone please make SpeedCrunch, but MsPaint. I miss MsPaint every day. There's an OS X app called Paintbrush which is similar, but unfortunately quite buggy and somehow even more limited in certain respects. Being able to just paste a screenshot and draw a red circle within 5 seconds is something that I wish we could do in 2022. Nay, I say that it's our right as programmers to be able to do that.

EDIT: formatting. TIL you can backslash-escape asterisks on HN.

Re: SpeedCrunch

#35
SpeedCrunch looks very promising, and I've used it a lot in the past. I'm sad to see that they still haven't released the order of operations bug fix [0] they made in 2017.

SpeedCrunch does some operations in an order most people wouldn't expect. For example, SpeedCrunch says 1/2(-9.8) = -0.05102040816326530612

[0] - https://bitbucket.org/heldercorreia/speedcrunch/commits/ac49...

Re: SpeedCrunch

#38
I used to use this back when I mained Windows. Ever since moving primarily to Linux, and getting familiar with Emacs, Calc mode simply beats every calculator I've ever used in total functionality. However, there are certain cases where I also like to use https://insect.sh if lots of units are involved.

Re: SpeedCrunch

#39

The Python repl / console also makes a great desk calculator (for those who haven't thought to use it that way) .

And with PYTHONSTARTUP you can get creative.

I only use it to display numbers as hex and binary [1] but I'm sure it can be useful in many other ways.

[1]: https://github.com/L-P/dotfiles/blob/39ac8d5849a593ef1633ed8...

Re: SpeedCrunch

#40

SpeedCrunch looks very promising, and I've used it a lot in the past. I'm sad to see that they still haven't released the order of operations bug fix [0] they made in 2017. SpeedCrunch does some operations in an order most people wouldn't expect. For example, SpeedCrunch says 1/2(-9.8) = -0.05102040816326530612 [0] - https://bitbucket.org/heldercorreia/speedcrunch/commits/ac49...

Is that not correct? I guess I should touch on my order of operations. I thought distributing was part of the parenthesis step, that came before MDAS.
Post reply on HN