Live data from Hacker News

Julia 1.0

julialang.org

11–20 of 446 posts

Re: Julia 1.0

#11
post #4
post #3

Wonderful! The one untold story is the more I use it the better the programmer I become. It is so easy to benchmark and profile code. It has a great community that will help you how to write high performance code. Congrats!

I really hope for Julia to become mainstream and maybe replace Python as the defacto lang for data science. Julia is an incredible language. Kudos to the team developing it.

This is my thinking as well. Python is nice to glue things, but doing high-performance math is not its strength. Things like GIL should be addressed long time ago, but it seems it is so fundamental to make things work in Python that I have big doubts that it will ever be addressed.

Re: Julia 1.0

#12
I use both R and Python in my work but when we move our models to production it's not real time, just a batch execution like once in a day. I'd like to hear from anyone who uses Julia in their actual job/work. Is it worth learning Julia, hoping to use it in work some day?

Re: Julia 1.0

#13
post #8

Apart from the library ecosystem, what attracts you to Julia?

Raw speed. Although julia has several nice features (multiple dynamic dispatch, macros), the raw speed obtained by annotating code with types is mind blowing. You can for the most part write like python, then annotate the slowest parts with types. It works really well.

You don't need to annotate types to get the speed.

Re: Julia 1.0

#15
post #8

Apart from the library ecosystem, what attracts you to Julia?

Raw speed. Although julia has several nice features (multiple dynamic dispatch, macros), the raw speed obtained by annotating code with types is mind blowing. You can for the most part write like python, then annotate the slowest parts with types. It works really well.

You don't even need to annotate things with types!

    > square(x) = x * x

    > @code_typed square(2.0)
    CodeInfo(
    1 1 ─ %1 = Base.mul_float(%%x, %%x)::Float64
    └──        return %1
    ) => Float64

    > @code_typed square(2)
    CodeInfo(
    1 1 ─ %1 = Base.mul_int(%%x, %%x)::Int64
    └──        return %1
    ) => Int64
Functions specialize automatically to the arguments you pass in.

Re: Julia 1.0

#16
post #8

Apart from the library ecosystem, what attracts you to Julia?

Raw speed. Although julia has several nice features (multiple dynamic dispatch, macros), the raw speed obtained by annotating code with types is mind blowing. You can for the most part write like python, then annotate the slowest parts with types. It works really well.

Syntax, semantics (multiple dispatch, type system), and community (so many clever people working together sharing expertise)

Re: Julia 1.0

#18

Apart from the library ecosystem, what attracts you to Julia?

Actually, sometimes you feel its ecosystem does not attract you since this is really a new language, however, as a package developer, when we decide to use Julia or C++ to finish a performance sensitive simulator: https://github.com/QuantumBFS/Yao.jl we choose Julia, just because we only have two people and we still want something fast and easy to use in 3 month (since it is dynamic). Another thing is the multiple dispatch feature which is really natural to scientific projects (probably even some other area), cannot talk about much details, but just personal experience.

Re: Julia 1.0

#19
post #14

Ask HN: as a researcher using MATLAB daily, is there a Julia IDE that offers a similar experience?

I like Juno for that: http://junolab.org/

It will take awhile for it to fully utilize v1.0. Remember, it just came out so packages will need to catch up. The debugger for example needs to be updated, along with the plotting packages and such. But once everyone updates it should give a very similar experience.

Re: Julia 1.0

#20

Apart from the library ecosystem, what attracts you to Julia?

Actually, sometimes you feel its ecosystem does not attract you since this is really a new language, however, as a package developer, when we decide to use Julia or C++ to finish a performance sensitive simulator: https://github.com/QuantumBFS/Yao.jl we choose Julia, just because we only have two people and we still want something fast and easy to use in 3 month (since it is dynamic). Another thing is the multiple di…

Yao.jl is a fantastic project and I hope to keep following it in the future. Maybe we can build differential equation solver algorithms which utilize quantum algorithms :)
Post reply on HN