June 2019
Intermediate to advanced
218 pages
5h 19m
English
The Julia compiler automatically inlines functions that it considers inline-worthy. The compiler implements a set of heuristics to determine what to inline. Essentially, this boils down to small functions with deterministic types.
As an example, let's take a look at a simple set of functions, f and g:
function f(x) a=x*5 b=a+3endg(x) = f(2*x)
We can then look at the processed Abstract Syntax Tree (AST) after ...
Read now
Unlock full access