Closed jwiegley closed 4 years ago
Just thought I'd chime in and say that I've had memory issues as well when translating code involving large pattern matches, and I believe the culprit is isCompleteMultiPattern
. I was able to disable this (it's only invoked twice in Expr.hs) and the memory issues have gone away.
That’s my code, and I would not be surprised if I walk right into some combinatorial explosion while doing pattern exhaustiveness checks – after all, there are whole papers written about that…
With #146 applied the above file is translated in under a second using under 200 KB of memory on my machine.
git clone https://github.com/SPY/haskell-wasm
cd haskell-wasm
Use the following
edits
file:It's just like crypocurrency mining, just without making any money!