/HelloJulia.jl

Primary LanguageJupyter NotebookMIT LicenseMIT

HelloJulia.jl

Resources used by the author for a short Introduction to Julia workshop.

This page contains useful resources for starting out with Julia.

To run demos presented in the workshop live, click here.

Acknowledgements. Some slides used in the presentation for this workshop, and included here, are based on material contributed by Oliver Schultz and Sam Urmy, which is gratefully acknowledged. Oscar Smith, Ian Butterworth, and Carsten Bauer helped with the just-in-time compilation demonstration.

Is Julia for me?

First steps

See here on how to install Julia on your computer.

Advanced setup

Once you are familiar with basic interaction using the REPL, you will want to:

  • Hook your Julia installation up with an editor or integrated development environment (IDE) so you can efficiently edit, run and debug longer julia scripts. See these options (scroll down to "Editors and IDEs" and "Essential Tools"). If you don't have an existing preference I recommend VS Code. I prefer emacs, but it is much older and has a steeper learning curve.

  • Or, interact with Julia using a notebook. Here you have two options:

    • Juptyer notebooks (used also for R and python) - follow these instructions.
    • Pluto "reactive" notebooks (specific to Julia)

Getting help

Popular forums for asking your julia questions are Julia Discourse and the Julia Slack channel. Also useful:

  • Julia cheatsheet.

  • Get help on a command with juia> ?some_command at the REPL or @doc ?some_command in a notebook.

  • apropos("invert") seaches for objects with "invert" in the doc string.

Learning Julia

If you have little or no prior programming experience

Many people use R, python or MATLAB packages with a minimum of actual programming knowledge and the same applies to Julia. However, to start deepening your Julia programming knowledge, you could try some of the resources at this Julia org page (e.g., juliaAcademy). I have also heard that the book Think Julia is a pretty good ab initio introduction to programming.

If you have moderate to advanced programming experience elsewhere

My strong recommendation would be to read Aaron Christinson's tutorial Dispatching Design Patterns which is nicely compressed in his half-hour video presentation.

These points of difference between Julia and other popular languages may also be useful.

Serious Julia developers will want a copy of Hands-On Design Patterns and Best Julia Practices with Julia by Tom Kwong. This is the book I wished existed when I started. I learned Julia from the manual which is, however, excellent.