News for hackers. Stuff that matters.

drb226

Re:How we made Haskell search strings as fast as Rust on Friday March 15, 2019 @12:53AM (#19396690)
About (1).

The exact versions they used are specified by the stack.yaml file.

In this case, see https://stackage.org/lts-13.10

Stack has a feature that lets you automatically added bounds to a hackage upload based on the stack.yaml. (However, I personally do not recommend using this feature, as those bounds usually end up being overly restrictive. Manually-written bounds are better.)

Re:Reflecting on Haskell in 2017 on Monday December 04, 2017 @01:59PM (#15846445)
"The third problem of Haskell is the weird syntax, that doesn't follow the common C/Java/JS or Python syntaxes for no good reason"

Haskell came before Java, JS, and Python. Perhaps it's their fault for choosing C-like syntax instead of Haskell-like syntax.

Re:Reflecting on Haskell in 2017 on Monday December 04, 2017 @01:54PM (#15846407)
"linear types isn’t needed to ensure “some intermediate state must get consumed once and only once.”"

If you don't use linear types to ensure this, then you're probably not ensuring it, and it just comes down to "hopefully the programmer eyeballed it correctly and read the docs."