News for hackers. Stuff that matters.
Re:Rust is now overall faster than C in benchmarks by igouy on Monday January 04, 2021 @02:01PM (#25636214)
Is there a GHC compiler switch that ensures only "idiomatic code" is compiled?

One can, with sufficient effort, essentially write C code in Haskell using various unsafe primitives. We would argue that this is not true to the spirit and goals of Haskell, and we have attempted in this paper to remain within the space of “reasonably idiomatic” Haskell. However, we have made abundant use of strictness annotations, explicit strictness, and unboxed vectors. We have, more controversially perhaps, used unsafe array subscripting in places. Are our choices reasonable?

http://www.cs.ru.nl/P.Achten/IFL2013/symposium_proceedings_I...

Re:Rust is now overall faster than C in benchmarks by Blikkentrekker on Monday January 04, 2021 @07:13PM (#25640173)
It shows the performance of that variant of Haskell.

But when using that variant all the correctness guarantees that Haskell is known for are no longer on the table.