Yes, generational AI has a high environmental footprint. Power hungry data centers, devices built on planned obsolescence, etc. At a scale that is irrational.
Rob Pike created a language that makes you spend less on compute if you are coming from Python, Java, etc. That's good for the environment. Means less energy use and less data center use. But he is not an environmental saint.