Live data from Hacker News

Which Programming Languages Use the Least Electricity? (2018)

thenewstack.io

61–70 of 267 posts

Re: Which Programming Languages Use the Least Electricity? (2018)

#61

Earlier quoted context omitted.

Right but if I write a program that converts code into assembly and does the optimizations automatically then I can get something better or equal to a compiler.

Isn't that exactly a compiler?

Yes. And all of my statements are 100% correct except for this one.

Re: Which Programming Languages Use the Least Electricity? (2018)

#63
post #33

Earlier quoted context omitted.

it is absolutely a flaw in the methodology, but one I think is unavoidable without enormous resources.

I agree. I just wanted to point it out in case people took the analysis as entirely accurate without looking a little closer. I suspect the entries towards the top of the list are fairly accurate, by nature of their competitive standing in the benchmark games and their focus as languages on performance. It's much easier for an implementation difference to hide in the natural drift you see in the languages with VMs an…

I, by nature of my current job, have to write JavaScript regularly. In those cases I almost always opt for TypeScript for my sanity.

So as a regular writer of TypeScript I had the exact same question as you.

Re: Which Programming Languages Use the Least Electricity? (2018)

#65
post #13

Earlier quoted context omitted.

I don't use Typescript, and use Javascript only for what I have to. I don't care about the ranking of either of them, I'm just pointing out a possible flaw in the methodology that should be taken into account when looking at the numbers presented, and what I suspect is a concrete example of that. This also isn't a criticism of the benchmark game, it's well known that not every implementation is equivalent in the time…

it is absolutely a flaw in the methodology, but one I think is unavoidable without enormous resources.

It took me about a minute looking at their published detailed data to notice the problem. They should have noticed a factor-of-15ish outlier and checked why on earth it was there.

Re: Which Programming Languages Use the Least Electricity? (2018)

#68
This study is a bit silly, I had to check whether it was an April Fool's joke. The chipset running the instructions is going to have a far higher impact on energy usage than the language compiling those instructions.

For instance, switching to ASICs or even FPGAs that are optimized to handle certain types of computations.

Just look at datacenters or mobile devices. Sure, optimizations are made to runtime environments to improve performance, and increase battery life. But you are going to see bigger gains through chip architecture. And that is what vendors focus on.

Post reply on HN