I didn't complete Day 5 of Advent of Code, BUT I did save all the various compiler crashes. Thanks a bunch for giving us a dope compiler for use during Advent of Code. Roc is super fun, and despite minor syntax changes from Elm, and 20 billion number choices (#Nat4LyfeDawg), I can't wait to get Roc into production against y'alls recommendation :stuck_out_tongue:. It was really fun this year learning a new language where I felt I was learning the built in modules, not actually the language hah! It just felt natural coming from Elm/ReScript/F#. Can't wait for roc dev
to push my experiments into over drive. Also, mad props to all the docs. The release download + Mac instructions + the getting starting guide + the module docs were great to get moving and I referred to them constantly the past week. Appreciate the hard work that went into something y'all know may change frequently, I felt it was totally worth it.
Thanks for saving I'll of these. I'm definitely interested in digging into any of the dict related problems. I'm sure others will find the other crash reports useful as well
I am just gonna document here some of what I see from the different issue (Note: I am running from main
so it may have bug fixes that have not yet been pulled into nightly):
Why is str.tonat failing, impossible
I am guessing that this is hitting #4677 where dbg
is printing values incorrectly rather than Str.toNat
parsing the value wrong, but I am not 100% sure by just running the code.
roc test bug
I think this is a type and a missing set of parenthesis (though maybe the parenthesis shouldn't be needed and parsing is wrong. It works if you change:
expect getCrates (Dict.emtpy |> Dict.insert 1 ["A"]) 1 |> List.first |> Result.withDefault "" == "A"
to:
expect (getCrates (Dict.empty |> Dict.insert 1 ["A"]) 1 |> List.first |> Result.withDefault "") == "A"
roc test bug 2
This is also hitting the same issue with a missing set of parenthesis. Also, once the parenthesis are added, I think the wrong function is used in a test. You have a dictionary that is passed into a function that expects a list.
run roc test thisfile to see bug
I am not sure what the issue is with this file. If it is renamed to Crates.roc
, it seems to work just fine.
The rest of the examples (keep getting error blahhhhh
, out of memory wat
, panic
, panic other patterns can't be applied
, segfault
, segfault when you roc dev
), I am not sure what is going on. They probably should all be filed as issues so someone can dig into them more. Thanks for collecting the logs.
Last updated: Jul 06 2025 at 12:14 UTC