Skip to content

Porting to Rust #302

Answered by RossNordby
Grimelios asked this question in Q&A
Jan 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

While most of the core data processing bits would port over ~easily, a lot of the bookkeeping would make you want to tear your hair out in rust. Or C#, for that matter. There's a lot of incredibly complicated parallel shared state; a port would realistically have to abandon any pretense of compiler-enforced safety. A lot of it is slated for a revamp, but even then, oof ouch owie.

I would not recommend writing a port with an expectation of performance improvements. If they exist at all, they'll be small and primarily relevant in corner cases, like cache-sized simulations.

There's already a partial C API and a partial C++ wrapper over in the scratchpad: https://github.com/RossNordby/scratch…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Grimelios
Comment options

Answer selected by Grimelios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants