Re:Why Is C Faster Than Java (2009)
by josephcsible on Sunday December 26, 2021 @11:55PM
(#29699421)
You're mixing up a thing you can do with a way that you can do something. You can write Rust code with the same observable behavior as Duff's device in C.
Also, Duff’s device is pretty terrible and a modern compiler will output much better code.
> You're mixing up a thing you can do with a way that you can do something.
I don't think they are.
> You can write Rust code with the same observable behavior as Duff's device in C.
Yes, turing complete languages can do that.
Duff's device <https://en.wikipedia.org/wiki/Duff's_device>.