Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How easy would it be to use Julia on a problem that would take advantage of the 16 hyperthreaded cores on my computer? Does it use threads, async/await mechanism, something else? Is it intuitive to use?


Julia's main parallel primitive (@spawnat) [1] is heavily inspired in Go, in which you just run anything in a managed lightweight thread, using a channel to pass data and sync with a fetch. That API is quite recent though (Julia 1.3), so there is still a lot of work going on both on the language side and on the library side to give higher level mechanisms, such as [2].

[1] https://julialang.org/blog/2019/07/multithreading/

[2] https://juliafolds.github.io/data-parallelism/tutorials/quic...


As easy as starting up the interpreter with -t auto and then using, e.g., pmap instead of map.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: