TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Julia 1.6 Highlights

410 pointsby mbaumanabout 4 years ago

17 comments

Buttons840about 4 years ago
I recently ported a reinforcement learning algorithm from PyTorch to Julia. I did my best to keep the implementations the same, with the same hyperparameters, network sizes, etc. I think I did a pretty good job because the performance was similar, solving the CartPole environment in the a similar number of steps, etc.<p>The Julia implementation ended up being about 2 to 3 times faster. I timed the core learning loops, the network evaluations and gradient calculations and applications, and PyTorch and Julia performed similar here. So it wasn&#x27;t that Julia was faster at learning. Instead it was all the in-between, all the &quot;book keeping&quot; in Python ended up being much faster in Julia, enough so that overall it was 2 to 3 times faster.<p>(I was training on a CPU though. Things may be different if you&#x27;re using a GPU, I don&#x27;t know.)
评论 #26655340 未加载
评论 #26590695 未加载
评论 #26589464 未加载
beeforporkabout 4 years ago
Julia is such a wonderful language. There are many design decisions that I like, but most importantly to me, its ingenious idea of combining multiple dispatch with JIT compilation still leaves me in awe. It is such an elegant solution to achieving efficient multiple dispatch.<p>Thanks to everyone who is working on this language!
评论 #26590270 未加载
评论 #26584576 未加载
评论 #26584752 未加载
MisterBiggsabout 4 years ago
I&#x27;ve been running the 1.6 release candidates, and the compilation speed improvements have been massive. There have been plenty of instances in the past where I&#x27;ve tried to &#x27;quickly&#x27; show off some Julia code, and I end up waiting ~45 seconds for a plot to show or a minute for a Pluto notebook to run, and that&#x27;s not to mention waiting for my imports to finish. It&#x27;s still slower than Matlab for the first run, but it&#x27;s at least in the same ballpark now.
评论 #26583780 未加载
评论 #26582860 未加载
snicker7about 4 years ago
On the package ecosystem side, 1.6 is required for JET.jl [0]. Despite being a dynamic language, the Julia compiler does a lot of static analysis (or &quot;abstract interpretation&quot; in Julia lingo). JET.jl exposes some of this to the user, opening a path for additional static analysis tools (or maybe even custom compilers).<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;aviatesk&#x2F;JET.jl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aviatesk&#x2F;JET.jl</a>
评论 #26585726 未加载
评论 #26584848 未加载
cbkellerabout 4 years ago
See also Lyndon’s blog post [1] about what all has changed since 1.0, for anyone who’s been away for a while.<p>[1] <a href="https:&#x2F;&#x2F;www.oxinabox.net&#x2F;2021&#x2F;02&#x2F;13&#x2F;Julia-1.6-what-has-changed-since-1.0.html" rel="nofollow">https:&#x2F;&#x2F;www.oxinabox.net&#x2F;2021&#x2F;02&#x2F;13&#x2F;Julia-1.6-what-has-chang...</a>
wiz21cabout 4 years ago
Whatever improves loading times is more than welcome. It&#x27;s not really acceptable to wait because you import some libraries. In understand Julia makes lots of things under the hood and that there&#x27;s a price to pay for that but being a python user, it&#x27;s a bit inconvenient.<p>But I&#x27;ll sure give it a try because Julia hits a sweet spot between expressiveness and speed (at least for the kind of stuff I do : matrix, algorithms, graphs computations).
odiparabout 4 years ago
I like Julia (mostly because of multiple dispatch). The only thing that&#x27;s lacking is an industry strength Garbage Collector, something that can be found in the JVM.<p>I know that you shouldn&#x27;t produce garbage, but I happen to like immutable data structures and those work better with optimised GCs.
评论 #26584206 未加载
评论 #26584354 未加载
评论 #26583787 未加载
noisy_boyabout 4 years ago
How easy it is to produce a compiled executable in 1.6? I took a cursory look at the docs but couldn&#x27;t spot the steps for doing so.
评论 #26582256 未加载
评论 #26582478 未加载
评论 #26582601 未加载
systemsabout 4 years ago
I know its minor, but I still hope they will fix scoping<p>not that my suggestion is good, but what they have now is bad<p><a href="https:&#x2F;&#x2F;github.com&#x2F;JuliaLang&#x2F;julia&#x2F;issues&#x2F;37187" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JuliaLang&#x2F;julia&#x2F;issues&#x2F;37187</a>
评论 #26583771 未加载
3JPLWabout 4 years ago
The feature I&#x27;m most excited about is the parallel — and automatic — precompilation. Combined with the iterative latency improvements, Julia 1.6 has far fewer coffee breaks.
评论 #26581109 未加载
pjmlpabout 4 years ago
Love the improvements, all those little details that improve the overall usability.
xiphias2about 4 years ago
Cool, I was thinking of downloading the RC, the demo was so impressive.<p>Will there be an M1 Mac version for 1.7?
评论 #26581412 未加载
fermienricoabout 4 years ago
Are the performance claims of Julia greatly exaggerated?<p>Julia loses almost consistently to Go, Crystal, Nim, Rust, Kotlin, Python (PyPy, Numpy): <a href="https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kostya&#x2F;benchmarks</a><p>Is this because of bad typing or they didn&#x27;t use Julia properly in idiomatic manner?
评论 #26582695 未加载
评论 #26582450 未加载
评论 #26582508 未加载
评论 #26583928 未加载
评论 #26589628 未加载
评论 #26585042 未加载
评论 #26582386 未加载
评论 #26583969 未加载
评论 #26582587 未加载
JulianMorrisonabout 4 years ago
BTW, broken link on the documentation page, &quot;The documentation is also available in PDF format: julia-1.6.0.pdf.&quot; No it isn&#x27;t.
评论 #26585417 未加载
f6vabout 4 years ago
Is there a per-project way to manage dependencies yet? I find global package installation to be the biggest weakness of all the R projects out there. Anaconda can help, but it’s not widely used for R projects. And Docker... well, don’t get me started.
评论 #26581553 未加载
评论 #26581558 未加载
评论 #26581544 未加载
评论 #26581581 未加载
siproprioabout 4 years ago
On 1.6, I tried &quot;] add Plots&quot; and julia got stuck.
评论 #26585727 未加载
ng55QPSKabout 4 years ago
maybe i misread this, but milestone &quot;1.6 blockers&quot; still has 3 open with &quot;1.6 now considered feature-complete. This milestone tracks release-blocking issues.&quot; - so how can 1.6 be ready?
评论 #26581867 未加载