TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Open-Sourcing Windows Calculator

194 pointsby Shinkirouabout 6 years ago

29 comments

turriniabout 6 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator#data--telemetry" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator#data--telemetry</a><p>&quot;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.&quot;<p>Even on a simple calculator.
评论 #19321797 未加载
评论 #19321888 未加载
评论 #19322439 未加载
评论 #19321957 未加载
评论 #19323560 未加载
评论 #19321883 未加载
评论 #19321675 未加载
评论 #19322520 未加载
评论 #19323022 未加载
评论 #19325762 未加载
评论 #19321837 未加载
tombertabout 6 years ago
This is cool, but I <i>really</i> wish they&#x27;d release the source for the original Notepad. No real reason other than &quot;this software was really important to me when I was a kid&quot;.<p>As it stands, though, Calculator is not something I&#x27;ve particularly cared about in the Windows world; pretty much anyone here could write a simple calculator app in an afternoon.<p>Still, I am glad MS is slowly becoming more OSS-friendly; I doubt anyone installs Windows specifically for the calculator app, so as a result, why the hell not open-source it?
评论 #19322053 未加载
评论 #19321975 未加载
评论 #19322388 未加载
评论 #19323703 未加载
评论 #19322235 未加载
Someone1234about 6 years ago
I might try to commit to this.<p>I&#x27;ve always found the &quot;App&quot; 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.<p>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.<p>Oh and you cannot paste in currency ($10) is now invalid. The old one just stripped the currency symbols.
评论 #19321979 未加载
评论 #19324733 未加载
valleyjoabout 6 years ago
I worked on a win32 application for my first job out of college. My boss told me &quot;want to learn win32 and c++, go program a windows calculator clone.&quot; It was a great project to get started and I did learn a lot. Now I have something to compare my work to ha
评论 #19323788 未加载
评论 #19321758 未加载
nevsterabout 6 years ago
Can someone explain why it launches so slowly?<p>It&#x27;s 2019, I have a multi-gigahertz processor, it&#x27;s a calculator app, and it takes a few seconds to launch!
评论 #19326909 未加载
cbsksabout 6 years ago
The &quot;help wanted&quot; label on some of the GitHub issues[0] is interesting to me. Presumably there are Microsoft employees who are being paid to work on Calculator, are they trying to crowd-source their jobs? I should convince my company to open source the project I am working on so I can offload some of my work too ;)<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;issues?q=is%3Aissue+...</a>
评论 #19322680 未加载
评论 #19326915 未加载
nimbiusabout 6 years ago
speaking from experience working in a truck repair shop, I quit using calculator in windows as it was rather unreliable. if im calculating inner diameter or outer diameter for a part, or doing tooth math for machining a new bull gear, ive often encountered wildly different values in calculator from what a machinists handbook tells me. Ive even had an old-timer warn me about different depth and feed rate calculations that calculator has never done right. This is simple shop math, but i think we&#x27;re calling it trigonometry these days.<p><a href="https:&#x2F;&#x2F;blogs.windows.com&#x2F;windowsexperience&#x2F;2018&#x2F;04&#x2F;04&#x2F;announcing-windows-10-insider-preview-build-17639-for-skip-ahead&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blogs.windows.com&#x2F;windowsexperience&#x2F;2018&#x2F;04&#x2F;04&#x2F;annou...</a>
评论 #19322107 未加载
评论 #19333166 未加载
Titanousabout 6 years ago
In case anyone is wondering what telemetry is collected: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;blob&#x2F;master&#x2F;src&#x2F;CalcViewModel&#x2F;Common&#x2F;TraceLogger.cpp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;blob&#x2F;master&#x2F;src&#x2F;Calc...</a>
评论 #19321858 未加载
ocdtrekkieabout 6 years ago
Awesome seeing another component of Windows (albeit a small one) shifting to open source. My hope is that over time, more and more components will end up open source as they get updated and rewritten.
评论 #19322045 未加载
diminishabout 6 years ago
MS goes on to open source the famous and non interesting parts of its products.<p>What&#x27;s next? Notepad, Ms Paint?<p>Shall we see anything bigger than VS Code?
评论 #19321817 未加载
评论 #19321796 未加载
评论 #19321842 未加载
评论 #19322513 未加载
nathellabout 6 years ago
Whoa, it appears to be written in C++&#x2F;CLI. I wonder how much Windows code also is, and how it impacts maintainability.
评论 #19321894 未加载
评论 #19322333 未加载
评论 #19323197 未加载
评论 #19321889 未加载
jacobparkerabout 6 years ago
The history is truncated on GitHub. (first real commit is <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;commit&#x2F;c13b8a099eea11d5d6777de7562d350352b909d2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;commit&#x2F;c13b8a099eea1...</a> ) They&#x27;re using GitHub to merge PRs now.<p>Was this source previously in the Windows repository? Has all development moved to GitHub? If it was in the Windows repo, are they mirroring it back?<p>Do they still have the old history? There are multiple ways to deal with this in git (grafts, replacements) I wonder if they&#x27;re using anything like this to get full history, internally.
nlyabout 6 years ago
Kinda shocking how large the codebase is for such a simple app
评论 #19322056 未加载
edwardabout 6 years ago
They accepted my pull request:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;pull&#x2F;106" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;pull&#x2F;106</a>
Tade0about 6 years ago
Nice to hear that.<p>I like to calculate stuff from time to time, so I use the default OS calculator app a lot.<p>The Windows one is actually pretty decent, except maybe for the shortcuts - e.g. raising to the power is under &quot;y&quot; for some reason.<p>Ubuntu&#x2F;Linux(es) has by far the best one. The shortcuts are obvious and the whole expression is visible at all times.<p>The one for macOS is surprisingly lacking.
评论 #19322989 未加载
fetbaffeabout 6 years ago
How many threads for a calculator? My Task Manager says 20.
slimscsiabout 6 years ago
Now if the would open solitaire, that would be huge.
mihaitodorabout 6 years ago
I can’t believe the core of it is still some C code from ’95 called “Ratpack”: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;tree&#x2F;master&#x2F;src&#x2F;CalcManager&#x2F;Ratpack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;calculator&#x2F;tree&#x2F;master&#x2F;src&#x2F;Calc...</a> over which they added a whole bunch of enterprise fluff.
评论 #19333293 未加载
jchwabout 6 years ago
This is really cool! I thought the open sourcing of Winfile was cool too.<p>I hope they continue down this road. I doubt we&#x27;ll see the NT Kernel on GitHub in my life time... but, one can dream.
评论 #19321867 未加载
chungyabout 6 years ago
Is this the version with floating point precision errors?
tee5r333about 6 years ago
My favorite calculator was the PowerToy Calculator back in the Windows XP days.<p>Does anyone have a suggestion for a replace on Windows 10?
shakeharabout 6 years ago
Finally I can have it run in a size that does not take up 3&#x2F;4th of my screen by default.
kerngabout 6 years ago
Is this for the old school cool calc.exe or the new Calculator Windows 10 app?
1337shadowabout 6 years ago
I hope cmd.exe is next so that we can learn how to build terminals the ms way
platzabout 6 years ago
I see xaml there, does that mean this is WPF even though it&#x27;s c++ ?
评论 #19325557 未加载
anonlastnameabout 6 years ago
This is the most trivial program on the entire OS. Hooray for Microsoft, I guess.
评论 #19321494 未加载
评论 #19323002 未加载
评论 #19321428 未加载
faissalooabout 6 years ago
This is going to be great for ReactOS, they&#x27;re even open sourcing more of their UI components.
ggambettaabout 6 years ago
While I applaud this, and I&#x27;m generally positive about Microsoft&#x27;s new stance regarding open source, I wonder whether they ever have, or ever will, apologise for having made remarks like &quot;Linux is communism&quot;. They caused a lot of damage. It feels a bit disingenuous to just pretend now that nothing happened.
评论 #19321753 未加载
评论 #19324755 未加载
评论 #19321890 未加载
ilovwindowsabout 6 years ago
So they are gonna open source everything so that the community can contribute to it and still charge us for using it. Cleaver move Microsoft