4 ms·
I blame javascript. Though most of the power consumption must be video streaming. I wonder if it would be greener if it was distributed via peer-to-peer networ
by cblconfederate 6y ago
I blame javascript.
Though most of the power consumption must be video streaming. I wonder if it would be greener if it was distributed via peer-to-peer networks. Any studies on that?
- ronaldj 6y agoYou blame a client side programming language for data center power usage?
- cblconfederate 6y agoisnt it very popular server side too?
- ronaldj 6y agoSure. Do you know of any studies that analyze the power consumption of different languages on the backend? I'd be curious to see how they compare.
- cblconfederate 6y agoseems there are a few, though not sure if their results are applicable to server-based programs https://jaxenter.com/energy-efficient-programming-languages-137264.html https://jaxenter.com/energy-efficient-programming-languages-... https://stefanos1316.github.io/my_curriculum_vitae/GKS17.pdf https://stefanos1316.github.io/my_curriculum_vitae/GKS17.pdf https://hal.archives-ouvertes.fr/hal-01496266/document https://hal.archives-ouvertes.fr/hal-01496266/document
- loosescrews 6y agoI don't think Amazon, Google, or Facebook do on any significant scale.
- mrep 6y agoSome teams may use it at the big companies and I myself have used lesser performant languages at some of the big companies but only for smaller stuff. For the widely used stuff which big companies do a lot of, you need high efficiency and javascript ain't gonna do that. One of my co workers worked on a 5 person project for half a year that just refactored a core algorithm for a heavily used product and that halved the 5 million dollars a year in hardware costs and that's not expensive public cloud cost but the highly efficient internal data center costs and all of the code was in C++. Writing any of that code in javascript would just be wasting money.
- macspoofing 6y agoWhy would peer to peer be greener? Forget studies, peer to peer doesn't mean less less bits on the wire, and doesn't mean less CPU cycles to process those bits.
- golergka 6y agoYou mean Node, right? As someone who loves Node, using it in the place where it will be a CPU bottleneck is a complete anti-pattern. 98% of CPU time spent serving each web request is spent inside the database, written in C or C++. Node is a great fit for web apps exactly because the part of their business logic (the part of it which shouldn't reasonably be done inside the DB) is not CPU-intensive, so you can focus on useful abstractions and programmer productivity instead of performance.
- sargun 6y agoHow do you come to that conclusion about video distribution?
- cblconfederate 6y agoIsn't video like 80% of internet traffic?