Author Topic: Julia Language  (Read 694 times)

jbk

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Julia Language
« on: 20. January 2016, 02:04:48 »
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: 20. August 2016, 22:00:00 »
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: 22. August 2016, 23:09:54 »
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: 25. August 2016, 20:27:15 »
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: 25. August 2016, 20:30:19 by Tomaaz »

Aurel

  • Regular Member
  • Sr. Member
  • *
  • Posts: 259
    • View Profile
Re: Julia Language
« Reply #4 on: 25. August 2016, 20:40:03 »
..good to know
jebi ga Julija  ;D

Richey

  • Full Member
  • ***
  • Posts: 132
    • View Profile
Re: Julia Language
« Reply #5 on: 13. September 2016, 07:45:08 »
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: 17. September 2016, 17:55:48 »
Julia enters the TIOBE  ;) top 50.

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

n00b

  • Newcomer
  • *
  • Posts: 44
    • View Profile
Re: Julia Language
« Reply #7 on: 21. September 2016, 19:35:34 »
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: 21. September 2016, 20:04:33 »
Hey, n00b. On what system did you try Julia? Did you experience the problem with start time?

n00b

  • Newcomer
  • *
  • Posts: 44
    • View Profile
Re: Julia Language
« Reply #9 on: 21. September 2016, 21:18:49 »
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.