1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/julia.md
Steve Kelly a304be4f29
julia: switch example from parallel to threaded (#12648)
Switch example startup from parallel mode (-p) to multithreaded mode (-t) to align with the latest practices, which should lead to better performance.
2024-04-16 10:54:27 +00:00

724 B

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):

julia

  • Execute 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 '{{julia_code}}'

  • Evaluate a string of Julia code, passing arguments to it:

julia -e '{{for x in ARGS; println(x); end}}' {{arguments}}

  • Evaluate an expression and print the result:

julia -E '{{(1 - cos(pi/4))/2}}'

  • Start Julia in multithreaded mode, using N threads:

julia -t {{N}}