9 ms·
This is the "modern" one with the egregiously bloated UI (including a loading screen!) and telemetry... but funny that it's using the same calculation code. Of
by userbinator 6y ago
This is the "modern" one with the egregiously bloated UI (including a loading screen!) and telemetry... but funny that it's using the same calculation code. Of course they still managed to screw it up somehow: https://news.ycombinator.com/item?id=17670644 https://news.ycombinator.com/item?id=17670644
In one of the old Win2k source leaks the code can be found for the far more efficient "classic" one.
Also, title needs (2019). There are some other HN articles from around that time discussing it: https://news.ycombinator.com/item?id=19321217 https://news.ycombinator.com/item?id=19321217
- tyingq 6y agoOpen sourcing it seems to be working. Several of the open pull requests fix bad math: https://github.com/microsoft/calculator/pulls https://github.com/microsoft/calculator/pulls
- capableweb 6y agoSeems there are 4 pull requests open to fix various math issues, all of them opened in 2019. Most PR merges seems to be about minor changes like translations and version bumps. Not sure we can call it a success just yet. It's very cool it's open source in the first place though, don't get me wrong. And MS doesn't have to merge fixes if they don't want to of course.
- swiley 6y agoA loading screen? You're probably better off just using a REPL at that point.
- zrobotics 6y agoEh, if you launch python in powershell there is still a loading delay, since powershell for some crazy reason takes like 30s to launch on a default win10 installation.
- vetinari 6y agoYou must have something very wrong; neither Windows Powershell nor Powershell 7 takes 30s to launch. But anyway, for a quick calc, is there anything faster than Spotlight (for mac)/Gnome shell (for linux)/Powertoys Run (for windows)? Instead of app name you are going to launch, just punch in your expression.
- majkinetor 6y agoProbably very slow disk (VM?) or Windows Defender ? Or too much modules ?
- jermaustin1 6y agoAll this time I've been launching calculator and I could have just done it in spotlight... Why don't they tell you that after you've launched calculator for the 20th time in an hour.
- Narishma 6y agoNot the person you responded to but I have the same experience with Powershell as them. I just checked again to be sure and it takes 20s to start and become usable on my laptop. CMD.EXE, in comparison, starts instantly.
- Shared404 6y agoI'll be the next to confirm this, and on multiple machines. Maybe 1 in 5 that I try will be a reasonable startup time.
- vetinari 6y agoThat's interesting, it seems quite widespread. I'm getting 1-2s on my machines, both just plain powershell and powershell inside windows terminal. No enterprise crap running though, just Defender.
- 6y ago
- Aerroon 6y agoI've started using the browser console window more and more as a calculator. The only downsides are the a longer syntax (eg can't do 3^2) and that it is a tab in the browser. Variables and other such things are very useful.
- nick_g 6y agoI also often use the browser console for this as well. Just as a quick tip, you can use ** for exponentiation (e.g. 3**2 === 9)
- chaorace 6y agoI just have a hotkey that opens a Node CLI. I know some people who do a similar thing with Python, but I think JS is better at composing quick one-liners.
- PeterisP 6y agoWhy the console window? For basic math things that I sometimes need, I just enter stuff in the search/address bar, and it pops DDG or Google or whatever with the answer; and even your own example of "3^2" works there as-is.
- squarefoot 6y agoTo bad it's the new one. I still recall the Win3.1 (or possibly 3.11 WFW) calc.exe returning 0 when calculating 2.11 - 2.1 . I've always been curious to know what could have triggered that error since it was too big to remain unnoticed for so much time.
- Jtsummers 6y agoAnother comment suggested they switched from floating point to rational number representations after that version. Since 2.11 and 2.1 can't be represented exactly in floating point, it's possible that the issue was the difference was too small (smaller than just .01) and was being rounded off (or was below the limit for number of digits to display).
- jstimpfle 6y agoTry 2.11 - 2.1 here: http://weitz.de/ieee/ http://weitz.de/ieee/ . I don't think they used 32-bit floating point, otherwise there should clearly be a large enough number to display.
- tyingq 6y agoI tried it in the "Archive.org Windows 3.11 in a browser" and it returns "0.01". https://archive.org/details/win3_stock https://archive.org/details/win3_stock
- tyingq 6y agoAh, now confirmed...exists in Windows 3.1, fixed in 3.11 You can try Windows 3.1 here: https://www.pcjs.org/software/pcx86/sys/windows/3.10/ https://www.pcjs.org/software/pcx86/sys/windows/3.10/ And, indeed, 2.11 - 2.1 = 0.00 But, if you then add 1.0, you get 1.01. So the right value is there somewhere.
- yuhong 6y agoIt was fixed in this update for Windows 3.1, which switched away from floating point: https://jeffpar.github.io/kbarchive/kb/124/Q124345/ https://jeffpar.github.io/kbarchive/kb/124/Q124345/
- tyingq 6y agoSomeone did repackage the old Win7/Prior version of calc.exe here: https://win7games.com/#calc https://win7games.com/#calc
- cobaltoxide 6y agoHow many lines of code is it?
- MarkSweep 6y agoThey still have the old calc.exe from Windows 7 in the source tree. You get it if you the LTSC version of Windows. I wish there was a way to get it on regular Windows. They seem to be going the other direction; notepad.exe is now updated from the App Store in the Dev channel.
- molticrystal 6y agoI did a casual browse of the repo and likely keep overlooking the windows 7 build. Hoping you could point out how to build it or where it is hiding.
- glsdfgkjsklfj 6y agoI don't think they meant "this released source tree" but as in "microsoft's source tree" since it is still actively maintained for the LTSC release channel. This is for the new calculator only.
- tediousdemise 6y agoYou can also get the old calc on other versions of Windows if you use Chocolatey: https://chocolatey.org/packages/oldcalc https://chocolatey.org/packages/oldcalc
- signal11 6y agoThis code is MIT licensed, it should be possible for someone to re-create the old UI and still use this calculator's modern calculation engine (with all the bugfixes)?
- ancarda 6y agoA loading screen and telemetry? For a fucking calculator? What happened to software...
- thebruce87m 6y agoAt least it’s not a subscription model for £6.99/month like almost all of the apps you find on the app stores that used to be either free or a one-time £X.
- koolba 6y agoYou get the addition and subtraction for free, but you have to upgrade via in app purchase for multiplication or division. It makes sense because those are advanced features the average user wouldn’t need anyway.
- tomaskafka 6y agoI see that you tried to look for a calculator app for iPad (no, there is still no built-in one).
- gfxgirl 6y agoThat's because you're supposed to pull out your iPhone to use as a calculator.
- egypturnash 6y agoCalcbot does a pretty good job of Not Sucking. I think it's a couple bucks, I don't know, I paid for it ages ago.
- bscphil 6y agoThanks for that link. The forum thread is perhaps the most perfect example of how terrible technology forums tend to be that I've ever seen: if you report a problem, some fanboy with over 10,000(!) posts will immediately show up to tell you it's your fault and not really a problem: > Do you really think it is going to make much difference to the final answer? > Even the algorithms used are probably only accurate to so many significant figures. Beautiful. (Keep in mind the issue referred to here only requires five decimal digits to show up.)
- contextfree 6y agoThe loading screen technically isn't part of the calculator's UI - Windows automatically shows a loading screen for all new (UWP) apps unless they explicitly opt out (and even then the OS will still show the loading screen if the app takes more than a second to load). The purpose of this is to keep the OS feeling responsive, since it allows it to bring up the window immediately (for UWP apps the OS shell is in charge of creating and managing apps' window frames, unlike Win32 where it's the apps' responsibility), rather than leaving the user staring at a screen with nothing happening for several seconds (and maybe thinking it's the OS's fault for being unresponsive)
- thwarted 6y agofor UWP apps the OS shell is in charge of creating and managing apps' window frames, unlike Win32 where it's the apps' responsibility Sounds like the linux ecosystem moved to client-side-decorations, and Windows moved to a window manager model.
- userbinator 6y agoRegardless of whether it is or isn't part of the calculator's UI, the presence of a loading screen for a calculator is a symptom of a deeply-rooted problem.
- keithalewis 6y agoIt's funny what people tell you about themselves if you just listen.
- sellyme 6y ago> The purpose of this is to keep the OS feeling responsive, since it allows it to bring up the window immediately, rather than leaving the user staring at a screen with nothing happening for several seconds Wait, you only get one of those? As of about a month ago on my computer, launching calc.exe takes 5-6 seconds for anything to happen and I'm then greeted 1-2 seconds of a loading screen after the window appears. I've taken to just leaving an IDLE shell open at this point.