logoalt Hacker News

fulafeltoday at 8:51 AM2 repliesview on HN

Depends on the programming language. A good question is why we don't have more optimizable languages in mainstream use.


Replies

inigyoutoday at 11:08 AM

FORTRAN is used for a lot of numerical algorithms - today! installed on your computer right now in some library! - because it optimizes better than C because it doesn't have pointers.

show 1 reply
flohofwoetoday at 9:14 AM

Are there any programming languages which change the data layout beyond naively sorting struct members by alignment? (which at best helps with reducing padding bytes but can be either good or bad for performance, depending on the code which accesses the data).

show 3 replies