Hi

211 views
Skip to first unread message

clingo...@gmail.com

unread,
Apr 6, 2015, 12:57:48 PM4/6/15
to juli...@googlegroups.com
Hi Guys,

I was looking at the runtime of Julia, But I can't figure where and when the decision of which code to interpret and which code to codegen?

Thanks

clingo...@gmail.com

unread,
Apr 6, 2015, 1:29:40 PM4/6/15
to juli...@googlegroups.com
I think I have found it:

if (ewc) {
        thunk = (jl_value_t*)jl_new_closure(NULL, (jl_value_t*)jl_null, thk);
        if (!jl_in_inference) {
            jl_type_infer(thk, jl_tuple_type, thk);
        }
        result = jl_apply((jl_function_t*)thunk, NULL, 0);
    }

First of all, is this correct? If so
Would anyone mind explaining about jl_new_closure and thunks?




6 Nisan 2015 Pazartesi 09:57:48 UTC-7 tarihinde clingo...@gmail.com yazdı:
Reply all
Reply to author
Forward
0 new messages