3 ms·
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
by skybrian 5y ago
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?
- tome 5y ago> 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-unrepresentable/ http://h2.jaguarpaw.co.uk/posts/make-invalid-laziness-unrepr...
- JoelMcCracken 5y ago> 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
- capableweb 5y ago> 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.