Why the same computation can be 100× faster
end, broadcasting, structs. No performance yet.The red thread: estimating π by Monte-Carlo — carried from a sequential loop, to multithreading, to the GPU.
Julia as the test bench, Python as the point of comparison.
Note
The Python track is the common one — nobody falls behind. The Julia track is the deep dive (@btime, @code_native, @spawn, the GPU).
Performance doesn’t come from a magic language, but from understanding what the machine actually does: the cost of each operation, who shares what, and where the data travels.
Running through the whole course: type discovered at run time = slow; type known at compile time = fast.