Writing kernel modules in Haskell
Posted Sep 14, 2009 9:22 UTC (Mon) by
sagrailo (guest, #48054)
In reply to:
Writing kernel modules in Haskell by bjacob
Parent article:
Writing kernel modules in Haskell
An example is if eventually a kernel module needs to do matrix computations. C++ or Fortran matrix libraries are much more powerful than C ones (Fortran because of native array arithmetic; C++ because templates allow to do that and much more)...
If you need vector/matrix computation, you need to use BLAS/LAPACK/etc., period; no one should try to re-implement that kind of code on his own. As for general numerical calculations, I'd agree with your statement that so far Fortran compilers were able to generate much better code than C compilers, but I certainly disagree that C++ template numerical libraries are better than C code - I worked with number of them, and these are all crap, regarding performance, readability etc.; this stuff is good only if you're into writing some papers on how smart and wonderful your usage of templates is.
(
Log in to post comments)