# From Rust to Julia

**URL:** https://discourse.julialang.org/t/from-rust-to-julia/130939
**Category:** General Usage
**Tags:** question
**Created:** [July 22, 2025, 10:18am UTC](https://discourse.julialang.org/t/from-rust-to-julia/130939 "2025-07-22T10:18:00Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)
#### Post date: [August 1, 2025, 3:30pm UTC](https://discourse.julialang.org/t/from-rust-to-julia/130939/12 "2025-08-01T15:30:06Z")

</div>

I had some free time to spare today and just gave this a shot: After 3hrs of work I have something that seems to work reasonably well although the code is somewhat messy and definitely has room for improvement. You can find the current version on GitHub

> **[GitHub - abraemer/MannTurbulence.jl: Julia port of Mann.rs by Jaime Liew](https://github.com/abraemer/MannTurbulence.jl)**
>
> Julia port of Mann.rs by Jaime Liew

I gave you full access to the repo in case you want to continue this 🙂 I might continue this in 2 weeks when I have another Friday for experiments but no promises.  
Current state:

- Everything is translated
- Tests (AI generated) are green
- A good portion of the tests compare output of this Julia code to reference data generated with Mann.rs (the code for generating this reference data is not included though - I’ll need to figure out how to this as currently it was done by adding code onto Mann.rs)

So I’d be cautiously optimistic that this code - though messy - actually could be correct.

I used RooCode’s Orchestrator mode and that really orchestrated the whole thing quite well

> **Initial prompt**
>
> In this folder you find a Rust project `Mann.rs` which I want to translate to Julia. I already created a new Julia package which you can find in `MannTurbulence`. These are some of the high-level requirements:
> 
> - Correctness: It is very important to ensure that the Julia code produces the same results as the Rust code, which might be difficult because randomness is involved. So a good testing strategy is needed. Maybe we even need to add more precise test to the Rust code.
> - Performance: The Julia implementation should be fast. However, this should not be too difficult, if we follow the Rust code.
> - Idiomatic code: We want idiomatic Julia code to ensure maintainability. It is very likely that we can replace parts of the Rust code with Julia packages.
> 
> Starting analyzing and making the plan now. Ask me one question at a time to clarify details. Write the migration plan to `plan.md`.

With some help here and there of course. Models used where

- [TNG R1T2 Chimera](https://openrouter.ai/tngtech/deepseek-r1t2-chimera:free) as Orchestrator and Architect
- [Claude Sonnet 4](https://openrouter.ai/anthropic/claude-sonnet-4) as Coder

---

_[View the full topic](https://discourse.julialang.org/t/from-rust-to-julia/130939)._
