You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a note of caution here, the execution time seems orders of magnitude slower than our current default interpret function. I'm not certain these comparisons are fair—I did my best to match them to the example at the beginning of the tutorial. It might be that I'm not understanding the correct use of the package.
Comparing times:
julia> [round(median(res.times)) for res in [res_raw, res_meta, res_int]]
3-element Vector{Float64}:24.03776.089.0
Mem = Dict{Symbol,Union{Bool,Int}}
read_mem =@theory v σ begin
(v::Symbol, σ::Mem) => σ[v]
end
σ₁ =Mem(:x=>2)
program = :(x, $σ₁)
res_meta =@benchmarkrewrite(program, read_mem)
https://juliasymbolics.github.io/Metatheory.jl/dev/tutorials/while_interpreter/
MetaTheory.jl
would make it possible to add any interpreter painlessly!The text was updated successfully, but these errors were encountered: