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.

Switch to Julia from Rust?

3 pointsby groundthrowerover 4 years ago
We have a program written in Rust, consisting of a genetic algorithm - which works very well and utilizing all available cpu cores. It has been in production for a few years, and in general works great - and we really like it’s stability.<p>However, writing stuff in Rust still takes us time. We have lately been discussing if we should rewrite it in Julia which is a language that feels like it is more aimed to what we are doing. However, we don’t want to sacrifice any performance.<p>Just wanted to check if you have any input regarding our dilemma?

3 comments

kbrothersover 4 years ago
Generally I suggest avoiding rewrites; Usually the ROI is not there (see the strangler pattern for an alternative). It might make sense to look at Julia for future development. You could write something new in Julia to see if the benefits are there for your team. Also, from my understanding you can call Rust from Julia using extern in Rust to pretend to be C. It could act as an escape hatch for performance issues if there are encountered, though I have never tried it.
snicker7over 4 years ago
Unlike some other commenters, I think that from-scratch rewrites can be valuable. But seriously consider other potential benefits. &quot;Julia might be nicer than Rust&quot; is not good enough if sole justification.
ezluckyfreeover 4 years ago
Yeah you can call Rust from Julia.<p>Rewriting seems like a pain in the ass, especially because Rust isn&#x27;t causing your current implementation problems.