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.
SpeedCrunch
31–40 of 138 posts
Re: SpeedCrunch
#32Also in this space is insect: https://github.com/sharkdp/insect and https://www.insect.sh/
Re: SpeedCrunch
#33Re: SpeedCrunch
#34https://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
#35SpeedCrunch 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
#36Re: SpeedCrunch
#37Re: SpeedCrunch
#38Re: SpeedCrunch
#39The Python repl / console also makes a great desk calculator (for those who haven't thought to use it that way) .
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
#40SpeedCrunch 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...