|
|
|
|
|
by zyx321
2955 days ago
|
|
Of course. When you first learn about 'cool hacks' like these, you'll want to use everywhere. Then you'll realize that they don't apply to certain data types in certain environments. Then you'll come to realize that the rules governing which hacks to use are too complex to remember. Then you'll want to write a program that figures it out for you. Then you'll realize that those programs already exist, and they are called compilers. So now you are back where you started. You have made no progress, but you have gained an important insight. |
|
There's a reason a lot of these potentially non-portable tricks show up in high-performance computing (particularly in videogames) and in the embedded space.