Julia is an actively used programming language created in 2012. Julia is a high-level dynamic programming language designed to address the needs of high-performance numerical analysis and computational science, without the typical need of separate compilation to be fast, while also being effective for general-purpose programming, web use or as a specification language. Distinctive aspects of Julia's design include a type system with parametric polymorphism and types in a fully dynamic programming language and multiple dispatch as its core programming paradigm. It allows concurrent, parallel and distributed computing, and direct calling of C and Fortran libraries without glue code. Read more on Wikipedia...

8Years Old 17,638Users 121Jobs

Example code from the Hello World Collection:

# Hello world in Julia

println("Hello, World!")

Example code from Linguist:

#!/usr/bin/env julia

# From https://github.com/JoshCheek/language-sampler-for-fullpath/blob/b766dcdbd249ec63516f491390a75315e78cba95/julia/fullpath
help_screen = """
usage: fullpath *[relative-paths] [-c]

  Prints the fullpath of the paths
  If no paths are given as args, it will read them from stdin

  If there is only one path, the trailing newline is omitted

  The -c flag will copy the results into your pasteboard

help  = false
copy  = false
dir   = pwd()
paths = []

for arg = ARGS
  if arg == "-h" || arg == "--help"
    help = true
  elseif arg == "-c" || arg == "--copy"
    copy = true
  elseif arg != ""
    push!(paths, arg)

if help

function notempty(string)
  return !isempty(string)

if length(paths) == 0
  paths = filter(notempty, map(chomp, readlines()))

function print_paths(stream, paths)
  if length(paths) == 1
    path = paths[1]
    print(stream, "$dir/$path")
    for path = paths
      println(stream, "$dir/$path")

if copy
  read, write, process = readandwrite(`pbcopy`)
  print_paths(write, paths)

print_paths(STDOUT, paths)

Example code from Wikipedia:

julia> p(x) = 2x^2 + 1; f(x, y) = 1 + 2p(x)y
julia> println("Hello world!", " I'm on cloud ", f(0, 4), " as Julia supports recognizable syntax!")
Hello world! I'm on cloud 9 as Julia supports recognizable syntax!

Trending Repos

repo stars description
julia 23614 The Julia Language: A fresh approach to technical computing.
IJulia.jl 1780 Julia kernel for Jupyter

Last updated June 22nd, 2020

Edit Julia on GitHub