Introducing Julia

From Wikibooks, open books for an open world
Jump to: navigation, search
« Introducing Julia
Contents
»
Getting started

Introduction[edit]

Julia is a recent arrival to the world of programming languages, and tutorials and introductory texts are now starting to appear.

The official Julia documentation is pretty good (although it needs more examples!), but it's aimed primarily at the early adopters, developers, and more experienced programmers. Once you've learned the basics of the language, you should refer to it as often as possible. This wikibook is intended more for the less experienced and occasional programmer. For more learning materials, including links to books, videos, articles/blogs and notebooks, refer to the learning section at Julia's official site.

The Julia community has established a good ethos of encouraging participation in the development of the language on github. The advantage of this wikibook is that it's made and edited by the Julia community – you can edit anything at any time. If you find something that's wrong, or unclear, feel free to correct it, or add examples. (Your first few edits are reviewed, just in case you have less than good intentions. And, as with the Wikipedia, you should expect your writing to be edited by others!) The focus should be largely on the new user, rather than the computer science expert.

This wikibook is currently being updated to refer to the latest version of Julia, version 0.6 (released May 2017), from Julia version 0.5 (released September 2016).

Outline[edit]

Getting started
some introductory words, installation, paths, and various bits of magic
The REPL
Using the REPL; Julia as a calculator; getting help
Arrays and tuples
Storing data – Arrays and tuples; the core of Julia and scientific programming
Types
a quick introduction to types, the way to organize your code and the secret to making your programs fast
Controlling the flow
loops and decisions; ifs and elses
Functions
functions and methods; multiple dispatch
Dictionaries and sets
storing data in dictionaries and sets
Strings and characters
working with strings
Working with text files
reading data from text files; elementary file processing
Working with dates and times
working with date and time functions
Plotting
Plotting; an introduction to some of the plotting packages
Metaprogramming
metaprogramming, expressions and macros
Modules and packages
how Julia code is organized, and should be developed
DataFrames
data frames; organizing data in tables

External links[edit]