SciML / RuntimeGeneratedFunctions.jl

Functions generated at runtime without world-age issues or overhead
https://docs.sciml.ai/RuntimeGeneratedFunctions/stable/
MIT License
100 stars 14 forks source link

`id` variable is set to a NTuple of UInt inside of the function body #34

Open 0x0f0f0f opened 3 years ago

0x0f0f0f commented 3 years ago
julia> ex = :(x -> id)
:(x->begin
          #= REPL[19]:1 =#
          id
      end)

julia> f = @RuntimeGeneratedFunction ex
RuntimeGeneratedFunction(#=in Main=#, #=using Main=#, :((x,)->begin
          #= REPL[19]:1 =#
          id
      end))

julia> f(2)
(0x57d4f9a8, 0xe781ae52, 0x562c7637, 0x4ebd110f, 0x3a467d2e)
YingboMa commented 3 years ago

oof, good call.