Microsoft Open-Sources Windows Calculator (betanews.com) 292
Microsoft said today it has made the source code for its Windows calculator available on GitHub. The company said it hopes to work with contributors to improve the user experience of Windows calculator. In a statement, Dave Grochocki and Howard Wolosky of Microsoft said: Today, we're excited to announce that we are open sourcing Windows Calculator on GitHub under the MIT License. This includes the source code, build system, unit tests, and product roadmap. Our goal is to build an even better user experience in partnership with the community. We are encouraging your fresh perspectives and increased participation to help define the future of Calculator. As developers, if you would like to know how different parts of the Calculator app work, easily integrate Calculator logic or UI into your own applications, or contribute directly to something that ships in Windows, now you can. Calculator will continue to go through all usual testing, compliance, security, quality processes, and Insider flighting, just as we do for our other applications.
Port to Linux (Score:5, Funny)
I hope this program gets ported to Linux now that it's open source.
Re: (Score:3, Funny)
Re: (Score:2)
No need. Linux already has bc(1).
Re: (Score:3, Funny)
I think your sarcasm detector may need the battery changed.
Re:Port to Linux (Score:5, Funny)
I see this as a rather lame attempt to seem Open Source Friendly by Microsoft. It is like saying you are supporting the homeless in your city, but making sure the dumpster for your cafeteria is unlocked.
Re: (Score:2)
There's got to be at least a dozen more capable calculator apps out there for windows and Linux.
If there were, no one would be interested or ask for Microsoft to open source their calculator program. And, as usual, evangelists ignore what makes this source code desirable. People want accuracy and lack of bugs in their programs. Vetted, proven, production code is more valuable for reusability. Seasoned software professionals already know this.
Re: (Score:2)
I don't own any physical calculators and I don't like leaving my physical keyboard to use a separate keyboard somewhere else. There are use cases out there.
Re: (Score:2)
Re: (Score:3, Insightful)
>_ Why did you pay $5 for a calculator on your phone?
Good thing you ask. Not the OP but let me take this very easy answer.
A long time ago there was an excellent distro called Mandriva. The people there they were so good they were not only the best distribution, compatible with everything, but they provided the best infrastructure to allow many explorations for the various needs of a lot of use cases. Well, without further digression, let's say they weren't able to make money.
I now happen to use an excell
Re: (Score:2)
Re: (Score:2)
No need to replace the batteries on my HP48SX or HP48GX when I use m48+ on my phone. Plus it's one less device to haul around.
Now get off my LAN ... :-)
Re: (Score:2)
The emulator on my phone is brillant and a little smaller than the real deal (but does not accept expansion cards).
As for the windows calculator, the one biggest flaw it has is that there is no square root button and that the Inv button does not inverse the square button.
I mean, why a cube root and not a square root?
Because they want it to be better! (Score:4, Insightful)
Sure. This isn't 100% PR.
If there was ever any piece of software that is done and needs no more work, it was this one.
Re: (Score:2)
Indeed, I can't think of what I'd add. The benefit of a widget like calc.exe is that it starts *immediately*. It's a sub second start for sub-minute work. If I need anything more than what it provides, I'm firing up a spread sheet or some advanced number-crunching program that takes longer to start, but I'm OK with that because I'm going to be spending 15 minutes or more with it.
Re:Because they want it to be better! (Score:5, Insightful)
What baffles me is why they don't fix Notepad. I mean there are a TON of good other really basic text editors out there (Win32pad is my favorite for a direct replacement), but really all they'd need to do to make that program significantly more useful would be to make it handle Unix line-breaks correctly, and have some indicator (eg, a status bar) of cursor position within the file.
There are other things that would be nice, but those fixes would literally take any decent programmer less than an hour to implement. I'm half convinced they lost the source code to the Notepad back in the Win95 days . . .
Re: (Score:3)
You mean like this? https://www.theverge.com/2018/... [theverge.com]
Re:Because they want it to be better! (Score:4, Informative)
Re: (Score:3, Insightful)
Oh man, status bar *and* word wrap at the same time?!? Not even sarcasm here, I never thought they would ever have bothered with it, yet the either-or choice annoyed me to no end (quick notes i wanted word wrapped, but config files I wanted line numbers). What next, having cake and eating it too?
Re: (Score:2)
https://youtu.be/sK_446ozew0?t... [youtu.be]
Re:Because they want it to be better! (Score:5, Informative)
I use notepad to remove formatting from text copied somewhere else.
That and if I don't have time to wait for a word processor to open.
Re: (Score:3)
Re: (Score:2)
Edlin should be more than enough text editor ability for any one.
Re: (Score:2)
Re: (Score:2)
Re: (Score:3)
Try pressing Ctrl+Alt+V instead of just Ctrl+V
Then select "Unformatted text".
Obviously depends on the program, but I do Ctrl+Alt+V dozens of time per day, to KEEP formatting, because by default (in office) I have changed my options to remove all formatting and just paste text by default.
Re: (Score:2)
They DID both of the things you asked for last year: https://blogs.msdn.microsoft.c... [microsoft.com] It was included in the ill-fated Windows 10 1809 update though so it may not have yet reached your computer. Next time you update your Windows 10 version it will have both of the features you seek in notepad though.
Re: (Score:3, Informative)
Re: (Score:3)
Finally!!! (Score:3, Funny)
We've been waiting years for this!
Re:Finally!!! (Score:5, Funny)
Next to be released....Clippy!
Re: (Score:2)
Re: (Score:2)
Most of us probably are not calculating numbers anywhere near as often as you. I'd find this distracting.
Re: (Score:2)
Re: (Score:2)
And Reversi too! Yes! All of this plus Reversi!!!
Re: (Score:2)
emacs has tetris and pacman built in, I don't think expecting clippy to be in there is really asking that much of them.
Windows 95 calculator??? (Score:4, Insightful)
There are plenty of open-source calculators from HP-11C style RPN
apps for Android and IOS, to a variety of callable interface ones on
Linux, MacOS, and whatever.
Microsoft's 24 year old calculator isn't worth the code it was stolen on.
E
Re: (Score:2, Interesting)
I took a peek at the code and this is not 24 year old code. It's using the latest C++ whizz-bang features. I happen to not be a fan of that. But the code does appear clean and well written. I think this would be nice for ReactOS to have.
Re: (Score:2)
If ReactOS ever implements UWP, then sure. But it will be a long time before anyone would try adding that to the scope of the project.
Re: Windows 95 calculator??? (Score:3)
Or again maybe not:
>>>>> 10*(1-0.9)
0.9999999999999998
Re: (Score:2)
Anything that uses floats will do that. Firefox Javascript console: 10*(1-.9)=0.9999999999999998 JRE8: System.out.println(10*(1-.9)); = 0.9999999999999998
WOW! (Score:5, Funny)
What's next, Minesweeper?
Re:WOW! (Score:5, Funny)
Re: (Score:2)
Reversi.
Re: (Score:2)
Minor Requests (Score:2)
Can someone now put the 1/x button back where it is easily accessible and make the programmer version allow floating point numbers? I get really annoyed when I'm dealing with hex values that are whole numbers, where 1 represents 2^(-8), and I can get the integer value from the hex, but then have to copy the value to the scientific calculator to convert to the floating point value...
Re: (Score:3)
Re: (Score:2)
By the way, I only JUST learned about its "digit grouping" feature; it is helpful for these aging eyes.
Re: (Score:2)
I've seen what programmers do with floating point arithmetic. This was the only safe option.
Re: (Score:3)
> make the programmer version allow floating point numbers?
Agreed. In the mean-time here are 3 different solutions (shamelessly stolen from this thread [microsoft.com]) to show a floating-point in hex:
1. Use Windows Calc
2. Use Javascript
3. Use Unix bc
1. Using Windows Calculator press the following hotkeys: (Note: This worked in Windows 7, I'm not sure if it still works in Windows 10. Who knows if MS fucked up the hotkeys...)
a) Integer portion:
Alt-2 (enter number) Ctrl-L Ctrl-P Ctrl-R - Ctrl-
Re: (Score:2)
Re: (Score:3)
Yeah bc is wonky; it has a bug / feature where it only uses the precision of the input. Dividing by 1.0 forces full precision. These seem to be the general heuristics:
Addition: precision = min( lhs, rhs )
Multiplication: precision = lhs + rhs - 1, but doesn't seem consistent
Division: precision specified by scale
Given this input ...
bc -l
obase=16;scale=40;
0.456 + 0.
0.456 + 0.0
0.456 + 0.00
0.456 + 0.000
0.456 + 0.0000
0.456 + 0.00000
0.456 + 0.000000
0.456 * 1.
0.456 * 1.0
0.456 * 1.00
0.456 * 1.000
0.456 * 1.0000
0.45
Re: (Score:3, Funny)
This male dominated industry never ceases to amaze me with their constant "pull requests".
Link was at the very end of the article (Score:4, Informative)
Re:Link was at the very end of the article (Score:5, Informative)
I found this interesting, from the readme:
This project collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. Telemetry is disabled in development builds by default, and can be enabled with the SEND_TELEMETRY build flag.
The OS's built-in calculator app collects telemetry? Really??
Re: (Score:3)
Re:Link was at the very end of the article (Score:4, Informative)
Re: (Score:2)
Hmm, I thought the source code to this application would be pretty much the most boring thing in the world that any CS minor could cobble together, but perhaps this code is a lot more interesting than I thought.
Re: (Score:2)
Wow! (Score:5, Funny)
Comment removed (Score:5, Insightful)
Re: (Score:2)
Slowly becoming more open source (Score:2)
Re: (Score:2)
They already kind of are with Edge soon being based on Chromium.
You see that as a trend toward being more open and not a repeat of what they did with Java?
Too bad it's the new one (Score:3)
Thin edge of wedge? (Score:5, Interesting)
While I agree with the general consensus that releasing the source to calculator is underwhelming, I'm wondering if there is more to the plan here.
Maybe Microsoft has a long term goal of making more apps open-source, to help with the support workload or to develop more Microsoft developers and maybe find some UI designers with fresh approaches.
Yeah they have a plan (Score:3)
Re: (Score:3)
Re: (Score:2)
While I agree with the general consensus that releasing the source to calculator is underwhelming, I'm wondering if there is more to the plan here.
I'm sure there is, because otherwise, why bother? I think this is just them dipping their toes into the water, to see how interacting with the open source community on an app that ships with Windows will work. So they want to start with something innocuous.
Unfortunately, they've chosen an app that's so innocuous that they may be disappointed in the response. They may take from the experience that it's not worth open sourcing stuff, because no one contributes anyway.
Re:Thin edge of wedge? (Score:4, Informative)
"Dipping their toes?" Wow, where have you been? They've already released THOUSANDS of open source projects, including some massive ones, like .NET core.
https://opensource.microsoft.c... [microsoft.com]
Re: (Score:2)
That may be the entire point. Now they'll forever have a case study that they can point to directly and say, "We tried to work with the open source community. No one wanted to interact with us."
I have to think someone in the decision tree that lead to this was aware of what the reaction would be to this.
That's a silly argument. Who would they need to say that to? No one that matters is demanding that they work with the open source community. The only reason they would do it is because they think they stand to get something out of it.
Also, apply Hanlon's Razor. Don't fall into the trap of thinking that big corporations are full of insanely brilliant people who never do legitimately dumb things. They're not.
Re: (Score:2)
While I agree with the general consensus that releasing the source to calculator is underwhelming, I'm wondering if there is more to the plan here.
There was just some story where people were complaining about how long it took to launch the Windows 10 calculator. Maybe Microsoft is just hoping that someone will fix it so that it launches in a reasonable time. Alternately, the calculator in Windows 7 still pops up rapidly, maybe they want to break that.
Oh good (Score:2)
Open source something useful, Solitaire (Score:2)
Solitaire was probably the most use bundled application of Windows until they ladened it with microtractions.
Insider fighting? (Score:3)
Check the source. (Score:5, Interesting)
What makes it so slow?
RPN (Score:2)
Microsoft open-sources Windows calculator (Score:2)
Dear Microsoft,
good thing you did not wait 26 more days to make this announcement.
New improved calculator (Score:2)
Graphing features (Score:2)
Can't use an emulated calc on SAT (Score:2)
A student will still need to buy an authentic TI-83/84 or TI-89 calculator for standardized testing because the College Board's SAT rules ban QWERTY keyboards and touch screens.
Windows 10 calculator is slow compared to 7 (Score:3)
Re: (Score:2)
The difference isn't even noticeable on a decent computer. Otherwise, I might care.
Re: (Score:2)
Re: (Score:2)
The old windows7 calculator was a win32 app. That started up almost instantly. (you say it's Windows Forms, but I think that's wrong. Windows Forms is a .NET layer on top of the win32 "user32.dll" API for displaying dialogs/buttons/windows. I think calculator used the win32 API directly, as do many C/C++ win32 apps. There are two different C++ layers on top of user32.dll which calc might have used... I'm not sure.)
The new windows10 calculator is a modern store app, also known as WinRT, formerly called Metro
Pardon my French (Score:3)
Jesus fucking Christ! Why the hell does one need to have an "improved" experience when using a calculator? It is just about the simplest piece of software one uses. The only thing it needs to do is perform mathematical calculations.
Does everything need to be an "experience"? How about just working?
Re: (Score:2)
Does everything need to be an "experience"? How about just working?
Then you just experienced it working. Just because it's a long word doesn't mean it has to have a fancy definition.
Wake when they open source office (Score:2)
Most of Bill Gates wealth is built on luck timing and greed. The EU should have forced MS to fully document their file format.
#ifdef SEND_TELEMETRY (Score:4, Informative)
Re: (Score:3)
Re: (Score:2)
"This project collects usage data and sends it to Microsoft"
(followed by some unapt attempt of justification).
Insider flighting (Score:2)
Terry Gilliam did some insider flighing in The Adventures of Baron Munchausen (1988)—mainly Robin Williams's head flying around on a Roman dinner plate (about as useful as the source code to Windows calculator).
Robin's expression is slightly on the mirthful side in this one, even by his own standards. Anything to do with Uma Thurman's brief nude scene, in her filmic debut?
Google's calculator, with it's magic unit conversions, is a different beast, whose source code would have some actual value.
Feature Request (Score:2)
I'm curious whether any improvements made to the open source code would be back-ported into Windows?
I often use the date calculation feature in calc.exe. Sometimes I inadvertently click on the "Calculate" button instead of "=" when doing an arithmetic calculation, however, and once clicked, I can't go back to using the numeric functions without closing and reopening the program.
Can we get TrueSpace open sourced now? (Score:2)
Replacing CALC.EXE (Score:2)
Related info here...
The Win10 calculator has an awful UI. It's huge -- much bigger than it needs to be. As others here have noted, it also starts slowly, since it's a Windows Store app and not a normal Win32 program. As others here have also noted, it may not work at all if your network's firewall blocks Windows Store access. (Or you remove the Windows Store from Windows.)
So, replace the darn thing. There are lots of other Windows calculator programs out there. (My favorite is Moffset FreeCalc: http:/ [moffsoft.com]
Re: (Score:2)
I prefer speedcrunch. https://speedcrunch.org/ [speedcrunch.org]
Re: (Score:2)
Re: (Score:2)
How will that affect my formula of Pi R Round !Square?
Re: (Score:2)
It has access to the Windows clipboard. Is there any way that can be exploited? Just curious.
Re: (Score:2)
It wasn't until within the past year I discovered that I could switch from Standard Mode to Scientific (under the View menu, or otherwise Alt+2). Putting it in scientific mode makes it follow the proper order of operations.
Re: (Score:2)
And yet here you are. And in the meantime Linux has become mainstream, and the idea of open source has become the norm, and expected, even of big proprietary companies. So I'm not quite sure what to make of your comments. The philosophies that propelled Linux and open source to be no only mainstream, but clear overall winners, is now percolating into Microsoft and other companies and we're all better because of it.
Oddly enough, both the Mate desktop and Gnome have built-in calculator apps that appear fun