I'm a little surprised at where Erlang features in the list. I've never used it personally, but have heard so much about it being an amazing, performant language. I wonder why it's so time/energy/memory inefficient for the algorithms used in this exercise.
Which Programming Languages Use the Least Electricity? (2018)
71–80 of 267 posts
Re: Which Programming Languages Use the Least Electricity? (2018)
#72Re: Which Programming Languages Use the Least Electricity? (2018)
#73Re: Which Programming Languages Use the Least Electricity? (2018)
#74I'm a little surprised at where Erlang features in the list. I've never used it personally, but have heard so much about it being an amazing, performant language. I wonder why it's so time/energy/memory inefficient for the algorithms used in this exercise.
Is this the cost of restarting processes due to "let it crash" error handling?
Re: Which Programming Languages Use the Least Electricity? (2018)
#75Interesting results, but I think the farther you go down the list the more the fact that you're using the Computer Language Benchmark Game affects what you're seeing, as not all languages get the same attention. For example, Javascript and Typescript. Theoretically, I would assume those to be very close, since one compiles to the other. And for memory usage, they are very close. But for running time, Typescript is an…
I don't think that's a safe assumption. The Javascript results would be a lower bound (assuming the same algorithm, etc.), but there's no telling what "extra" Javascript (and thus overhead) might be inserted by the Typescript compiler.
As far as individual results go, there's no point jumping to conclusions when the results and code are available online and easy to try for yourself:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Typescript is still 2-3x slower than Node in several of the benchmarks, and the results could have been different in May 2018 when the article was written.
Re: Which Programming Languages Use the Least Electricity? (2018)
#76PHP's performance is quite impressive nowadays. It's one of the top fastest interpreted languages.
For how much shit PHP gets, it is a pretty good lang for building things
Re: Which Programming Languages Use the Least Electricity? (2018)
#77I'm a little surprised at where Erlang features in the list. I've never used it personally, but have heard so much about it being an amazing, performant language. I wonder why it's so time/energy/memory inefficient for the algorithms used in this exercise.
These benchmarks are all single-threaded, pure computation. Erlang is pretty slow at that (alas).
Re: Which Programming Languages Use the Least Electricity? (2018)
#78Aren't the savings more in the type of application? For example, driving users to addictive content makes them use their phone more. Also, Bitcoin comes to mind.
I’m all for figuring out what’s the most efficient option while also ensuring it’s an effective one as well. If you kept a knife in its sheath to keep it nice, but never take it out to use it, then it’s not servicing its purpose as a tool (ignoring ornamental ones). However, no matter how cool it might seem, you really don’t need a samurai sword to pear apples.
Re: Which Programming Languages Use the Least Electricity? (2018)
#79The big surprise for me is where Perl stands in the rankings, below Javascript in all three tests.
Re: Which Programming Languages Use the Least Electricity? (2018)
#80Earlier quoted context omitted.
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.