snippetbashTip
julia — A high-level, high-performance dynamic programming language for technical computing. More informatio
Viewed 0 times
dynamiccommandlevelclijuliahighperformance
Problem
How to use the
julia command: A high-level, high-performance dynamic programming language for technical computing. More information: <https://docs.julialang.org/en/v1/manual/getting-started/>.Solution
julia — A high-level, high-performance dynamic programming language for technical computing. More information: <https://docs.julialang.org/en/v1/manual/getting-started/>.Start a REPL (interactive shell):
juliaExecute a Julia program and exit:
julia {{program.jl}}Execute a Julia program that takes arguments:
julia {{program.jl}} {{arguments}}Evaluate a string containing Julia code:
julia {{[-e|--eval]}} '{{julia_code}}'Evaluate a string of Julia code, passing arguments to it:
julia {{[-e|--eval]}} '{{for x in ARGS; println(x); end}}' {{arguments}}Evaluate an expression and print the result:
julia {{[-E|--print]}} '{{(1 - cos(pi/4))/2}}'Start Julia in multithreaded mode, using
n threads:julia {{[-t|--threads]}} {{n}}Code Snippets
Start a REPL (interactive shell)
juliaExecute a Julia program and exit
julia {{program.jl}}Execute a Julia program that takes arguments
julia {{program.jl}} {{arguments}}Evaluate a string containing Julia code
julia {{[-e|--eval]}} '{{julia_code}}'Evaluate a string of Julia code, passing arguments to it
julia {{[-e|--eval]}} '{{for x in ARGS; println(x); end}}' {{arguments}}Context
tldr-pages: common/julia
Revisions (0)
No revisions yet.