Open samakins opened 6 days ago
Hmm. expensivecalc2
works locally for me. I wonder what's different about our systems. Here's the WebAssembly text output for that module. It looks reasonable.
(module
(type $0 (func (param f64) (result f64)))
(type $1 (func (param f64 f64) (result f64)))
(import "js" "(x) => Math.log(x)" (func $_x_____Math_log_x_Float64Float64 (type $0) (param f64) (result f64)))
(export "expensivecalc2" (func $expensivecalc2))
(func $expensivecalc2 (type $1) (param $0 f64) (param $1 f64) (result f64)
(local $2 f64)
(local $3 f64)
(block
(local.set $2
(f64.add
(local.get $0)
(local.get $1)
)
)
(local.set $3
(call $_x_____Math_log_x_Float64Float64
(local.get $2)
)
)
(return
(local.get $3)
)
)
)
)
I used Julia v1.9.3
.
Hey Tshort,
I think I'm using this as intended but seemingly have an issue with argument count every time i call log(x::Float64).
I see its overwritten in quirks.jl and I've tried playing around with overlay myself but with no luck. Wondering if this was a bug or something dumb on my part.
Here is a very basic example where the first compile attempt has no problem but the second one doesn't work.
I tested this on a linux machine julia 1.10.4 as well as a couple versions of 1.8.*
here is a corresponding manifest
The error output looks something like this
Appreciate any thoughts on this, very cool Pkg otherwise!