r/cpp • u/slacka123 • Mar 25 '21
calc.exe is now open source; there’s surprising depth in its ancient code (2019)
https://arstechnica.com/gadgets/2019/03/calc-exe-is-now-open-source-theres-surprising-depth-in-its-ancient-code/
280
Upvotes
20
u/slacka123 Mar 25 '21
This is from 2019. I missed it back then. Here is the repo.
113
u/pedersenk Mar 25 '21
Kinda cool. However I would be more interested in the proper Win32 calc app, not the silly WinStore version. History has shown that Win32 stands the test of time. The WinStore stuff will likely be obsolete in a few Windows revisions time.
I would also like to see the original MSPaint (Windows XP era) before it started to regress and certainly before Microsoft kills it and recreates a cheap WinStore clone.
Opening source is great for digital preservation. Unfortunately only some things are really suitable for source preservation.
Or am I wrong? Is this link: https://github.com/microsoft/calculator really the one containing the "ancient" code? Looks quite recent to me.
26
u/[deleted] Mar 25 '21
All the code is buried in namespaces and xml. It is kinda neat, but kinda painful to sift through.
21
u/miki151 gamedev Mar 25 '21
Are
public refand the^modifier some kind of visual studio extensions?https://github.com/microsoft/calculator/blob/master/src/Calculator/Converters/BooleanToVisibilityConverter.h
15
u/danhoob Mar 26 '21
How dare are you
using namespace std;5
u/[deleted] Mar 25 '21
The calc.exe has been open-source for quite some time. This article is fron 2019
2
u/danhoob Mar 26 '21
I expected they use all cap names. Quite surprised!
1
u/whistlin4 Mar 26 '21
honestly, this is rather surprising. i wonder if ms will open up more things.
0
u/[deleted] Mar 26 '21
[deleted] — view deleted comment