It's not the language that's the problem, it's the developers. You can write fast efficient code in Java, JavaScript or pretty much any language really.
Unfortunately though most working developers today think that being a good developer means being familiar all the esoteric features of abominably heavyweight frameworks such as Spring. They don't think about clock cycles, stack depth, the complexity of the object graphs they are creating, or any of the stuff that developers from the last century had to care about.
The death of Moore's law may be a good thing in the longer term. It means we will have to start caring about the kind of code we're writing again.
"[T]he reality is that they took a lot of time, technical expertise, and the skilled performance of a real actor"
The two most common things in the Universe are hydrogen and stupidity. -- Harlan Ellison