Subscribe:   RSS icon   twitter icon

Julia

This is a list of resources and articles about the Julia language.

Jump to: DocumentationLibrariesOther

News

3/4/2024 22:49 Mastering Efficient Array Operations with StaticArrays.jl in Julia: Good tutorial with benchmarks.
21/2/2024 7:12 New stack traces in Pluto: more colorful, less intimidating!: I recently wrote about the new features in Julia v1.10, including the friendlier, more useful stacktraces in the REPL. Now the amazing Fons van der Plas has released a new version of Pluto, the reactive computational notebook for Julia, with powerful and helpful stacktraces inspired by the new REPL improvements—they take error reporting to a new level.
5/1/2024 19:57 Comparing the Performance of Julia on CPUs versus GPUs and Julia-MPI versus Fortran-MPI: a case study with MPAS-Ocean (Version 7.1): “In the end, we were impressed by our experience with Julia. It did fulfill the promise of fast and convenient prototyping, with the ability to eventually run at high speeds on multiple high-performance architectures – after some effort and lessons learned by the developers.”
3/1/2024 17:23 Julia v1.10 Release Notes: Excellent progress, especially in package loading times. Watch for my LWN writeup, coming soon.
03/01/2024 14:40 Julia v1.10: Performance, a new parser, and more: My article about the Julia v1.10 release appeared today in LWN.
19/11/2023 7:30 Julia as a unifying end-to-end workflow language on the Frontier exascale system: “Julia emerges as a compelling high-performance and high-productivity workflow composition language, as measured on the fastest supercomputer in the world.”
25/10/2023 12:32 Practical Julia: My introduction to the best language for scientific computing.
25/7/2023 10:11 JuliaCon 2023 Live Streaming: Some of the program of this year’s Julia conference will be streamed on YouTube, free to watch.
16/7/2023 8:18 My approach to named tuples in Julia: “I find it more natural to think of a NamedTuple as an anonymous struct, that optionally can be integer-indexed to get access to its components.”
15/7/2023 11:26 PSA: Thread-local state is no longer recommended: “Any code that relies on a specific threadid staying constant, or on a constant number of threads during execution, is bound to be incorrect.”
7/6/2023 8:28 Comparison of plotting packages: Newcomers (and others!) using Julia can be bewildered by the profusion of options for making plots and visualizations. Chris Rackauckas provides a useful summary of the pros and cons of all the major packages.
7/6/2023 7:59 Potential of the Julia programming language for high energy physics computing: “In this paper the applicability of using the Julia language for HEP research is explored, covering the different aspects that are important for HEP code development: runtime performance, handling of large projects, interface with legacy code, distributed computing, training, and ease of programming. The study shows that the HEP community would benefit from a large scale adoption of this programming language.”
7/6/2023 7:35 DynamicQuantities.jl: Type stable units in Julia: Along the lines of Unitful, but storing dimensions as values rather than as parametric types. This leads to greater efficiency in many circumstances.
7/6/2023 7:07 Filtering grouped data frames in DataFrames.jl: A helpful tutorial by Bogumił Kamiński.
29/5/2023 20:58 Julia 1.9 Brings More Speed and Convenience: My article about the goodies in Julia v.1.9 appeared today in LWN.
16/5/2023 8:00 Threadpools in Julia: My favorite new feature in Julia v.1.9: spawn as many tasks as you want, but keep a thread reserved for the REPL, so it continues to respond instantly.
12/5/2023 6:31 Extreme Multi-Threading: C++ and Julia 1.9 Integration: With Julia v.1.9 we can call Julia libraries from multi-threaded C++ programs, apparently. This article shows you how.
10/5/2023 7:00 Julia 1.9 Released: Julia v.1.9 is now officially released. I’ve been enjoying the 1.9 series since the beta releases. The new version offers significant performance improvements and is even more convenient for development.
14/4/2023 10:45 Inviscid and incompressible Navier-Stokes equations in 2D implemented in Julia and compiled to WASM: This is quite wonderful and amazing: a Julia fluid solver compiled to WASM and running in the browser. Users can create flow boundaries with the mouse.

Documentation and tutorials

Particle Simulations with Julia: Excellent tutorial and demonstration available as a web page and as a Pluto notebook. Contains fascinating animations of error propagation in a running simulation.
Functional One-Liners in Julia: Introduction to currying used in conjunction with broadcasting, with examples.
Pkg.jl and Julia Environments for Beginners: Exceptionally clear tutorial about Julia’s package manager.
Bayesian Estimation of Differential Equations: Tutorials showing how to use Turing.jl to estimate parameters of ODEs from data.
Successful Static Compilation of Julia Code for use in Production: “a successful experiment to statically compile a piece of Julia code into a small .so library on Linux, which is then loaded from Python and used in training of a deep learning model.”
What is a Symbol in Julia?: Stefan Karpinski’s masterful explanation of what a Symbol really is.
Setting up your Julia session: A tutorial about the Julia startup file.
Storing vectors of vectors in DataFrames.jl: Extremely useful tutorial on preventing vectors from being expanded into multiple rows when applying transformations to dataframes.
Triangle frenzy: A case study using CUDA for some graphics calculations.
DataFrame vs NamedTuple: a comparison: Informative comparison of the use of dataframes vs. named tuples to represent tables in Julia, with interesting examples of fast and slow code.
Learning to create a vector in Julia: Two ways to turn a multidimensional array into a Vector in Julia: one that makes a copy and one that uses an alias.
GPU Programming: When, Why and How?: This course on using GPUs in general computing contains a section (“High-level language support”) with an overview of Julia and Python.
Ref ref: “Today I want to discuss the Ref type defined in Base Julia. The reason is that it is often used in practice, but it is not immediately obvious what the design behind Ref is.”
Using Julia on the HPC: A survey of simple examples of using Julia in HPC contexts.
Practical guide: how to contribute to open source Julia projects: This is helpful for those interested in making their first contribution to the ecosystem.
Julia Data Science: A free and open-source book in several formats, including a paperback on amazon. Confined mainly to a brief language introduction, dataframes, and plotting with Mackie.
Julia Books: A list from Julia headquarters of works available now or on the way.
Parallel Computing and Scientific Machine Learning (SciML): Methods and Applications: “This book is a compilation of lecture notes from the MIT Course 18.337J/6.338J: Parallel Computing and Scientific Machine Learning…a live document, updating to continuously add the latest details on methods from the field of scientific machine learning and the latest techniques for high-performance computing.”
Metadata in DataFrames.jl: why and how?: Valuable and detailed introduction to this useful feature of DataFrames.jl, by one of its developers and the author of Julia for Data Analysis.
Julia macros for beginners: A clear introduction.
Type-Dispatch Design: Post Object-Oriented Programming for Julia: “I am going to try to explain in detail the type-dispatch design which is used in Julian software architectures. It’s modeled after the design of many different packages and Julia Base […] Julia is built around types. Software architectures in Julia are built around good use of the type system. This makes it easy to build generic code which works over a large range of types and gets good performance. The result is high-performance code that has many features. In fact, with generic typing, your code may have more features than you know of! The purpose of this tutorial is to introduce the multiple dispatch designs that allow this to happen.”
Python Criticism from a Julia Perspective: Contains, among other interesting nuggets, a description of a Julia REPL facility for discovering a list of methods that can act on a given combination of types (I had no idea).
PlutoUI Demonstration: A live demonstration of PlutoUI controls, served with the PlutoSliderServer.
My understanding of object property access in Julia: Clarifies the use of fields and properties of composite objects.
Julia: The Greeks and Math operators at the command line via LaTeX: If you haven’t tried Julia, this may whet your appetite.
Differentiation for Hackers: “The goal of this handbook is to demystify algorithmic differentiation, the tool that underlies modern machine learning.”
Guide for writing shell scripts in Julia: From 2019, but may still be useful.
Fundamentals of Numerical Computation: “This is a revision of the textbook Fundamentals of Numerical Computation by Tobin A. Driscoll and Richard J. Braun. The book was originally written for MATLAB, but this resource has been adapted to suit Julia.” Text available free online.
What does it mean that a data frame is a collection of rows?: The main developer of Dataframes.jl explains its interface in this illuminating article.

Libraries

Here’s why quantum computing could be the big break for the Julia Language: Introducing Yao.jl, a Julia library for quantum computing.
Pandoc.jl: Pandoc Interface and Types in Julia: Run Pandoc and write Pandoc filters in Julia. Uses the json serialization, so won’t be as fast as Lua filters.
PureFun.jl: Immutable containers for Julia.
Introducing Braket.jl - Quantum Computing with Julia: “Braket.jl is a new, experimental package that lets you build quantum circuits and programs in Julia and run them on Amazon Braket.”
Merly.jl: Micro framework for web programming in Julia: Seems similar to Oxygen, but hasn’t been updated since about 2020.
Julia library for stylized terminal output: Create beautiful output in the terminal.
Strided.jl: Make broadcast operations faster.
Stipple: A reactive user interface library for use with Genie. Standard use is over a websocket, somewhat similarly to Phoenix Liveview. Seems quite useful for building interactive web applications with Julia, but Unfortunately undocumented, like most Julia packages.
Microstructure.jl: “Microstructure.jl is a Julia package for fast and probabilistic microstructure imaging… under active development…ocuses on tissue microstructure estimation.”
JuliaSymbolics: “JuliaSymbolics is the Julia organization dedicated to building a fully-featured and high performance Computer Algebra System (CAS) for the Julia programming language.”
Books.jl: Creates books with embedded output from Julia code, using Pandoc.
TikzGraphs: Exploiting the superb TikZ system from Julia to create high-quality graph diagrams (“graph” in the node-edge sense) conveniently.
WaterLily.jl: Fast and simple fluid simulator in Julia: “WaterLily.jl solves the unsteady incompressible 2D or 3D Navier-Stokes equations on a Cartesian grid. The pressure Poisson equation is solved with a geometric multigrid method. Solid boundaries are modelled using the Boundary Data Immersion Method.”
PairPlots.jl: Julia package for making corner plots, the statistical visualization that lets you compare a collection of distributions all at once.
ImplicitPlots.jl: Julia package for the plotting of plane curves and surfaces: “Plot plane curves defined by an implicit function f(x,y)=0.”
ThreadPools: A set of macros for concurrency. Last updated around 2021; some of its function is provided by the new interactive task feature in Julia 1.9.
EmacsVterm.jl: “Better integration of Julia REPL with Emacs vterm terminal.”
JuliaHEP: High energy physics packages. Includes compatibility layers and partial replacements for ROOT.
Oxygen.jl: A breath of fresh air for programming web apps in Julia: A micro-framework that provides routing and request/response handling.
FunSQL.jl: Julia library for compositional construction of SQL queries’
Changing Physics education with Julia: Interactivity in physics education; why Julia is an ideal language for physics education; applied to teaching dynamical systems and the DynamicalSystems library, of which the author is the maintainer, and his textbook.
JuliaAstroSim/AstroNbodySim.jl: “Unitful and differentiable gravitational N-body simulation code in Julia”.
PlutoSliderServer.jl: Web server to run just the @bind parts of a Pluto.jl notebook.
GridWorlds.jl: Help! I’m lost in the flatland!: “A package for creating grid world environments for reinforcement learning in Julia.“ Juliacon presentation here.
JuliaFolds/Folds.jl: A unified interface for sequential, threaded, and distributed fold: Powerful, convenient, does what it’s supposed to do.
PlanetOrbits.jl: Tools for solving and displaying Keplerian orbits for exoplanets.: “The primary use case is mapping Keplerian orbital elements into Cartesian coordinates at different times. A Plots.jl recipe is included for easily plotting orbits.”
My Julia Book is in Libraries: giving me a warm feeling.
Yao: “Welcome to Yao, a Flexible, Extensible, Efficient Framework for Quantum Algorithm Design. Yao (幺) is the Chinese character for normalized but not orthogonal.”
TensorCast.jl: It slices, it dices, it splices!: “This package lets you work with multi-dimensional arrays in index notation, by defining a few macros which translate this to broadcasting, permuting, and reducing operations.”
KittyTerminalImages: If you use the superb Kitty terminal emulator, this package is for you. It lets Julia display images directly in the terminal, using the Kitty protocol (not sixel, etc.).
SuiteSparseGraphBLAS.jl: An Introduction: “This blog post serves a couple purposes. The first is to introduce Julia users to GraphBLAS, and the features and performance of the SuiteSparseGraphBLAS.jl package. The second is an update on new features in versions 0.6 and 0.7 as well as a roadmap for the near future.”
Pluto: The computational notebook for Julia.

Other

Concurrency in Julia: An overview of the easiest-to-approach facilities for parallel and concurrent computation in Julia, with a demonstration of the effects of a new feature: thread migration. Discussed on Hacker News.
The best Julia programming books going into 2023: Description of books the author has used plus notes about others, including books arriving in the near future.
Julia in the Wild: Examples: Case studies of Julia use in science, engineering, industry, and finance.
Fermi.jl: A Modern Design for Quantum Chemistry: “we introduce the quantum chemistry package Fermi.jl, which contains the first implementations of post-Hartree–Fock methods written in Julia. Its design makes use of many Julia core features, including multiple dispatch, metaprogramming, and interactive usage. Fermi.jl is a modular package, where new methods and implementations can be easily added to the existing code. Furthermore, it is designed to maximize code reusability by relying on general functions with specialized methods for particular cases.”
Julia for Biologists: “Major computational challenges exist in relation to the collection, curation, processing and analysis of large genomic and imaging datasets, as well as the simulation of larger and more realistic models in systems biology. Here we discuss how a relative newcomer among programming languages—Julia—is poised to meet the current and emerging demands in the computational biosciences and beyond. Speed, flexibility, a thriving package ecosystem and readability are major factors that make high-performance computing and data analysis available to an unprecedented degree. We highlight how Julia’s design is already enabling new ways of analyzing biological data and systems, and we provide a list of resources that can facilitate the transition into Julian computing.”
Julia: Project Workflow: Good ideas about organizing Julia projects, including how to incorporate Pluto notebooks.
What’s great about Julia?: The other side of the coin revealed by the author of “What’s bad about Julia?”.
What’s coming in Julia 1.7: New features on the way.
A Look at Communication-Intensive Performance in Julia: “if programmers properly balance the computation to communication ratio, Julia can actually outperform C/MPI in a cluster computing environment.”
Meshes.jl: Computational geometry and meshing algorithms in Julia
From Common Lisp to Julia: A personal journey from CL to Julia from a graphics and games programmer. Interesting observations, badly in need of editing.
Macroeconomic Modeling: “The Federal Reserve Bank of New York publishes its trademark Dynamic Stochastic General Equilibrium models in Julia.”
2021_FortranCon Benchmarks: Comparison of of code and performance between Julia and Fortran on a 2D particle simulation.
Julia 1.8 released: I’ve been using the betas for a while and they’ve been stable and responsive. The highlights in 1.8 are typed non-constant globals and improvements in precompilation, both significant for all users.
Bash shell completions for Julia: Bash shell completions contextually finish what you’re typing when you hit the tab key. This project tells the shell about Julia commands, to save you keystrokes.
Julia’s Big Problem With Namespace: Points out how using two modules that export the same names leads to a naming conflict.
Struct Destructuring in Julia: The soon-to-arrive Julia v.1.7 has a new destructuring syntax for structs. I take a look at what it’s good for.
JuliaDiff: Mainly a big list of differentiation tools in Julia.
Nonlinear Dynamics: “A Concise Introduction Interlaced with Code”.
Digging into Julia’s package system: How Julia’s excellent package system eases development and code sharing.
Solving one based indexing: Finally, a solution to the non-problem of 1-based indexing in Julia that should satisfy everybody.
Automated Code Optimization with E-Graphs: “Can programmers implement their own high-level compiler optimizations for their domain-specific scientific programs, without the requirement of them being compiler experts at all? […] can symbolic mathematics do high-level compiler optimizations or vice-versa?”
Julia REPL ↓ trick: Stefan Karpinski reveals a secret superpower in plain sight: “After evaluating a command from history in the REPL, you can press ↓ and get the next command after that one, so you can replay a sequence of commands by finding the first one and doing ↓⏎ repeatedly”.
Pluto 0.17.6 Announced: The latest version of Pluto, the computational notebook for Julia, has some great new features, including a dark mode and the ability to print logging messages from running code in the notebook.
Generalizing Scientific Machine Learning and Differentiable Simulation Beyond Continuous models: Data-driven Physical Simulations Seminar Series talk by Chris Rackauckas.
The Essential Tools of Scientific Machine Learning: An overview of the state of packages and libraries for scientific ML as of 2019, not confined to Julia.
Femtolisp: a lightweight, robust, scheme-like lisp implementation: The Julia parser up to Julia v1.10. “This project began with an attempt to write the fastest lisp interpreter I could in under 1000 lines of C.”
Switching from Common Lisp to Julia: “A sufficiently rich parametric type system with multiple dispatch integrated into the language and supported by a JIT compiler is the secret weapon of Julia” and the core reason for the author’s adoption of the language for scientific computing.
State of machine learning in Julia: …as of Jan, 2022.
Switching from Common Lisp to Julia: Although written in the pre-1.0 Julia era, the author penetrates into the core of Julia’s uniqueness: “A sufficiently rich parametric type system with multiple dispatch integrated into the language and supported by a JIT compiler is the secret weapon of Julia.” An informative discussion of scientific computing in CL and Julia.
Bridging HPC Communities through the Julia Programming Language: “The Julia programming language has evolved into a modern alternative to fill existing gaps in scientific computing and data science applications.”
Julia: The Goldilocks language: Contains some interesting details about the origins and history of Julia, along with some odd remarks (“elements of the high-level functionality of MATLAB and R with the speed of C or Ruby”).
Why not: from Common Lisp to Julia: Somewhat of a rebuttal to this.
Review of Interactive Visualization and Plotting with Julia by Zea: A knowledgeable author poorly served by a careless publisher.
Jack Dongarra, who made supercomputers usable, awarded 2021 ACM Turing prize: The creative force behind LINPACK and BLAS says that Julia is a good candidate for the next computing paradigm.
Composability in Julia: Implementing Deep Equilibrium Models via Neural ODEs: “The SciML Common Interface defines a complete set of equation solving techniques, from differential equations and optimization to nonlinear solves and integration (quadrature), in a way that is made to naturally mix with machine learning. In this sense, there is no difference between the optimized libraries being used for physical modeling and the techniques used in machine learning: in the composable ecosystem of Julia, these are one and the same.[…] With a composable package ecosystem, the only thing holding you back is the ability to figure out new ways to compose the parts.”
C. Brenhin Keller: An assistant Professor of Earth Sciences at Dartmouth using Julia in research and teaching. Many links to Julia Earth science resources.
Oceananigans.jl: Fast and friendly geophysical fluid dynamics on GPUs: “Oceananigans.jl is a fast and friendly software package for the numerical simulation of incompressible, stratified, rotating fluid flows on CPUs and GPUs. Oceananigans.jl is fast and flexible enough for research yet simple enough for students and first-time programmers. Oceananigans.jl is being developed as part of the Climate Modeling Alliance project for the simulation of small-scale ocean physics at high-resolution that affect the evolution of Earth’s climate.”
Why Julia is the most suitable language for science: Engaging presentation by the maintainer of the Julia dynamical systems package.
Magnification Shape Styling in Lens Insets in Julia: In the current version of Plots you can style the lines with which the magnification shape is drawn when making lens insets.
Modern Julia Workflows: “Our purpose is to gather the hidden tips and tricks of Julia development, and make them easily accessible to beginners. We do not cover syntax, and assume that the reader is familiar enough with the basics of Julia. Instead, we focus on all the tools that can make the coding experience more pleasant and efficient.”
What’s the deal with Julia binary sizes?: Traces the huge decreases in the sizes of compiled binaries.
Comparing Julia to Performance Portable Parallel Programming Models for HPC: “Julia programs enjoys comparable performance to native C/C++ solutions.[…] Julia gets the unique opportunity to provide best-in-class performance on some of the latest hardware platforms.”
Julia v1.8 Release Notes: Julia 1.8.0 is in beta. These release notes include many welcome enhancements. Several of the new features relate to the creation of sysimages, and appear to make it easier to produce smaller compiled code.

Share with Facebook Share with Twitter Share with Reddit Share with Slashdot
▶ Comment
lee-phillips.org is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com.
Quotilizer ... loading ...

Tenuously related:

The best tool for CVs with publication lists.