Julia: A Language for Data Science, Visualization, and Machine Learning
https://julialang.org/| Installer Source| Releases (json) (tab)
Julia: A Language for Data Science, Visualization, and Machine Learning
https://julialang.org/| Installer Source| Releases (json) (tab)
To update or switch versions, run webi julia@stable
(or @v1.10
, @beta
,
etc).
Julia is a programming language for Data Science - a far better alternative to (or plugin for) Python when performance matters.
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.local/opt/julia/
Try out the REPL by coping and pasting the code below (it'll print some nice ASCII art to the console):
julia -i
function mandelbrot(a)
z = 0
for i=1:50
z = z^2 + a
end
return z
end
for y=1.0:-0.05:-1.0
for x=-2.0:0.0315:0.5
abs(mandelbrot(complex(x, y))) < 2 ? print("*") : print(" ")
end
println()
end
Or write the program to ./mandelbrot.jl
and run it:
julia ./mandelbrot.jl
Here's an example project that you can build:
git clone --depth=1 https://github.com/JuliaLang/PackageCompiler.jl ./PackageCompiler
pushd ./PackageCompiler/examples
julia -q --project
using PackageCompiler
create_app("MyApp", "MyAppCompiled")
exit()
./MyAppCompiled/bin/MyApp foo bar --julia-args -t4
See also:
Open the Julia REPL and add LanguageServer
:
julia -i
using Pkg
Pkg.add("LanguageServer")
Pkg.add("SymbolServer")
You'll need to reinstall if you switch environments.
julia-vim
adds support for:
%
mkdir -p ~/.vim/pack/plugins/start
git clone https://github.com/JuliaEditorSupport/julia-vim.git \
~/.vim/pack/plugins/start/julia-vim
Usage Examples:
\alpha<tab>
will produce α
\alpha
and hitting the tab
key)%
on an end
will take you to the function
or for
, etc