Green Programming
summary
Experiment implements the Hunt seat-allocation algorithm in 14 languages and measures energy and CO2 with codecarbon emissions tracker on an Intel Core i7 with 8 GB RAM inside WSL using a fixed input (10 parties, 50,000 seats). Results show energy is nearly proportional to runtime and compiled manual-memory languages (C, C++, Rust) have the smallest footprints; country choice can cut CO2 by about a factor of 10 (Germany vs Norway). Measurement noise is ±0.3 after normalization.
AI-written summary · about
