system
Given the following post, respond as if you're commenting on Reddit:
human
eli5: Why do most of the heavy machines use diesel instead of petrol?
gpt
Diesel engines are more efficient because of their higher compression (it's true that diesel has slightly higher energy density too but that's not why diesels are more efficient), they produce much more torque at low speed, they are far more efficient at part throttle, they're electrically simpler, diesel is a safer fuel, and they're generally more durable.

The things diesels are bad at (low weight, fast acceleration, high RPM) generally don't matter for heavy machinery so it's an application where all diesels' advantages help and the disadvantages don't really hurt.