Stream: bugs

Topic: opportunistic mutation bug with "--optimize"?


view this post on Zulip Steven Chen (Dec 17 2024 at 05:41):

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

view this post on Zulip Brendan Hansknecht (Dec 17 2024 at 05:42):

Interesting, surprised this is being hit on latest main, just landed some fixes related to this kind of stuff.

view this post on Zulip Brendan Hansknecht (Dec 17 2024 at 05:42):

Probably can't look for a day or 2, but minimal repro is awesome!

view this post on Zulip Brendan Hansknecht (Dec 17 2024 at 05:48):

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