Re:Energy Efficiency across Programming Languages (2017) [pdf]
by whizzter on Wednesday September 21, 2022 @04:17AM
(#32922120)
JavaScript and TypeScript yield different results, there could be reasons like backwards compatibility transpilation but that's an option, otherwise code should be identical if written for performance.
[ Parent
| on HN ]
Re:Energy Efficiency across Programming Languages (2017) [pdf]
by HoolaBoola on Wednesday September 21, 2022 @05:06AM
(#32922446)
One of the JavaScript programs at least was concurrent, whereas the TypeScript equivalent was synchronous. No wonder there's a difference...
Haven't looked closely at the other problems, but it's apparent to me that the solutions are not even trying to be similar, so comparing their efficiency is near useless.
the problem in question was the k-nucleotide one, IIRC:
https://github.com/greensoftwarelab/Energy-Languages/blob/13...