Skip to content

Instantly share code, notes, and snippets.

View IanButterworth's full-sized avatar

Ian Butterworth IanButterworth

View GitHub Profile
@IanButterworth
IanButterworth / ai_julia.md
Last active October 19, 2026 14:35
What AI thinks about julia

Summary (October 2026 update)

The same cold prompt, with no reading or research allowed, was put to the current models on 2026-10-19: Claude Fable 5.1, Claude Opus 5.5 and GPT-6.1-sol (Codex CLI, reasoning effort "none"). The August round (Fable 5, Opus 5, GPT-5.6-sol) is kept below for comparison.

Without doing any reading, review, searches etc. tell me what your impression is of julia as a programming language, and what your top things you'd want to see fixed, or any friction you think should be lower

What stayed the same. All six answers praise the same core: multiple dispatch, generic code that composes across packages nobody coordinated, and Pkg with artifacts/JLLs. The friction list is also the same set of themes: latency and invalidations, invisible performance cliffs, deployment and small binaries, informal interfaces, MethodError walls, and tooling depth.

What moved.

## unminified version of devtools/bundled/devtools-frontend/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js
import * as e from "../../models/heap_snapshot_model/heap_snapshot_model.js";
import * as t from "../../core/i18n/i18n.js";
import * as s from "../../core/platform/platform.js";
import * as n from "../../models/text_utils/text_utils.js";
class i {
#e;
#t;
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0-DEV.995 (2020-09-21)
_/ |\__'_|_|_|\__'_| | ib/compilecache_hide_stderr/05c2ec109e (fork: 2 commits, 0 days)
|__/ |
julia> import Pkg
32×6 DataFrames.DataFrame
│ Row │ cat │ testname │ units │ ref_res │ test_res │ factor │
│ │ String │ String │ String │ Any │ Any │ Any │
├─────┼─────────────┼───────────────────────────┼────────┼──────────────────────────────────────────┼──────────────────────────────────────────┼───────────┤
│ 1 │ info │ SysBenchVer │ │ 0.3.0 │ 0.3.0 │ Equal │
│ 2 │ info │ JuliaVer │ │ 1.4.1 │ 1.4.1 │ Equal │
│ 3 │ info │ OS │ │ Linux (x86_64-pc-linux-gnu) │ macOS (x86_64-apple-darwin18.7.0) │ Not Equal │
│ 4 │ info │ CPU │
julia> using Flux
-- max(Int32, Int32)
promote_type(Type{Float64}, Type{S} where S<:Integer)
promote_type(Type{Float64}, Type{S} where S<:Integer)
>> FixedPointNumbers.promote_rule(...) Tuple{typeof(Base.promote_rule), Type{T}, Type{Tf}} where Tf<:AbstractFloat where T<:(FixedPointNumbers.Normed{T, f} where f where T<:Unsigned)
promote_type(Type{UInt64}, Type{S} where S<:Unsigned)
_promote(UInt64, Unsigned)
promote(UInt64, Unsigned)
div(UInt64, Unsigned, Base.Rounding.RoundingMode{:ToZero})
rem(UInt64, Unsigned)
Last login: Sat May 2 12:51:45 on ttys006
ian@Ians-MacBook-Pro-4 julia % ./julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.5.0-DEV.698 (2020-04-28)
_/ |\__'_|_|_|\__'_| | mcpu/72a1fec695* (fork: 4 commits, 4 days)
|__/ |
(Tuple{typeof(CuArrays._functional),Bool}, 4260)
(Tuple{typeof(lock),CuArrays.var"#1#2"{Bool},ReentrantLock}, 4259)
(Tuple{CuArrays.var"#1#2"{Bool}}, 4255)
(Tuple{typeof(CuArrays.__configure__),Bool}, 4082)
(Tuple{typeof(lock),CUDAnative.var"#1#2"{Bool},ReentrantLock}, 3783)
(Tuple{CUDAnative.var"#1#2"{Bool}}, 3783)
(Tuple{typeof(CUDAnative.__runtime_init__)}, 3783)
(Tuple{typeof(CUDAnative.release)}, 3783)
(Tuple{typeof(CUDAnative.version)}, 3783)
(Tuple{typeof(CUDAnative.functional),Bool}, 3783)
This file has been truncated, but you can view the full file.
Overhead ╎ [+additional indent] Count File:Line; Function
=========================================================
1╎1 @Base/array.jl:656; _array_for(::Type{Any}, ::Core.SimpleVector, ::Core.Compiler.HasLength)
2╎2 @Base/array.jl:657; _array_for(::Type{Any}, ::Array{Any,1}, ::Core.Compiler.HasShape{1})
1╎1 @Base/array.jl:567; _collect(::Type{Int64}, ::Core.Compiler.Generator{Core.Compiler.Iterators.Filter{Core.Compiler.var"#259#266"{Core.Compiler.IdDict{Int64,Int64}},Array{Int64,1}},Core.Compiler.var"#258#265"{Int64,Core.Compiler.IdDict{Int64,Int64},Array{Int64,1}}}, ::Core.Compiler.SizeUnknown)
2╎2 @Base/array.jl:352; copy(::Array{Int32,1})
1╎1 @Base/array.jl:2371; filter(::Core.Compiler.var"#268#271"{Array{Int64,1}}, ::Array{Int64,1})
2╎2 @Base/array.jl:764; iterate(::Array{Any,1})
╎1 @Base/compiler/abstractinterpretation.jl:101; abstract_call_gf_by_type(::Any, ::Array{Any,1}, ::Any, ::Core.Compiler.InferenceState, ::Int64)
╎ 1 @Base/compiler/abstractinterpretation
This file has been truncated, but you can view the full file.
Overhead ╎ [+additional indent] Count File:Line; Function
=========================================================
1╎1 @Base/array.jl:657; _array_for(::Type{Any}, ::Array{Any,1}, ::Core.Compiler.HasShape{1})
1╎1 @Base/array.jl:313; copyto!(::Array{Tuple{Int64,Int64,Bool},1}, ::Int64, ::Array{Tuple{Int64,Int64,Bool},1}, ::Int64, ::Int64)
1╎1 @Base/array.jl:221; length(::Array{Any,1})
1╎1 @Base/array.jl:826; setindex!(::Array{Core.LineInfoNode,1}, ::Core.LineInfoNode, ::Int64)
1╎1 @Base/bitset.jl:196; _matched_map!(::Core.Compiler.var"#151#152", ::Array{UInt64,1}, ::Int64, ::Array{UInt64,1}, ::Int64, ::Bool, ::Bool)
2╎2 @Base/compiler/abstractinterpretation.jl:949; abstract_eval(::Any, ::Array{Any,1}, ::Core.Compiler.InferenceState)
1╎1 @Base/compiler/abstractinterpretation.jl:1283; typeinf_nocycle(::Core.Compiler.InferenceState)
1╎1 @Base/compiler/inferencestate.jl:116; Core.Compiler.InferenceState(::Core.Compiler.InferenceResult, ::Bool, ::Core.Compiler