Author Topic: Julia Language  (Read 3276 times)

jbk

  • Guest
Julia Language
« on: January 20, 2016, 01:04:48 AM »
Julia ( http://julialang.org ) looks interesting, I have just installed it and am trying to familiarize myself with it, seems quite popular in academia.
you can test Julia in your web bowser, no need to install anything http://jupyter.org

Tomaaz

  • Guest
Re: Julia Language
« Reply #1 on: August 20, 2016, 08:00:00 PM »
Old good boring word count.  ;D

Code: [Select]
function main()
calosc = split(replace(lowercase(open(readall, "warandpeace.txt")), r"\W", " "), " ")
slowa = Dict()
wszystkie = 0; unikalne = 0
for x in calosc
if length(x) > 1 || x == "a" || x == "i"
if haskey(slowa, x)
slowa[x] += 1
else
slowa[x] = 1
unikalne += 1
end
wszystkie += 1
end
end
println("All words: ", wszystkie)
println("Unique words: ", unikalne)
plik = open("Words.txt", "w")
write(plik, *("All words: ", string(wszystkie), "\n"))
write(plik, *("Unique words: ", string(unikalne), "\n\n"))
for x in sort(collect(slowa), by = tuple -> last(tuple), rev=true)
write(plik, *(x[1], " - ", string(x[2]), "\n"))
end
close(plik)
end

main()

The code is compact and easy to understand. And it run fast. I really hope this language will take off.

Tomaaz

  • Guest
Re: Julia Language
« Reply #2 on: August 22, 2016, 09:09:54 PM »
At the moment there is 1084 packages for Julia. I've tried three of them (Gtk, Tk and Cairo) and all work without any problems on Linux. They are also very easy to use.

Tomaaz

  • Guest
Re: Julia Language
« Reply #3 on: August 25, 2016, 06:27:15 PM »
The only issue with Julia is that it takes a while to start. This is not a big problem when the program is written in pure Julia, as it takes up to several seconds to start. It becomes much worse when packages are used. Sometimes it took Julia more than 30 sec. to import the package and start the program. It's really annoying (at least for me). ;)
« Last Edit: August 25, 2016, 06:30:19 PM by Tomaaz »

Aurel

  • Guest
Re: Julia Language
« Reply #4 on: August 25, 2016, 06:40:03 PM »
..good to know
jebi ga Julija  ;D

Richly

  • Guest
Re: Julia Language
« Reply #5 on: September 13, 2016, 05:45:08 AM »
Julia enters the TIOBE  ;) top 50.

http://www.tiobe.com/tiobe-index/

BlitzMax enters the top 100.

Tomaaz

  • Guest
Re: Julia Language
« Reply #6 on: September 17, 2016, 03:55:48 PM »
Julia enters the TIOBE  ;) top 50.

I'm kind of surprised it wasn't already there... ???

n00b

  • Guest
Re: Julia Language
« Reply #7 on: September 21, 2016, 05:35:34 PM »
I looked at the julia language. It has a number of impressive features but I was honestly most impressed with unicode support for variable and function names. It seems to borrow a little from lua which is definitely not a bad thing as I have been using lua quite a bit lately. I also noticed that it has a package for SDL which is my preferred library for any type of graphics programming as well as a package for openGL. I am still playing around with it but I am impressed so far.

Tomaaz

  • Guest
Re: Julia Language
« Reply #8 on: September 21, 2016, 06:04:33 PM »
Hey, n00b. On what system did you try Julia? Did you experience the problem with start time?

n00b

  • Guest
Re: Julia Language
« Reply #9 on: September 21, 2016, 07:18:49 PM »
I am running Ubuntu 16.10. It didn't take that long to start for me but I haven't tried any external packages yet. I just tried some of the code in the manual to get a feel for the language. When I get home I will try to get a simple openGL demo running to see what my load times are like. I also want to see julia's potential for web development as the syntax is way easier to understand than python.