brazerzkidaipin.blogg.se

Java program to calculate pi
Java program to calculate pi







#Java program to calculate pi install#

It was completely possible to use JavaScript’s native Math and Date api however, for ease of use, the authors chose to install these two libraries. Libraries like this are both the boon and bane of node.js. In dotnetcore they used the standard library and for nodejs they installed and included mathjs and moment for performing some small math and date functions. until I looked at their github and noticed that the code wasn’t necessarily comparing apples to apples. The point of the article was to showcase how much faster dotnetcore was than nodejs. Who was the largest knight at King Arthur’s Round table? Sir Cumference! This post isn’t about what that is - but if you’re interested visit that link and check it out!

java program to calculate pi

Which was neat because it was celebrating pi day by using dotnetcore, dotnet classic, and node to calculate pi using the Leibniz formula for π and I like geeky things like that.

java program to calculate pi

As is typical when things like these arise, our team’s slack channel went into the lightest of debates about C# vs Node, compiled speeds vs interpreted languages, and finally back to what we were originally discussing - “Do you think cypress would be faster than selenium?”Īn article that came up in slack is here:

java program to calculate pi

This is what I felt like doing on a Tuesday night after seeing yet another article discussing the performance of dotnet core over node.js. Dotnet Core, Golang, Node, C, Java, Python.







Java program to calculate pi