Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
Small language tweaks. Julia randmatstat is no longer as slow as it u…
Browse files Browse the repository at this point in the history
…sed to be.
  • Loading branch information
Viral B. Shah committed Nov 6, 2013
1 parent f4fbf7d commit 439eed4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.md
Expand Up @@ -84,10 +84,9 @@ To give a quick taste of what Julia looks like, here is the code used in the Man
std(v)/mean(v), std(w)/mean(w)
end

As you can see, the code is quite clear, and should feel familiar to anyone who has programmed in other mathematical languages.
Although C beats Julia in the random matrix statistics benchmark by a significant factor, consider how much simpler this code is than the [C implementation](https://github.com/JuliaLang/julia/blob/master/test/perf/micro/perf.c#L126).
There are more compiler optimizations planned that we hope will close this performance gap in the future.
By design, Julia allows you to range from low-level loop and vector code, up to a high-level programming style, sacrificing some performance, but gaining the ability to express complex algorithms easily.
The code above is quite clear, and should feel familiar to anyone who has programmed in other mathematical languages.
The Julia implementation of `randmatstat` is considerably simpler than the equivalent [C implementation](https://github.com/JuliaLang/julia/blob/master/test/perf/micro/perf.c#L126), without giving up much performance. Planned compiler optimizations will close this performance gap in the future.
By design, Julia allows you to range from tight low-level loops, up to a high-level programming style, while sacrificing some performance, but gaining the ability to express complex algorithms easily.
This continuous spectrum of programming levels is a hallmark of the Julia approach to programming and is very much an intentional feature of the language.

# Designed for Parallelism & Cloud Computing
Expand Down

0 comments on commit 439eed4

Please sign in to comment.