Julia – Start programming with julia language.

By | 10/08/2018

Starting at 08 Aug 2018 the new version 1.0 of Julia official page come with this intro:
The much anticipated 1.0 release of Julia is the culmination of nearly a decade of work to build a language for greedy programmers. JuliaCon2018 celebrated the event with a reception where the community officially set the version to 1.0.0 together.

Julia was first publicly announced with a number of strong demands on the language:

We want a language that’s open source, with a liberal license. We want the speed of C with the dynamism of Ruby. We want a language that’s homoiconic, with true macros like Lisp, but with obvious, familiar mathematical notation like Matlab. We want something as usable for general programming as Python, as easy for statistics as R, as natural for string processing as Perl, as powerful for linear algebra as Matlab, as good at gluing programs together as the shell. Something that is dirt simple to learn, yet keeps the most serious hackers happy. We want it interactive and we want it compiled.

some advantages of Julia over comparable systems include:
Free and open source (MIT licensed)
User-defined types are as fast and compact as built-ins
No need to vectorize code for performance; devectorized code is fast
Designed for parallelism and distributed computation
Lightweight “green” threading (coroutines)
Unobtrusive yet powerful type system
Elegant and extensible conversions and promotions for numeric and other types
Efficient support for Unicode, including but not limited to UTF-8
Call C functions directly (no wrappers or special APIs needed)
Powerful shell-like capabilities for managing other processes
Lisp-like macros and other metaprogramming facilities

Today I install it and works great.
I tested some examples and I read a part of the documentation to see how this working.
First, this is the Julia folder:

The bin folder come with many dll files and this applications: 7z, julia and BusyBox .
The BusyBox is a multi-call binary that combines many common Unix utilities into a single executable.
Start the julia shell and use this commands:

The variable ans is bound to the value of the last evaluated expression whether it .
Use the ] to use packages and Ctr+C to exit to julia shell.
You can run this commands to update , build and add packages:

Use ? to see help of packages:

There’s a big list of official packages available at pkg.julialang.org.
Let’s see one example with Calculus package:
Using the derivative() function will evaluate the numerical derivative at a specific point.
This examples works with derivative and higher order derivatives for f(x) = sin(x) and f(x) = sin(x)*2x :

You can see many examples at juliabyexample.helpmanual.io website .

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.