example.com/path/to/article
000 points · username · 0 hours ago
example.com438 points · 131 comments · 4 years ago · hkc
mpyne
seanw444
krylon
I like the UI, too, for being simple but very much functional without getting in my way. And it supports a persistent history across sessions, which I also like.
unanimous
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...
faffernot
clockwork-dev
dan-robertson
SC: 5+8 Enter [4 keys, 1 shift]
Calc: 5 RET 8 + [4 keys, 1 shift]
SC: 5*(113+23) Enter [11 keys, 3 shifts]
Calc: 5 RET 113 RET 23 + * [10 keys, 1 shift]
SC: 7*ans Enter [6 keys, 1 shift]
Calc: 7 * [2 keys, 1 shift]
SC: sqrt(1231+41) Enter [14 keys, 3 shift]
Calc: 1231 RET 41 + Q [9 keys, 1 shift]
Maybe it’s more efficient than clicking buttons with a mouse but it doesn’t feel more efficient than the calculator I already use, nor does it seem to be better integrated with the software I use. It doesn’t even seem more efficient than the scientific calculator I used in high school.I think I’m put off more by the lack of graphing and (as far as I could tell skimming their site) array/vector/matrix functions, which are the main things I do with Calc.
sillysaurusx
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. </rallying cry>
EDIT: formatting. TIL you can backslash-escape asterisks on HN.
xilni
I saw an issues thread from 2017 (https://bitbucket.org/heldercorreia/speedcrunch/issues/702/s...) that discussed porting to iOS but nothing since.
What are the GPL implications of porting this to Swift even with putting all source on a public GitHub/BitBucket repo because of the App Store?
db65edfc7996
I was recently doing some (silly) combinatorical math, where I wanted to know factorial(400_000) and SpeedCrunch happily produced the answer immediately. Incredibly satisfied.
cyounkins
QuadrupleA
B-Con
NathanielK
morpheuskafka
yboris
widea
jicka
I often have to do many simple calculations (adding numbers from a pdf,...) and having full history and being able to keep speedcrunch over the other windows is perfect. I also increased font-size dramatically to improve readability on big screens.
Sure, there are more advanced tools. But the simplicity and lightness on ressources is what makes it my go-to calculator.
phoboslab
if [ $(xdotool search --name "calc repl") ]; then
xdotool search --name "calc repl" windowraise
else
xfce4-terminal \
--title="calc repl" \
--color-bg=#123 \
--color-text=#fec \
--hide-scrollbar \
--font="Deja Vu Sans Mono 14px" \
--geometry 40x14 \
--execute node -i -e "$JSREPL"
fi
($JSREPL just contains some extra functions that I want in a calculator)I can easily go back to previous calculations and results, define vars, run loops whatevs. Having it on a key combo and launching the terminal with a distinct text/bg color really makes a difference. It also launches faster than most other calculators I tried. For my purposes (non-scientific, mostly programming stuff), it's been great.
themodelplumber
(Edit: The HTML export feature even preserves the color theme. It's a web publishing tool now! Hahaha)
Aaronmacaron
middleclick
Thank you to the authors for working on it. Time to send them a donation!
Semiapies
(I'd report a bug, but a calculator program making itself unusable in less than a minute with steps I can't precisely recreate kinda kills my enthusiasm for that process.)
skyfaller
It's written in Rust ;-)
zokier
gravypod
[0] - https://appcenter.elementary.io/com.github.parnold-x.nasc/
[deleted]
msravi
(3(7^204+7^202+7^200)+7(3^204+3^200)-210) mod 10
in the calculator that comes with linux and get the right result (which is 7), but speedcrunch overflows and outputs 0. I've set the result format to fixed decimal and precision to 50 digits, but that doesn't seem to make a difference.
Edit: Just tried it with insect, which also gets it wrong.
ajot
What I like the most is the seamless integration of different notation styles, mainly using commas and points as decimal separators.
driminicus
smusamashah
Centigonal
granddave
greggman3
medv
haunter
gautamcgoel
bitigchi
parentheses
TomGullen
unemphysbro
:)
[deleted]
[deleted]
His blog post elicited several rapid responses from developers taking his PyQt-based mockup and turning it into a 'real' application ([2], [3]). One of those was Ariya Hidayat's "SpeedCrunch", which has been actively maintained up to the present day. I can't find Ariya's original 2004 announcement, I think the original link was http://ariya.pandu.org/blog/archives/2004/10/calculator-feve... but that's dead now.
But it's really neat to see how this all started from a day or two of hacking on a solution to a simple problem.
[1] https://ralsina.me/stories/33.html [2] https://ralsina.me/weblog/posts/P245.html [3] https://ralsina.me/weblog/posts/P247.html