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
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 as Orchestrator and Architect
- Claude Sonnet 4 as Coder