News for hackers. Stuff that matters.
Re:Cracovians: The Twisted Twins of Matrices by gus_massa on Friday June 20, 2025 @11:18PM (#44334214)
> It turns out that multiplying cracovians by computers is not faster than multiplying matrices.

That's very specific of Python. A few years ago we were multiplying a lot of matrices in Fortran and we tried to transpose one of the matrices before the multiplication. With -o0 it was a huge difference because the calculation used contiguous numbers and was more chache friendly. Anyway, with -o3 the compiler made some trick that made the difference disappear, but I never tried to understand what the compiler was doing.

Re:Cracovians: The Twisted Twins of Matrices by wjholden on Saturday June 21, 2025 @01:43AM (#44334847)
I would expect that Julia could similarly show performance boosts here because of its column-major memory layout.