I noticed putting in Num.sqrt function in the online repl doesn't return anything.
Running locally on my Arch Linux WSL caused a panic
» Num.toStr
<function> : Num * -> Str
» Num.sqrt
thread 'main' panicked at crates/compiler/gen_dev/src/lib.rs:1452:26:
internal error: entered unreachable code: invalid layout for sqrt
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
must be a bug in the dev wasm backend
oh interesting. I guess potentially dev backend too
Or maybe a larger issue at the mono level
Full backtrace wasn't too helpful, just gave a bunch of memory offset values from __libc_start_main
The issues is that neither dev backend supports sqrt on Dec
llvm might not either frankly
https://github.com/roc-lang/roc/issues/5831
Last updated: Jul 06 2025 at 12:14 UTC