3 ms·
While these optimizations make sense, I cannot hide my disappointment as to how easy they are to break. C-like branches/loops are definitely not designed for mo
by TheMode 4y ago
While these optimizations make sense, I cannot hide my disappointment as to how easy they are to break. C-like branches/loops are definitely not designed for modern CPUs (at least not in an efficient manner)
Do anyone perhaps know one/multiple languages that try to push the programmer into manually defining dependencies/micro-parallelism? Or at least make it harder to write inefficient code? If not, what would you suggest?
- ridiculous_fish 4y agoHow about...Fortran! In Fortran, you can only take the address of variables which have been annotated with TARGET. This means that "cannot alias" is the default and compilers exploit this.
- GeompMankle 4y agoYeah, people complain about Fortran but writing array operations in Fortran 2003 is great for avoiding aliasing problems and tell the compiler what we need to have done rather than how we think it needs to do it.