Hidden code

@rohqhq Your question is abut whether or not Julia is a compiled language. Others have given some good answers. So if I may would it be OK to say something else?
For learning, you might be interested that we can actually see what code Julia is creating by using the macros called @code_llvm and @code_native

@code_llvm prints the llvm compiler bitcodes which Julia generates, for example

julia> f(x)=x^2
f (generic function with 1 method)

julia> @code_llvm f(2)
; Function f
; Location: REPL[1]:1
; Function Attrs: uwtable
define i64 @julia_f_35333(i64) #0 {
top:
; Function literal_pow; {
; Location: intfuncs.jl:243
; Function *; {
; Location: int.jl:54
  %1 = mul i64 %0, %0
;}}
  ret i64 %1
}
2 Likes