405 points · by tosh · 7y ago · 181 comments
The power of old tools :)
These still could be done in Vim but it’s more than just a unixy calculator or text-editor spreadsheet.
$ . calc.sh
$ * 4 5
20
$ / 21 3
7
It’s a WIP. I’ll probably add floating point and a stack.
Which will mean moving away from `dc` to awk/python/something else running in the background, using sh co-processes.I have written to Numi author about this a few months ago and he replied he wants to add this feature to Numi but I haven’t heard any news about that since. I am not following Numi closely, though.
Sad, because its elegant as fuck.
I almost never buy an app from the Mac App Store when it's also available directly. I'd rather that the developer gets to keep the extra 30%.
Free apps I typically get from the store when available for the convenience of the updating system (though sparkle has made non-app store app updating pretty painless).
I don't find v3 a compelling upgrade for me but will upgrade anyway once syncing to iOS works again (important feature for me) just to support the dev.
How does Soulver get the data for the USD conversion?
There's Alfred workflows for both Soulver and Numi. Soulver even has a CLI version.
However, it doesn't sync with Soulver for iOS yet. I suspect Soulver 3 will probably come to the Mac App Store once the iOS app is updated to use the new file format.
I still can't find anything that beats my HP 50g (either physical or running in one of the emulators) for just about any kind of computation involving several pieces of data. For more data, a spreadsheet is really hard to beat.
You’re not wrong on the syntax stuff, but as long as the math operations are there, it’ll do what you want. The special stuff for currency or other conversions isn’t very hard to get the hang of once you start using an app.
Really, the frustrating thing is when I’m on a machine that’s not mine and I hit my Soulver system-wide shortcut and can’t open up my scratchpad. But that’s my problem.
$425 * 3 in £
Once you've got "in £" you know it's available anywhere. I use it a lot for unit conversion too:
3 inches in mm
The other thing I use a lot is referencing other lines. So this will output £4:
£10 + 2
line1 / 3
For me, the go-to for multi-line calculations is Octave. At that point I can annotate to my hearts desire, plus I've always preferred Octave plotting over spreadsheet functions.
The ability to share your calculations nearly universally, though, is the major advantage of spreadsheets.
Eg "what % of 198 is 22" You can still calculate this the normal way, but this syntax sugar is natural enough and easier to remember.
Or the other big example somebody already posted is currency conversion. "1 USD to GBP"
Even if you don't use any of that, the ability to have a readable notebook, variables, and other features make it far better than a traditional calculator. I could never go back.
edit: when I'm "deep in it" this is similar to what I use Excel/GDocs for, but they're heavier than I'd like for more casual use. I spend half the time I'm using a spreadsheet in Google looking at documentation for Excel functions.
A little tangential, but also really cool how elementary os is really coming to be the MacOS alternative it has set out to be.
(edit: and apparently I'm not the only person with this thought! Good work :D)
This is the kind of web-app that has a legitimate use for off-line first service workers and localStorage to save the previous session
There was a huge amount of time between Soulver 2 and 3 so I gladly paid for version 3 (even though it doesn’t sync with iOS which isn’t a big deal, and some features haven’t made their way over so I still keep 2 installed).
There might be decent alternatives but at this point, I’m so used to Soulver I don’t want anything else. Plus, the new Alfred workflow is really good.
In another project, I wrote a preprocessor for TeX- somewhat like Markdown, so that you can make TeX documents with an easier syntax. One of its features is a built-in calculator/spreadsheet. The idea is that \{1+2+3} is expanded with 6. You can also assign and reference variables \{a=3}. If these appear in a table, you can reference other cells: \{RRD+7} "Get first expression from cell two to the Right Right one Down and add 7 to it".
https://github.com/jhallen/joes-sandbox/tree/master/doc/nice...
Anyway, I'd like this capability in the editor, will add it someday..
> $22 for lunch + 10% sales tax
Displays $32.00 instead of $24.20 or something. Other issues: it does not support units on the right nor euros (€).
Nice anyway :-)
- Soulver, according to the screenshots (and the goal of this project seems to match Soulver's behavior),
- the calculator on my phone,
- KRunner, the launcher in KDE, and KCalc, its calculator
- gcalc, the Gnome calculator
- qalc, that shows "25 * (110 * percent) = 27,5".
- The TI-106 solar calculator that I happen to have [1].
Thinking about it, we are probably talking about some kind of "+ %" operator, where x + y % = x + x × y / 100.
Interestingly, 10% = 0 for the TI-106 (but 25*10% = 2.5). % alone does not seem to mean anything for it.
This little calculator will probably outlive me.
https://www.danielsays.com/ssg-win1x2x3xsw-vc10.html http://www.win3x.org/win3board/ext/win3x/download.php?id=112...
It's not my automatic go-to calculator (that's either dc or RPN pcalc). But if I want to do any slightly complicated calculation but don't need the overhead of Excel/Numbers or Mathmatica (or am on my phone!) it's really nice to lay out some variables (cost/m2, length width, blah blah) and be able to tweak them. And I can fiddle on my computer and then see the model on my phone where it's also easy to edit.
Not a tool for everyone, but surprisingly good as both a programmer and general purpose calculator.
Putting the answers inline rather than over in a separate column (ala Soulver and Numi) makes more sense to me.
The UX is the plus here - I am aware that there have been several other apps that have offered a polished UX since then, but the convenience and my learned affinity to Soulver makes me keep it.
10m * 1000kg * 9.8m/s^2 in kWh
and see a correct result
Web version: https://insect.sh/
Your calculation: https://insect.sh/?q=10m%20*%201000kg%20*%209.8m%2Fs%5E2%20t...
I didn’t continue working on it after the class finished, though – I lost all interest after I realized that the Frink programming language, despite being free, is not open source.
Qalculate! works better for those things: it understands it like you wrote (you have to use "to" instead of "in" for unit conversions though).
Back in the early days of the Newton, there was an app that let you manipulate algebraic expressions by dragging and dropping individual elements of the expression. Think factoring out a common factor represented by the expression sprouting parentheses with the factor out front. There was a later effort called MathDrag'n but that seemed to run out of steam.
Does anyone know if a similar thing exists and is maintained now?
This type of app seems like it would be useful, and I know I'm basically asking for free candy, but I don't find 30 day trials that useful. I'll toy around with it now, but 35 days later think about it for serious work and ever really get to evaluate it. Or, I'll drop $30 on it now and never think about it again.
With tables I don't see the formulas at glance. Only alternative would be a real programming language but than something like time is a pain again.
There are a bunch of animated gifs that show off how Soulver works - great! But just as they finish the exercise and show the result, they immediately blank and restart. I don't get any time to figure out what just happened. It's incredibly frustrating.
Put a 5s pause at the "complete" frame.
Apple’s marketing pages do this type of fade-in better – the fade-in happens quickly as soon as the page is scrolled to a certain point, and after that, the faded-in item doesn’t fade out again unless you refresh the page.
I often open up "scratchpad" text documents. I Paste some text, edit it, Select All, then Cut. I press CMD-W to close the window. Because the document is blank, I'm not prompted to save the unsaved File.
If I try to do the same thing with Soulver, when I close the (blank) window the app pops up a modal dialog asking me where I want to save the (blank, never-saved, scratchpad-only) File. So annoying.
It seriously prevents me from quickly opening up or using Soulver just because I don't want to deal with clicking through that modal once I'm done. I'll just use a Text document instead or put the math equation into the Chrome omnibox.
So when you want to close a window without saving:
1. Hit ⌘W
2. Wait a moment for the dialog to open
3. Hit ⌘⌫
I have the setting left on because I am also annoyed by this, and I rarely need to save my Soulver documents.
Very often, you enter values manually into a flow sheet around that status of a patient (ie vitals, PQRST for pain, assessments) but you may also enter a supporting note around the circumstances of your charting.
It would be beyond helpful to have an interpreter to pull in data within that note to place it within the appropriate data fields. It would eliminate a significant portion of duplicate charting.
I am putting it out there, because this is beyond me to solve this issue from a technical standpoint.
Soulver looks like a tiny step in that direction/way of thinking.
The enemy of good may be perfect, but it seems that the closer to (without being) perfect the interpreter, the worse the outcome for the patient.
My solution for Windows has been the NppCalc plugin for Notepad++. It is not quite as advanced, but does have a lot of functions that the alternatives don't (like some common encryption algorithms which came in useful recently)
Too bad it's mac only. And so is Numi.
Any linux (preferred) or windows alternatives?
It’s desktop cross platform
build your own reactive editor or content with data streams using TagleJS: http://worrydream.com/Tangle/ and it is open source. :)
Not just calculator.
more than nostalgic website but actively maintained: https://www.skytopia.com/software/opalcalc/
calcing with time is a bit jumpy at times, but other than that I love it for quick napkin calcing stuff
costs 15 bucks
But, how is the functionality provided better than tons of free spreadsheet apps out there?
I can do a decent amount of this in Notebooks or the terminal with Wolframscript and I'm not limited to simple things either.
I'm sure this tool is better if you just need something really simple as it is much cheaper and certainly lighter weight than Mathematica.
"There are two hard problems in programming: naming, cache maintenance, and off-by-one errors."
Not just in programming.
Yes, you could. Or you could use something that's polished and works, with a clean UI and years of real world testing.
It doesn't work on most computers, of course.
Dropbox has been touted as Y Combinator's most successful investment to date.
Of course “emasc can do anything” is ages old argument, but should it?
I don't care if it's literally Emacs, but I want all my data in one place. Half my programming career was spent taking one dumb format and converting it into another dumb format because the systems were incompatible, and for no good reason.
People complain about needing "dongles" (i.e., adapters) with Apple's new laptops, but there's a simple and obvious fix (buy one), and we can see the endgame (everything USB-C) where even that won't be required.
Programmers spend all day building custom software "dongles", with no end in sight. Why aren't they angry about that?
As a programmer, the REPL and/or notebook interfaces for my favorite languages provide what Soulver offers already, so it isn't as valuable to me. To a non-programmer, Soulver seems like a very pleasant, user-friendly tool.