not sure if others have reported this, I noticed my program has buggy behavior with "--optimize". I created a mini reproducible case on this https://github.com/roc-lang/roc/issues/7385
Interesting, surprised this is being hit on latest main, just landed some fixes related to this kind of stuff.
Probably can't look for a day or 2, but minimal repro is awesome!
My guess at quick glance is that it is related to list.map with nested refcounts.....though not sure why that would break only in optimize (unless morphic is still telling it to be inplace and I didn't disable that correctly)
Last updated: Jul 06 2025 at 12:14 UTC