Slashdot Mirror


Microsoft Open-Sources Windows Calculator (betanews.com)

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.

149 of 292 comments (clear)

  1. Port to Linux by Anonymous Coward · · Score: 5, Funny

    I hope this program gets ported to Linux now that it's open source.

    1. Re:Port to Linux by Anonymous Coward · · Score: 1, Informative

      There's got to be at least a dozen more capable calculator apps out there for windows and Linux.

      WTF is this worthy of even a post.

      Wait...msmash, who spends her day adding up her nickels per post on a windows calculator

    2. Re:Port to Linux by MBGMorden · · Score: 2, Funny

      I think your sarcasm detector may need the battery changed.

      --
      "People who think they know everything are very annoying to those of us who do."-Mark Twain
    3. Re: Port to Linux by Anonymous Coward · · Score: 1

      We need a good replacement for them all. Something that is Wayland and SystemD worthly.

      I have a $5 calculator sitting on my desk right now. I also have one on my phone. I also own advanced graphic calculators. Why exactly do we still need one on the OS?

      Calc seems like one of those apps that was "cool" to put on a PC 25 years ago, and never really justified itself beyond that. And those that use calculators use real calculators.

    4. Re:Port to Linux by jellomizer · · 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.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    5. Re: Port to Linux by omnichad · · Score: 1

      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.

    6. Re:Port to Linux by LordHighExecutioner · · Score: 1

      *real* HP41here, and who needs emulators ?!?

    7. Re:Port to Linux by Killall+-9+Bash · · Score: 3, Funny

      Soon, my beautiful sig.... soon.

      --
      "Prediction: within 10 years, Windows will be a Linux distribution." Me, 7-6-2016
    8. Re: Port to Linux by HatofPig · · Score: 1

      Having skeuomorphic renditions of familiar desk accessories aided new computer users users in accepting the virtual desktop interface metaphor. Whether or not they were actually useful in-and-of-themselves is ancillary.to this purpose.

      --
      Silicon & Charybdis McLuhan Kildall Papert Kay
    9. Re:Port to Linux by J053 · · Score: 1

      No need. Linux already has bc(1).

    10. Re:Port to Linux by UnknownSoldier · · Score: 1

      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 ... :-)

    11. Re: Port to Linux by Anonymous Coward · · 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 excellent Android calculator. It's so good it just made me forget or even think about purchasing a real device. I should pay the guy -- the product is so well done it makes me feel guilty for not paying and fear that the coder might go broke -- just like Mandriva.

      Sometimes not paying just because you can is not the most rational decision. Welcome to the sharing economy.

    12. Re:Port to Linux by slashdot_commentator · · Score: 1

      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.

      --
      There is no America. There is no democracy. There is only IBM and AT&T and DuPont, Dow, General Electric, and Exxon
    13. Re:Port to Linux by Askmum · · Score: 1

      My HP48(GX) serves as my alarm clock. Never found a better one. Forgot my 48SX once in a sleeper car because I wanted to use it there.
      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?

    14. Re: Port to Linux by cyber-vandal · · Score: 1

      That and being a big contributor to the Linux kernel, ASP.NET Core being fully open source and adopting Chromium to replace their proprietary browser.

    15. Re:Port to Linux by gtall · · Score: 1

      I do not recall a groundswell of calls for MS to open source their calculator. More likely, MS doesn't want to put any more resources into it because it won't generate any profit. So they decide to "gift" it to the open source community in the hopes they'll spend their resources on it. And it allows people like you to gush over how MS is giving back to the "community". The only community MS cares about is the business community paying them.

    16. Re: Port to Linux by DrXym · · Score: 1

      I use the Windows calculator all of the time. My biggest gripe with the Windows 10 one is it takes up too much space. The old one was a little more compact.

    17. Re: Port to Linux by jellomizer · · Score: 1

      There are other ways to sort out legal component, What this does is give the Open Source community junk code, which we are not interested in, and Microsoft will go back and say, see there just isn't interest in Open Source Code.
      Heck they should at least wait and release a Windows 3.1 productivity pack. Calculater, Notepad, File Explorer, Clock all in one burst. Vs this one thing at a time nonsence.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  2. Because they want it to be better! by Anonymous Coward · · 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.

    1. Re:Because they want it to be better! by istartedi · · Score: 1

      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.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    2. Re:Because they want it to be better! by MBGMorden · · Score: 4, 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 . . .

      --
      "People who think they know everything are very annoying to those of us who do."-Mark Twain
    3. Re:Because they want it to be better! by darkain · · Score: 2

      You mean like this? https://www.theverge.com/2018/...

    4. Re:Because they want it to be better! by JackieBrown · · 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.

    5. Re:Because they want it to be better! by thereddaikon · · Score: 2

      Same here. I use it to sanitize text. If they started adding features then i could no longer use it for that. If I need more functionality in a text editor then I will use one of the countless alternatives available.

    6. Re: Because they want it to be better! by Comboman · · Score: 2, Informative

      Wordpad is not a text editor, it's a very basic word processor which uses Rich-Text-Format (though it can save in TXT by stripping out the extra formatting). When looking for "more" in a text editor, it's usually features like syntax highlighting, macros, CR-LF conversion, etc.

      --
      Support Right To Repair Legislation.
    7. Re:Because they want it to be better! by aitikin · · Score: 1

      Does Windows not have a "Paste and match style" option? It's been about a decade since I booted a computer into Windows, and I honestly don't remember if it did at that point or not.

      --
      "Don't meddle in the affairs of a patent dragon, for thou art tasty and good with ketchup." ~ohcrapitssteve
    8. Re:Because they want it to be better! by BenFranske · · Score: 1

      They DID both of the things you asked for last year: https://blogs.msdn.microsoft.c... 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.

    9. Re:Because they want it to be better! by EvilSS · · Score: 3, Informative
      --
      I browse on +1 so AC's need not respond, I won't see it.
    10. Re:Because they want it to be better! by EvilSS · · Score: 1

      It's up to the individual applications to implement it.

      --
      I browse on +1 so AC's need not respond, I won't see it.
    11. Re:Because they want it to be better! by SurenEnfiajyan · · Score: 2

      Yeah, but it hadn't recognized UNIX line endings for ages.

    12. Re:Because they want it to be better! by baker_tony · · Score: 2

      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.

    13. Re:Because they want it to be better! by PrimaryConsult · · Score: 2, 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?

    14. Re:Because they want it to be better! by Scarletdown · · Score: 1

      Edlin should be more than enough text editor ability for any one.

      --
      This space unintentionally left blank.
    15. Re:Because they want it to be better! by HannethCom · · Score: 1

      Better be careful eating that cake!
      https://youtu.be/sK_446ozew0?t...

      --
      Microsoft, Apple, Google, Amazon what's the difference? All steal money from devs and control with walled gardens.
    16. Re:Because they want it to be better! by Anonymous Coward · · Score: 1

      Because unix line endings are moronic.

    17. Re: Because they want it to be better! by Anonymous Coward · · Score: 1

      That's a UNIX problem that should have been fixed back in the 70s.

    18. Re:Because they want it to be better! by AmiMoJo · · Score: 1

      Calculators are actually surprisingly tricky bits of software. The Windows Calculator has a pretty decent arbitrary precision maths library, for example. If you just use the double type in your code you will very quickly run into rounding errors.

      In fact flaws in calculators are used for "calculator forensics", which is the practice of identifying a particular device or chip or bit of software by the errors it exhibits. There always has to be some compromise.

      The Windows calculator is actually pretty robust and the arbitrary precision maths library is a welcome addition to open source.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    19. Re:Because they want it to be better! by thegarbz · · Score: 1

      If there was ever any piece of software that is done and needs no more work, it was this one.

      You say that as if Microsoft writing a calculator which actually gives correct answers without classical CS101 level math errors isn't an incredibly recent phenomenon.

    20. Re:Because they want it to be better! by thegarbz · · Score: 1

      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 . . .

      Were you going for funny? Those are literally the two features they added to Notepad last year.

    21. Re: Because they want it to be better! by K.+S.+Kyosuke · · Score: 1

      Who is feeding you those lines? Return to your carriage, sir!

      --
      Ezekiel 23:20
    22. Re:Because they want it to be better! by Christopher_G_Lewis · · Score: 1
    23. Re:Because they want it to be better! by thereddaikon · · Score: 1

      On windows I primarily use Notepad++, on *nix, and I'll probably get crucified for this, I use whatever the default text editor happens to be.

    24. Re:Because they want it to be better! by Scarletdown · · Score: 1

      All my Win 7 systems use the version of Wordpad from XP, instead of the pointlessly overhauled WP that shipped with 7. I also had to put Starfield from XP on all our W7 systems here at home; since Starfield is the only screen saver that matters. :)

      When I used to tinker around with Linux, Nano was always one of the first things I installed for a text editor. Come to think of it, back then, even after I got a fully operational desktop with LibreOffice and a few additional little editors, I would still often go to a terminal window and run Nano most of the time when I needed to edit a file.

      --
      This space unintentionally left blank.
    25. Re:Because they want it to be better! by UnknownSoldier · · Score: 1

      Ah, good old Microsoft, adding features 20+ years after the fact when people needed them. /sarcasm

  3. Finally!!! by Anonymous Coward · · Score: 3, Funny

    We've been waiting years for this!

    1. Re:Finally!!! by sycodon · · Score: 4, Funny

      Next to be released....Clippy!

      --
      When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    2. Re:Finally!!! by BringsApples · · Score: 1

      Funny you say that. My 1 and only idea as to how to "improve" calculator.exe was to have it running in some state, in the background, and any time one starts typing (while not focused on any windows) numbers followed by mathematical signs, it should spit out the answer on the screen. Basically keep the program part that does the calculations, but don't improve the interface, remove the interface.

      --
      Politics; n. : A religion whereby man is god.
    3. Re:Finally!!! by JackieBrown · · Score: 1

      Most of us probably are not calculating numbers anywhere near as often as you. I'd find this distracting.

    4. Re:Finally!!! by thereddaikon · · Score: 1

      It could also get really annoying really fast if you just wanted to type an equation without the answer. Just think how aggravating it would be if you just wanted to type 2 + 2 and it automatically appended = 4 every time. You would then have to compensate by deleting the extra text just like you have to fight with autocomplete on smartphones.

    5. Re:Finally!!! by Scarletdown · · Score: 1

      And Reversi too! Yes! All of this plus Reversi!!!

      --
      This space unintentionally left blank.
    6. Re:Finally!!! by Aighearach · · Score: 1

      emacs has tetris and pacman built in, I don't think expecting clippy to be in there is really asking that much of them.

    7. Re:Finally!!! by BringsApples · · Score: 1

      After further thinking over this, I decided to search for a way to do this with a key combo or something. Maybe most here already know of this but it's possible to assign a key to any program. To do this:

      1) Open the Start menu
      2) Find the application in the All Programs menu
      3) Right-click the desired program file and choose “Properties”
      4) In the Properties dialog, find the text box labeled “Shortcut key”
      5) Click in the text box and enter a key that you wish to use in your hotkey. Windows will automatically place “Ctrl + Alt +” in front. If you choose a function key or a numeric keypad key, only that key will be used and “Ctrl + Alt +” will not be added.
      6) Click "OK"

      Found here.

      --
      Politics; n. : A religion whereby man is god.
  4. Windows 95 calculator??? by gavron · · 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

    1. Re:Windows 95 calculator??? by Anonymous Coward · · Score: 1

      That's worth even less. At least the 24 year old one worked well.

    2. Re: Windows 95 calculator??? by itsme1234 · · Score: 2

      Or again maybe not:

      >>>>> 10*(1-0.9)
      0.9999999999999998

    3. Re:Windows 95 calculator??? by Anonymous Coward · · 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.

    4. Re:Windows 95 calculator??? by Anonymous Coward · · Score: 1

      This seems to be the UWP version and if nothing else you can go through the telemetry hooks out of curiosity.

    5. Re:Windows 95 calculator??? by omnichad · · Score: 1

      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.

    6. Re: Windows 95 calculator??? by Shikaku · · Score: 1

      Anything that uses floats will do that. Firefox Javascript console: 10*(1-.9)=0.9999999999999998 JRE8: System.out.println(10*(1-.9)); = 0.9999999999999998

    7. Re: Windows 95 calculator??? by itsme1234 · · Score: 1

      "Anything" is not suitable for a calculator app. I mean seriously (and this is sanitized just for the sake of argument example, imagine something you can't actually follow easily in your head):

      >>> 0.9-0.8
      0.09999999999999998
      >>> print(_)
      0.1
      >>> print(10*_)
      1.0
      >>> int(_)
      0

    8. Re:Windows 95 calculator??? by thegarbz · · Score: 1

      Microsoft's 24 year old calculator isn't worth the code it was stolen on.

      Well two things. Firstly MS rewrote the calculator. It's not the same as from 24 years ago. Second thing is the code wasn't stolen.

      Evidence: For 22 of the past 24 years the Windows calculator couldn't do basic math. Only MS could introduce math errors in a calculator app that are covered in a CS101 lecture, and 2 years ago the calculator could finally add and subtract.

  5. WOW! by LaminatorX · · Score: 4, Funny

    What's next, Minesweeper?

    1. Re:WOW! by AlanObject · · Score: 4, Funny

      No they have to get the Windows 3 clock out of the way first.

    2. Re:WOW! by Anonymous Coward · · Score: 1

      TADA.WAV

    3. Re:WOW! by SurenEnfiajyan · · Score: 1

      Notepad.

    4. Re:WOW! by Scarletdown · · Score: 1

      Reversi.

      --
      This space unintentionally left blank.
  6. Minor Requests by Drethon · · Score: 1

    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...

    1. Re:Minor Requests by Anonymous Coward · · Score: 3, Funny

      This male dominated industry never ceases to amaze me with their constant "pull requests".

    2. Re:Minor Requests by Gabest · · Score: 2

      Haha, exactly my problem. As a programmer, I stopped using it when they only allowed integers in "programmer" mode. How can they be so retarded?

    3. Re:Minor Requests by kackle · · Score: 1

      I copied the old calculator to my new machine; now I have the best of both worlds.

      By the way, I only JUST learned about its "digit grouping" feature; it is helpful for these aging eyes.

    4. Re:Minor Requests by UnknownSoldier · · Score: 2

      > make the programmer version allow floating point numbers?

      Agreed. In the mean-time here are 3 different solutions (shamelessly stolen from this thread) 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-R ; Ctrl-C Alt-3 F6 Ctrl-V F5

      Explanation of what those cryptic hotkeys do:

              Alt-2 (switch to Scientific mode) ... enter number or do calculations ...
              Ctrl-L (equivalent to MC button)
              Ctrl-P (equivalent to M+ button)
              Ctrl-R (equivalent to MR button)
              -
              Ctrl-R
              ; (equivalent to Int button)
              Ctrl-C
              Alt-3 (switch to Programmer mode)
              F6 (equivalent to DEC button)
              Ctrl-V
              F5 (equivalent to hex button

      b) Fractional portion:

            Alt-2 Ctrl-R - Ctrl-R ; = * 2 y 32 = ; Ctrl-C Alt-3 F6 Ctrl-V F5

      Exampe: 123.456 will show two outputs: 7B, and 74BC 6A7E

      2. Use Javascript. Open up any browser and start the developer console (Windows Chrome press Ctrl-Shift-I)

              var n = 123.456;
              console.log( n.toString(16) );

      Will display: 7b.74bc6a7ef9dc

      3. Use the Un*x arbitrary precision calculator: bc -l.

      bc -l
      obase=16; scale=40;

      123.456 / 1.0
      7B.74BC6A7EF9DB22D0E5604189374BC6A7EF

      Notes
        a) make sure you load the math library with -L.
        b) You have to use the stupid divide by 1.0 trick to force the full output because bc only defaults to the precision of the input numbers.

      Sad that MS can't even implement a basic programmer calculator after all these years. LOL.

    5. Re:Minor Requests by vinsci · · Score: 1
      GNU bc version 1.07.1 surprisingly gives three different answers.

      > bc -l
      obase=16
      scale=40
      0.456+0.0
      .74B
      0.456*1.0
      .74BC
      0.456/1.0
      .74BC6A7EF9DB22D0E5604189374BC6A7EF

      --

      Trusted Computing FAQ | Free Dawit Isaak!
    6. Re:Minor Requests by radarskiy · · Score: 1

      I've seen what programmers do with floating point arithmetic. This was the only safe option.

    7. Re:Minor Requests by UnknownSoldier · · Score: 2

      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.456 * 1.00000
      0.456 * 1.000000

      ... produces these (inconsistent) results:
      .74B
      .74B
      .74B
      .74B
      .74BC
      .74BC6
      .74BC6 -- WTF? Should be 0.74BC6A

      .74B
      .74BC
      .74BC6
      .74BC6 -- WTF? 3*3 digit precision is 5 digits???
      .74BC6A -- WTF? 3*4 digit precision is 6 digits???
      .74BC6A7 -- WTF? 3*5 digit precision is 7 digits???
      .74BC6A7E -- WTF? 3*6 digit precision is 8 digits???

      --
      Slashdot: Too fucking lazy to fixing their shitty LAMENESS filter so people can't actually post SHORT code snippets.

    8. Re:Minor Requests by vinsci · · Score: 1

      Perhaps this is why the bc(1) page, which I haven't really read, describes it as "bc - An arbitrary precision calculator language", the source code might be funny too.

      --

      Trusted Computing FAQ | Free Dawit Isaak!
  7. Link was at the very end of the article by thegreatbob · · Score: 3, Informative
    --
    There is no XUL, only WebExtensions...
    1. Re:Link was at the very end of the article by Anonymous Coward · · 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??

    2. Re:Link was at the very end of the article by thegreatbob · · Score: 2

      I would have been more surprised if it did not. Win10 seems to be one of the most heavily instrumented pieces of software ever produced. I wonder if they'll be getting some interesting telemetry in the near future.

      --
      There is no XUL, only WebExtensions...
    3. Re:Link was at the very end of the article by SurenEnfiajyan · · Score: 3, Informative

      And here is the flag https://github.com/Microsoft/c...

    4. Re:Link was at the very end of the article by Khashishi · · Score: 1

      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.

    5. Re:Link was at the very end of the article by coofercat · · Score: 1

      Tangentially, so does dotnet (as in the command line tool).

      I can't imagine how long that'll last in the first PR against the supposedly open source calculator. If it stays, it'll be the cause of more forks than an Apache web server.

    6. Re:Link was at the very end of the article by coofercat · · Score: 1

      ...and beware, that even with the flag set to "don't send", Calculator will still track you to some degree. It seemingly fetches localisation and currencies from home.

      static constexpr auto sc_MetadataUriLocalizeFor = L"https://go.microsoft.com/fwlink/?linkid=2041093&localizeFor=";
      static constexpr auto sc_RatiosUriRelativeTo = L"https://go.microsoft.com/fwlink/?linkid=2041339&localCurrency=";

      FWIW, I was looking to see where it actually sends telemetry so I could block it on my router (and/or send some spam maybe ;-))

  8. Wow! by OneHundredAndTen · · Score: 4, Funny

    I will forever remember where I was and what I was doing when I learned about such momentous, earth-shattering news.

  9. im sure it was a warm reception by nimbius · · Score: 5, Insightful

    microsoft: we are committed to open source, here is some software we released as "opened source"
    internet: yeah this license isnt really open source
    microsoft: We have heard the feedback and are continuing our awesome open source initiative.
    internet: its cool. since you spent 40 years trying to force people to use your crappy software, we came up with other open source tools that all either do the same thing, or do it much better than yours.
    microsoft: Here is calculator. It is a small but advanced tool you can use
    internet: Linux has about 34 different calculators already. and they run in windows too.
    microsoft: Yes yes, you are welcome. finally, A calculator that is open source. now if youll excuse me, ive only got 2 plays left on my zune copy of mmm-bop and id like to enjoy them.

    --
    Good people go to bed earlier.
    1. Re:im sure it was a warm reception by Rick+Schumann · · Score: 1

      Pretty much this, yeah. It's insulting, really.

  10. Slowly becoming more open source by xack · · Score: 1

    We had the old file manager, early DOS versions and now the calculator. Eventually Microsoft will probably go the Red Hat route and Make the full switch to open source. They already kind of are with Edge soon being based on Chromium.

    1. Re:Slowly becoming more open source by omnichad · · Score: 1

      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?

    2. Re:Slowly becoming more open source by gtall · · Score: 1

      Dumping old dead code is somehow following Red Hat?

    3. Re:Slowly becoming more open source by Areyoukiddingme · · Score: 1

      Dumping old dead code is somehow following Red Hat?

      Yes. What else would you call pulseaudio?

  11. Too bad it's the new one by Gabest · · Score: 2

    The old blue-ish type could use decimals and switch to hex in a single interface, without losing the numbers. I don't understand why they had to separate it into multiple modes. Very annoying.

    1. Re:Too bad it's the new one by theultramage · · Score: 1

      That's why long ago I transplanted calc.exe and calc.exe.mui from WinXP. It's much more suited for the things I use it for.

  12. Thin edge of wedge? by mykepredko · · 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.

    1. Re:Thin edge of wedge? by kackle · · Score: 2

      I figured it was 'Write/improve stuff for us so we can put it in the next OS version we sell.'

    2. Re:Thin edge of wedge? by swillden · · Score: 1

      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.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    3. Re:Thin edge of wedge? by drinkypoo · · Score: 1

      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.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    4. Re:Thin edge of wedge? by swillden · · Score: 1

      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.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    5. Re:Thin edge of wedge? by Dutch+Gun · · Score: 3, 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...

      --
      Irony: Agile development has too much intertia to be abandoned now.
    6. Re:Thin edge of wedge? by AmiMoJo · · Score: 1

      It's a sound business decision.

      What value does keeping the Windows calculator closed source provide? It's not like competitors are going to benefit, they already have calculators in their operating systems and the quality of the built-in calculator app is not a factor in picking Windows over say Linux.

      On the other hand, making it open source may help developers on the Windows platform by giving them things like an arbitrary precision maths library and a nice example app to learn from. They are using git internally for development anyway, so the amount of effort to transfer it to Github (if it wasn't already there but set to private) is tiny.

      It's the same reason that Google releases stuff like Tensorflow, Facebook released that Javascript library... Open Source is good for business, because it helps build up platforms and ecosystems by making use of work the company was doing anyway.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    7. Re:Thin edge of wedge? by gtall · · Score: 1

      MS infecting the open source world with their CrapWare is not good thing. It's best kept within MS so the cockroaches have something to eat.

  13. Next Week: Microsoft Open-Sources Hello World by Anonymous Coward · · Score: 1

    Microsoft is dead.

  14. Oh good by bistromath007 · · Score: 1

    This means I'll be able to get a version that doesn't beg me to rate it on the windows store

  15. Open source something useful, Solitaire by BLToday · · Score: 1

    Solitaire was probably the most use bundled application of Windows until they ladened it with microtractions.

  16. Insider fighting? by jabberw0k · · Score: 2

    For a moment there we almost had a revelation on what really goes on in Redmond

  17. Check the source. by Anonymous Coward · · Score: 5, Interesting

    What makes it so slow?

    1. Re:Check the source. by thegarbz · · Score: 1

      What makes it so slow?

      The viruses on your computer.

  18. Yeah they have a plan by aepervius · · Score: 2

    The same plan as when their game division say "they will start again supporting pc gaming". Lip service, but in reality do nothing of worth. With the calculator it is so comical as to give me tears of laugh. There are so many OS project which do better with more functionality, and heck there isn't anything in windows calculator a 1st year student could not slap in a week in java.

    --
    C. Sagan : A demon haunted world:
    http://www.amazon.com/gp/product/0345409469/
    visit randi.org
  19. I'm hoping it will soon get an RPN mode.

  20. Mickey$oft math! by rstanley · · Score: 1, Troll

    I can't wait so they can teach us Mickey$oft math!

    Linux kcalc app:
    3 + 3 * 3 == 12

    Linux command line app bc:
    3 + 3 * 3 == 12

    Linux C Program using C Standard operator precedence:
    int main(void)
    {
          printf("3 + 3 * 3 == %d\n", 3 + 3 * 3);

          return 0;
    }
    Output:
    3 + 3 * 3 == 12

    Windows 10 Calculator:
    3 + 3 * 3 == 18!

    Priceless!!! ;^)

    1. Re:Mickey$oft math! by Scarletdown · · Score: 1

      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.

      --
      This space unintentionally left blank.
    2. Re:Mickey$oft math! by rstanley · · Score: 1

      Correct math should work the same in ANY mode in ANY calculator, unless using some other unusual mode such as Reverse Polish Notation.

      How many people used the "Standard Mode", not knowing of this bug???

  21. Microsoft open-sources Windows calculator by DontBeAMoran · · Score: 1

    Dear Microsoft,

    good thing you did not wait 26 more days to make this announcement.

    --
    #DeleteFacebook
    1. Re:Microsoft open-sources Windows calculator by coofercat · · Score: 1

      Oh I don't know... I'm sure slashdot will help 'em out in that regard.

  22. New improved calculator by TJHook3r · · Score: 1

    Can't wait for a snazzy new calculator to come out... ! Come on MS, pretty much every programming course teaches you to make a calculator within the first few weeks!

  23. Graphing features by Only+Time+Will+Tell · · Score: 1

    If they are serious about building out its functionality, it would be nice if it had added graphing and calculus features added to it to mimic a TI-83 or TI-89. This could be a benefit to students who have to share calculators in school and can't afford one for home use (or those times you just don't have one on you). Having it shipped and supported right inside Windows would be a great benefit for students.

  24. Everyone Herp A Derps about how crappy it is but.. by Anonymous Coward · · Score: 1

    It's a little less work for the folks at ReactOS.

  25. Windows 10 calculator is slow compared to 7 by Stonent1 · · Score: 2

    In Windows 7, Start > Run > Calc and calculator loads instantly and you can start using it. That's when the calculator appeared to be written using Windows Forms. When they switched to Modern UI or WPF in Windows 10, when you open it, Start > Run > Calc. wait...wait...wait... and then it's open. Nearly every application that they switched from 7 to 10 in this way has a loading lag that wasn't there before.

    1. Re:Windows 10 calculator is slow compared to 7 by omnichad · · Score: 1

      The difference isn't even noticeable on a decent computer. Otherwise, I might care.

    2. Re:Windows 10 calculator is slow compared to 7 by Ksevio · · Score: 1

      Yep, I downloaded the Windows 7 calculator on Windows 10. Not only is the interface faster, but the programmer mode exists and is very useful.

    3. Re:Windows 10 calculator is slow compared to 7 by ljw1004 · · Score: 1

      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. WinRT apps can be written in C++, JS or .NET. (you say ModernUI or WPF, but it's certainly not WPF - WPF is a .NET layer on top of something a bit lower than user32.dll - I think it used graphics acceleration where it could, and didn't use the user32.dll APIs).

      Another poster commented that the problem is that the new calculator is slow because it's in .NET. That's wrong for two reasons. First, the slowness is inherent in all WinRT apps. Try it with even the simplest no-op C++ WinRT app. It takes a minimum of 500ms to launch and do nothing, compared to about 20ms for a win32 app. Second, .NET store apps get compiled to native, and the startup overhead is so small it's hard to measure. And indeed I don't even know if the new calc is written in C++ or JS or .NET -- we can find out easily by looking at the files on disk.

    4. Re:Windows 10 calculator is slow compared to 7 by thegarbz · · Score: 1

      Start > Run > Calc. wait...wait...wait... and then it's open

      Format your computer. You fundamentally broke something.

      Posted from a 7 year old piece of shit machine which has no problem opening the Windows 10 calculator instantly.

    5. Re:Windows 10 calculator is slow compared to 7 by omnichad · · Score: 1

      So healthy humans are defined as people who are using a 10-year old PC?

  26. Re:thanks by thegreatbob · · Score: 1

    Even The Verge had a more prominent link, at the beginning of its second paragraph. Not simply the word "here".

    --
    There is no XUL, only WebExtensions...
  27. Pardon my French by quonset · · Score: 2

    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?

    1. Re:Pardon my French by omnichad · · Score: 1

      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.

    2. Re:Pardon my French by omnichad · · Score: 1

      works better.

  28. Wake when they open source office by labnet · · Score: 1

    Most of Bill Gates wealth is built on luck timing and greed. The EU should have forced MS to fully document their file format.

    --
    46137
  29. Awesome! by naubrey · · Score: 1

    I'm so excited about this! Microsoft Windows Calculator is hands down one of the most important applications I use on a daily basis. This is vitally important to me! --said no one ever. WTF?

    1. Re:Awesome! by rstanley · · Score: 1

      "Awesome!" ??? You should read my comment above. https://news.slashdot.org/comments.pl?sid=13526488&cid=58227112 Then go back and double check some of your calculations on a legitimate calculator, software, or hardware!

  30. Re:Li-ii-nks! by thegreatbob · · Score: 1

    The link is the very last word of the article, "here". https://github.com/Microsoft/c...

    --
    There is no XUL, only WebExtensions...
  31. #ifdef SEND_TELEMETRY by SurenEnfiajyan · · Score: 3, Informative
    1. Re:#ifdef SEND_TELEMETRY by ffkom · · Score: 2

      It would not be a genuine Microsoft product if it did not contain malicious code. It's like a signet proving this is the real Windows calculator, not some cheap rip-off.

    2. Re:#ifdef SEND_TELEMETRY by ffkom · · Score: 1

      Ah, btw., they have a sentence about this in their README.md:
      "This project collects usage data and sends it to Microsoft"
      (followed by some unapt attempt of justification).

  32. Can't use an emulated calc on SAT by tepples · · Score: 1

    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.

  33. Re:Alabama Addition. by Scarletdown · · Score: 1

    How will that affect my formula of Pi R Round !Square?

    --
    This space unintentionally left blank.
  34. Re:Exploit code coming in 3...2...1... by Scarletdown · · Score: 1

    It has access to the Windows clipboard. Is there any way that can be exploited? Just curious.

    --
    This space unintentionally left blank.
  35. Insider flighting by epine · · Score: 1

    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.

  36. Feature Request by nuckfuts · · Score: 1

    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.

  37. Can we get TrueSpace open sourced now? by DMJC · · Score: 1

    I'd love it if Microsoft Open Source Caligari TrueSpace. It's about the only product they own I want. Hasn't been supported since 2008, would be lovely to have the code.

  38. Linux has 34 calcs, most of which suck. by laxr5rs · · Score: 1

    Like most apps on Linux for the user side compared to closed source apps, all the "calculators" being claimed here are bound to be a mismatch of probably OK code and dev laziness/chaos in user interfaces. I've been at this game for over twenty years now. I've spent years working on Linux and Windows. Long enough to see open source promises by the "crowd" come an go. It appears this crowd can only see this as some kind of joke. It's not a joke. MS is making Windows and the WLS file compatible with the next update. They're doing things. What are you all doing? Looks like you are sitting around with your 2% user market share - that never changes, and complaining. Sure, open source has a lot more calculators, and - almost no one cares.

    1. Re:Linux has 34 calcs, most of which suck. by caseih · · Score: 1

      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 functionally identical to the good old Windows' calc.exe. I can't really complain about anything here, except to mumble something about HP reverse polish.

  39. Replacing CALC.EXE by mattb47 · · Score: 1

    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://www.moffsoft.com/freeca.... It may not be visually the most beautiful either, but it doesn't take up tons of screen real estate, it's fast, and it does everything I need. And it's free.)

    And if you want, you can do some registry hacks so any attempts to run calc.exe instead run Moffset FreeCalc, or whatever is your calculator of choice.

    My batch here is also easily adjustable to open a different calculator (e.g. Calculator Plus, or whatever), just change the folder\file referenced.

    (You could also use this same technique to replace notepad.exe with Notepad++ or whatever other various replacements from stock Windows apps that you might want. Note, however, that Windows may likely reset your settings anytime there's a major build update, e.g., one of Microsoft's big every-six-months build updates.)

    Batch file posted here in Pastebin:
    https://pastebin.com/a8na7k4d

    1. Re:Replacing CALC.EXE by Khashishi · · Score: 1

      I prefer speedcrunch. https://speedcrunch.org/

    2. Re:Replacing CALC.EXE by UnknownSoldier · · Score: 1

      Thanks for the suggestion. This is actually pretty decent as it works across Windows, Linux, and OSX! And its GPL as a bonus.

      Mod parent +1 interesting.

  40. Pretty much worthless by CptLoRes · · Score: 1

    As I read the statement, I literally saw a scene in my mind of an empty space with tumbleweed blowing by.

  41. Calculators in RL by os2fan · · Score: 1

    The Windows calculator is only an algebraic one. It does not handle RPN notation, In my younger days, I wrote a program in 8bit rombasic that emulated something like a HP15, but you could set the operation in 'base by', eg "base 73 by 10's". You could set your own degrees and logs as well, independently of the base (eg 28 sto T would set the circle to 28 degrees.)

    The calculator on the desktop is not really all that useful, unless you can edit the calculation history. For plain dos and Windows, i used to use a thing called 'acalc' from PC-DOS 7, but i wrote a rather cute calculator in REXX, which does much of the same thing. (It supports trig functions in circles too).

    Of course, we see reactos has a nice calculator that looks pretty much like the windows one. They had the thing set up so you could run the winxp type version under w2000. Microsoft forced you through a large DLL for this activity. Nothing like what you need to run the norton desktop for windows one though. It uses quite a large slab of the application.

    --
    OS/2 - because choice is a terrible thing to waste.
  42. Not a news by erik.lonroth · · Score: 1

    Why is this even on slashdot? Its a pathetic News if not News at all. I just released a more interesting repo with an empty README under GPL.

  43. Finally! by aglider · · Score: 1

    Something completely new in the open source software scenario!

    Thank you Microsoft!

    --
    Sent as ripples into the electromagnetic field. No single photon has been harmed in the process.
  44. Fuuuu by fubarrr · · Score: 1

    function multiply(a,b){

    for (i=0; i b; i++) {
    a += a;
    }

    return a;
    }

  45. Re:"The company said it hopes to work with... by UnknownSoldier · · Score: 1

    > The only thing missing from SpeedCrunch is hex to decimal and decimal to hex conversions.

    Maybe I'm missing something but could you clarify what you mean because I'm not seeing that?

    hex(123.456)
    0x7B.74BC6A7EF9DB22D0E56

    dec(0x7B.74BC)
    123.45599365234375

    (press F2 for decimal then enter in)
    123.456

    (press F8 for hex and it will now show as)
    0x7B.74BC6A7EF9DB22D0E56