Live data from Hacker News

Open-Sourcing Windows Calculator

blogs.windows.com

41–50 of 184 posts

Re: Open-Sourcing Windows Calculator

#41
post #5

Whoa, it appears to be written in C++/CLI. I wonder how much Windows code also is, and how it impacts maintainability.

I was trying to figure out if it was C++/CLI or C++/CX (I don't do enough Windows dev to know at a glance...). I was hoping it was C++/WinRT – I'm interested in seeing the new language projection in action.

Re: Open-Sourcing Windows Calculator

#42
post #4

This is the most trivial program on the entire OS. Hooray for Microsoft, I guess.

Most trivial? Not by a long shot. What about WINVER?

Not windows, but `true` has to take the cake for the most trivial program, the portion of my comment after the second : is a valid implementation:

Re: Open-Sourcing Windows Calculator

#43
post #26

MS goes on to open source the famous and non interesting parts of its products. What's next? Notepad, Ms Paint? Shall we see anything bigger than VS Code?

"Microsoft open sources MSPaint.exe" two weeks later "Show HN: I added transparency support to MSPaint" two (more) weeks later "Adobe shares plummet as users cancel their subscriptions to Creative Cloud by the thousands, analysts baffled"

You joke, but Paint actually has a very rudimentary support of transparency: https://www.wikihow.tech/Make-a-Background-Transparent-in-Pa...

Re: Open-Sourcing Windows Calculator

#44
post #7

https://github.com/Microsoft/calculator#data--telemetry "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." Even on a simple calculator.

I had an interview last year with the Windows and Devices Group. On the day of the interview, I was told it would be with people that work on telemetry.

One interviewer told me that keystrokes were being measured by conhost.exe. Not just for internal testing. He clarified that it was done on customer machines. It wasn't clear if they collected individual key presses because we were discussing something you could infer by knowing keystroke timing.

Windows 10 is the most prolific malware in the world.

Re: Open-Sourcing Windows Calculator

#45
post #7

https://github.com/Microsoft/calculator#data--telemetry "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." Even on a simple calculator.

Here's what they are actually collecting: https://github.com/Microsoft/calculator/blob/master/src/Calc...

So nothing really nefarious then.

Re: Open-Sourcing Windows Calculator

#47
post #7

https://github.com/Microsoft/calculator#data--telemetry "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." Even on a simple calculator.

I'm not sure if I should be disturbed or amused by Microsoft putting telemetry in (at this rate) literally every one of its products. Like, what the hell do they even track? I guess the obvious ones are things like application crashes, but now I'm curious if they have the data on the most common calculations, folks' favorite numbers, etc.

The Scientific/Math/Programmer expanded calculators have a bunch of features. Maybe they can test how often the "cube root" button is used versus Arcsinh or something.

Re: Open-Sourcing Windows Calculator

#48
post #36

This is cool, but I really wish they'd release the source for the original Notepad. No real reason other than "this software was really important to me when I was a kid". As it stands, though, Calculator is not something I've particularly cared about in the Windows world; pretty much anyone here could write a simple calculator app in an afternoon. Still, I am glad MS is slowly becoming more OSS-friendly; I doubt anyo…

"Original" is the issue there. They're far more likely to open source a modern UWP app, written with current best practices in mind, rather than a 20 year old C app with untold terrors hiding in the codebase. If they ever rework Notepad into a UWP app, I suspect that would be open sourced, as I expect many newer Windows components to be.

Re: Open-Sourcing Windows Calculator

#49

I might try to commit to this. I've always found the "App" version of Calculator lacking compare to its Win32 predecessor. In particular History. On the old Calculator you could double-click the history and edit the equation, and get a new result, no go on the App. Plus the Programmer UI, while being more powerful is actually harder to use since the information is now split between two screens rather than one. Oh and…

I use this: https://winaero.com/blog/get-calculator-from-windows-8-and-w...

I don't know if it has the features you're missing, I use it because I don't like the look and feel of the new apps.

Post reply on HN