https://users.rust-lang.org/t/energy-consumption-in-programm...
Also, Typescript 5 times worse than Javascript? That doesn't really make sense, since they share the same runtime.
See this example as one demonstration: https://www.typescriptlang.org/play/?q=8#example/enums
The TS code looks very different from the JS code (which obviously is the point), but given that, not hard to imagine they have different runtime characteristics, especially for people who don't understand the inside and outs of JavaScript itself, and have only learned TypeScript.
One thing to consider, is that with JavaScript you put it in a .js file, point a HTML page at it, and that's it.
TypeScript uses a ton more than that, which would impact the amount of energy usage too, not to mention everything running the package registries and what not. Not sure if this is why the difference is bigger, as I haven't read the paper myself :)
But if you do, please do share what you find out about their methodology.
The resource consumption b/w rust and golang would be pretty minimal to figure out actually for most use cases imho.