News for hackers. Stuff that matters.
Re:High-order Virtual Machine (HVM): Massively parallel, opt... by skybrian on Sunday February 06, 2022 @01:20AM (#30229980)
It's neat when code that looks wildly inefficient goes fast anyway, but might that mean minor changes can have unpredictable effects on performance? We see that a fair bit with JavaScript, where there is a happy path for performance but you can fall off if it with apparently minor changes.

Perhaps, with more experience, the performance of programa targeting HVM will be predictable, but I suspect it will mean a lot of relearning intuitions about what makes programs slow?

Do Haskell programmers have good intuition about performance? It seems like laziness would make it hard?

Re:High-order Virtual Machine (HVM): Massively parallel, opt... by JoelMcCracken on Sunday February 06, 2022 @02:03AM (#30230146)
> Do Haskell programmers have good intuition about performance? It seems like laziness would make it hard?

It’s very hard. I’ve found most experienced Haskell devs still get it wrong at times. It’s one of the things that makes me think that we need to rethink the overall approach to laziness

Re:High-order Virtual Machine (HVM): Massively parallel, opt... by capableweb on Sunday February 06, 2022 @04:44AM (#30230934)
> Do Haskell programmers have good intuition about performance? It seems like laziness would make it hard?

Laziness in data structures usually gives you good enough performance in most cases, but harder to make sure it's consistent and reason about when you need to adjust it. For common operations with an average requirement of performance, laziness seems to give the developer an easier chance of good performance, with the higher possibility to screw it up if the requirement is really strict.

Re:High-order Virtual Machine (HVM): Massively parallel, opt... by tome on Monday February 07, 2022 @03:18AM (#30241787)
> Do Haskell programmers have good intuition about performance? It seems like laziness would make it hard?

The solution is to just not use laziness when you don't need it, then reasoning about Haskell performance is the same as in any other language.

http://h2.jaguarpaw.co.uk/posts/make-invalid-laziness-unrepr...