All modern dimmers (post 1970's) work this way - either by PWMing a DC voltage (LED), or chopping the AC waveform using a TRIAC (old school dimmers).
No one used resistor/rheostat dimmers.
Old school low noise dimmers were miniature variacs, varying the AC voltage to the light bulb.