Diesel fuel DOES NOT EXPLODE DURING COMBUSTION---the mechanical energy is produced by by burning which provides a constant pressure on the piston thru the entire power stroke.
The pollution from ships is Drastically reduced by the amount of cargo it moved for that pollution. uses less fuel/t of cargo than Heavy Trucks and Trains combined.