News for hackers. Stuff that matters.
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.
Re:Why Is C Faster Than Java (2009) by kaba0 on Monday December 27, 2021 @03:23AM (#29700576)
Also, Duff’s device is pretty terrible and a modern compiler will output much better code.
Re:Why Is C Faster Than Java (2009) by LAC-Tech on Monday December 27, 2021 @05:39AM (#29701303)
> 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.