3 ms·
> Also, Teams isn't written in 1999 JavaScript. I dunno how relevant that is: 1999 JS performance is closer to 2024 JS performance than 2024 JS performance is
by lelanthran 2y ago
> Also, Teams isn't written in 1999 JavaScript.
I dunno how relevant that is: 1999 JS performance is closer to 2024 JS performance than 2024 JS performance is to 1999 C++.
IOW, just because 2024 JS might be faster by a factor of 2, doesn't mean it's faster at all[1] than the equivalent program written in native code.
[1] Maybe it is - I haven't checked benchmarks because programming language benchmarks have almost no correlation to reality when you use the language in a program, because the program is not doing 25k calls to the same function in a while loop.
- paulddraper 2y agoJS aside, there's virtually a 0% chance Teams would be in C++. It'd be in a non-native language, like C#. JavaScript is faster than you think. Miles ahead of Python, Ruby, Perl, PHP. Not too different than C#/Java (especially if you consider 2x to be effectively the same) [1]. [1] https://benchmarksgame-team.pages.debian.net/ https://benchmarksgame-team.pages.debian.net/
- deleted 2y ago[deleted]
- lelanthran 2y ago> It'd be in a non-native language, like C#. True; C# is the most obvious choice for Teams. > JavaScript is faster than you think. I'd be very surprised. > Miles ahead of Python, Ruby, Perl, PHP. Depends on "miles" - I think it is within the same order of magnitude as all of those. If it's far off from being in the same order of magnitude of those, I'd be very surprised. > Not too different than C#/Java I don't think so, not for idiomatic usages anyway. Java and C# are pretty damn fast! ISTR that Java/C#/Go are in a different order of magnitude from JS, Python, PHP, etc. (The link doesn't work, btw)
- paulddraper 2y agoJavaScript (V8) is well over an order of magnitude faster than Python (CPython). https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/python3-node.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... And Java/C# is nowhere even close to an order of magnitude faster than JS. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/java-node.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- neonsunset 2y agoThere is no direct comparison vs JS but C# is much[0] more capable than Java at number crunching tasks because of its low-level features. The better showcase would be complex application code where JS cannot keep up with .NET or JVM no matter how much you optimize V8 due to dynamic typing and even simplest operations like property access needing inline caching and guards. [0]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/csharp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 2y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/node-csharpcore.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... déjà vu all over again (Or would C# aot and GraalVM be more to the point?)
- igouy 2y agoThe other links do work. https://news.ycombinator.com/item?id=40612347 https://news.ycombinator.com/item?id=40612347
- igouy 2y ago404