Hacker News new | ask | show | jobs
by kccqzy 806 days ago
I really wonder whether at least some of the compiler related issues can be worked around by using cross-compiling. Sure Xcode has GCC 4.0, but can we have a modern machine run a more modern version of GCC that targets this platform? Linker might be hard so maybe just do the linking on the actual machine.

> Reduce CO2 emissions, keep writing C.

This really made me chuckle. Really!? To reduce CO2 emissions just use a modern machine that's going to be so much more efficient on a performance per watt basis. The author is missing the forest for the trees.

Also, Rust has great cross-compilation support no? Isn't it easier to get Rust code compiled on a modern machine for that old machine?

1 comments

On any given machine, Rust compilation consumes comparatively more power.

Also, I doubt mere mortals can compile Rust software for PowerPC OS X. LLVM IR isn't backward compatible and Darwin/PPC hasn't been a supported target for a while. If you used a 2018 rustc and LLVM 7.x you might get lucky.

But will all the Rust compilations in the world actually have an impact on global warming?
No individual drop in the ocean is responsible for a tsunami.