News for hackers. Stuff that matters.
Re:Arrays of Arrays (2009) by Animats on Sunday December 20, 2020 @06:25PM (#25490590)
Trying to do this this through Currying turns a simple 2D array access into a quite complicated operation. One that a compiler has to be really smart to turn into a gheap 2D array indexing operation again. This really matters in number-crunching code, where it seems that almost everything is about multiplying arrays.
Re:Arrays of Arrays (2009) by gpderetta on Tuesday December 22, 2020 @09:39AM (#25506630)
Of course it wouldn't make much sense to do it for indexing. I was discussing currying as a generally useful tool.