Are there any mainstream programming languages that make it ergonomic to write high level numerical code that doesn’t allocate once the serious calculation starts? So far for this task C is by far the best option but it’s very manual, and Julia tries and does pretty well but you have to constantly make sure that the compiler successfully optimized away the allocations that you think it optimized away. (Obviously Fortran is also very good for this, but ugh)
Are there any mainstream programming languages that make it ergonomic to write high level numerical code that doesn’t allocate once the serious calculation starts? So far for this task C is by far the best option but it’s very manual, and Julia tries and does pretty well but you have to constantly make sure that the compiler successfully optimized away the allocations that you think it optimized away. (Obviously Fortran is also very good for this, but ugh)