Hacker News new | ask | show | jobs
by roknovosel 2793 days ago
I've been researching parallel programming languages for my thesis and Julia has been really fun to work with. Alongside Chapel, they really make parallel programs fun to write. Although, in my experience, it's been really hard to make them run as fast as C+OpenMP. Mostly because I got trapped in a lot of performance pitfalls as a newcomer to the language. E.g.: parallel TSP branch-and-bound algorithm where I can't seem to improve the performance - https://github.com/novoselrok/parallel-algorithms/blob/maste...
1 comments

Judging from the linked code, you're using multiprocessing. Using multiprocessing is not similar to OpenMP. If you want something like C+OpenMP, then you'd need to use threading. This parallel task runtime will use multithreading like OpenMP, and should be similar in speed.