Get the latest tech news
Constrained languages are easier to optimize
exposing raw pointers make the optimizer’s job horribly hard. high level languages can constrain your program, making more optimizations sound.
this takes a series of nested loops, each of which logically allocate an array equal in size to the input, and optimizes them down to constant space using unboxed integers. your performance issues are not evenly distributed across your code; you can identify the hotspots and choose against a language with raw pointers in favor of one more structured and therefore more amenable to optimization. well, Rust is a good step in the right direction: raw pointers are opt-in with unsafe; Iterators support functional paradigms that allow removing bounds checks and fusing stream-like operations; and libraries like rayon make it much easier to do multi-threaded compilation.
Or read this on Hacker News