rust-lang/rust

Add Rust versions of all the Rosetta Code tasks

emberian opened this issue · 8 comments

See http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Rust for the things not yet implemented.

Ideally we'd put this off until 1.0 or after, so as to not be rewriting them constantly. There's also a lot of them, and many of them are quite interesting problems (if you're not just porting versions of other ones, at least).

Suggested by @eddyb

I've started a bit into this task, but my code is likely totally non-idiomatic.

Anyone's welcome to join me on learning the language through working on these tasks though. Just got the Hailstone one done for now. https://github.com/Hoverbear/rust-rosetta

It's a good idea to have this in a separate repo, will make it easier to maintain. You should also add it to rust-ci!

I'll leave my comments/suggestions as issues on the repo.

About a half of my https://github.com/JIghtuse/rosetta repo written on Rust, so I can merge these files into Hoverbear's repo.

@JIghtuse Awesome!

@cmr It's on Rust-CI, I'm being a bit slow about updating the code for some of the fragments.

I merged in @JIghtuse 's files today, been away due to lack of computer. Looks great!

So, am I right in thinking that there is a repository of Rust RC examples being maintained hee, that will be added to the RC site when Rust reaches 1.0?

Can't wait!

@Paddy3118 Some have already been added, others not. It's not a priority to have them listed until 1.0.

https://github.com/Hoverbear/rust-rosetta exists now, and has people actively working on it. It would be nice to move them in-tree maybe post 1.0, but we don't need to keep something open to track that.