My first macro in Julia
A beginner-friendly tutorial explaining what macros are in Julia, how they differ from functions, and guidance on when to use them.
Mosè Giordano shares insights on Julia programming, covering performance, macros, array handling, testing, documentation, and practical package development.
14 articles from this blog
A beginner-friendly tutorial explaining what macros are in Julia, how they differ from functions, and guidance on when to use them.
Addresses common misconceptions about Julia's performance, explaining its JIT compilation, startup time, and best practices for optimal speed.
A technical exploration of multiple ways to access a single element from a 1x1 array in Julia, including performance benchmarks.
Analysis of documentation, testing, and CI adoption in Julia packages from the General registry, using a custom tool.
Introduces RandomBasedArrays.jl, a Julia package that uses random starting indices for arrays to sidestep the 0 vs. 1-based indexing debate.
Explores how multiple dispatch in Julia enables mathematically correct code, using complex number division as a key example.
Explains how to dereference pointers and access C library data in Julia using functions like unsafe_load and unsafe_wrap.
Compares the Julia do-block and Python with statement, explaining their different purposes in resource management and function passing.
Cosmology.jl v0.5.0 now integrates with Unitful.jl, adding physical units to calculations and enabling uncertainty propagation with Measurements.jl.
Introducing AstroImages.jl, a Julia package for visualizing astronomical images from FITS files.
Explores how assignment expressions in Julia return a value, similar to C, and discusses its uses and potential pitfalls.
Explains the Bailey-Borwein-Plouffe formula for computing hexadecimal digits of π and provides a Julia implementation.
A technical tutorial on using the Julia programming language and AstroLib.jl to calculate and plot the analemma, the figure-8 path of the Sun in the sky.
A tutorial on implementing the classic Rock-Paper-Scissors game in under 10 lines of Julia code, showcasing multiple dispatch.