Live data from Hacker News

SpeedCrunch

speedcrunch.org

91–100 of 138 posts

Re: SpeedCrunch

#91

Earlier quoted context omitted.

Emacs Calc (not unlike much of the rest of Emacs) is a little ... special. By default, it calculates 4/2*2 as 1, because multiplication has a higher precedence than division. https://orgmode.org/manual/Formula-syntax-for-Calc.html

> because multiplication has a higher precedence than division Wow. That's actually quite bad.

[deleted]

Re: SpeedCrunch

#92

After trying a lot of different calculators, I just settled on this little shell script to launch/raise a nodejs repl with FN+Backpspace: 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" f…

You need to be very careful, as you may get wrong results due to rounding and floating point errors.

  $ node -i
  > 2**54+2
  18014398509481984
  > 3-3.01
  -0.009999999999999787
Other calculators such as calc [1] don't have these issues

1. https://github.com/lcn2/calc

Re: SpeedCrunch

#93
post #25

Earlier quoted context omitted.

That solved it, thanks! :-) Now I have nothing but good words about Speedcrunch!

Except maybe that long histories create noticeable lag, that is.

Looking at its inner working seems it's uses SQLite as storing. While a few hundred entries in any SQLite DB should be a breeze to parse and show under a second, maybe the person(s) involved in this project are not that DB proficient and made some rookie mistakes. Maybe they'll notice this and improve it's history speed as well, shouldn't be a problem for any SQL developer with a bit of experience in hands.

Re: SpeedCrunch

#94

Am I a weirdo for using the console (F12) in my browser for calculating stuff like tips, rent/utilities for the month, and other such things? Lol.

I love the JS console for this sort of thing. It has autocomplete for math functions, lists and variables. And I know (and have muscle memory for) the JS math library already.

The best part is its available anywhere, on any computer, in any web browser without installing anything.

Re: SpeedCrunch

#95
post #80

Are there anything similar to iOS? Currently using Wolfram Alpha

Nothing beats WA, keep using it. SpeedCrunch is only better when you don't have an internet connection. WA is my default to go calculator, especially after learning its language it's so much powerful than anything

Re: SpeedCrunch

#96
This would be amazing on iOS.

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?

Re: SpeedCrunch

#98
post #71
post #19

Earlier quoted context omitted.

No, I always use gdb :) It also has a persistent history, variables, functions, base conversion, etc. I guess it doesn't have unit conversion or a math library, but it's a great programmers calculator.

Hah, I used gdb print expression for a calculator for decades (especially p/x for hex conversions.) I finally switched to "just fire up a python repl instead" around 2010...

Python just makes it too easy. from math import * and you have everything you need.

Re: SpeedCrunch

#99

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.

qalculate is by far the best calculator program I've ever used.

Re: SpeedCrunch

#100
post #70

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.

This may be slightly off topic, but what are some other small, lesser known websites like this one that people use regularly? For me, it'd be https://rubular.com and https://crontab.guru . I've used those 2 sites pretty regularly across my entire career.

Well, I run Insect locally. The page is just for demo purposes. You just install it from NPM.
Post reply on HN