r/programming • • Sep 14 '26

How GCC Eliminates Unnecessary Integer Division

https://leetarxiv.substack.com/p/how-gcc-eliminates-unnecessary-integer
251 Upvotes

52 comments sorted by

View all comments

Show parent comment

5

u/UloPe Sep 15 '26

You didn’t ask though.

You made a claim of fact that’s not true.

-4

u/LonelyAndroid11942 Sep 15 '26 edited Sep 15 '26

Look, I work in JS primarily. When I do `const a = 3/8;`, I get a float. Is there more to it? Sure. But most devs I know and have worked with don’t know or care about that.

EDIT: “This guy is posting his objective experience that disagrees with my theoretical knowledge! I have more technical knowledge than he does but can’t be bothered to explain, so I’m going to downvote instead!”