User loginNavigation |
Elements of Programming in RustI have been working on implementing the algorithms and concepts in Stepanov's "Elements of Programming" in Rust. I have started with chapter 6 "Iterators" as I think it involves the most complex type mechanics, and if it is possible to translate this, the rest should be doable. I have posted what I have so far which is all the plain Iterator algorithms as I now think it will be possible to complete the translation. There are some issues: - I cannot define the dereference operators to work on values (they should be the identity function on values), this limits the generality of algorithms, in that we cannot write an algorithm that will operate on both a value and an iterator. Here's the link to the repo: https://github.com/keean/elements_in_rust I am interested in comments about improving the implementation, how generic programming looks in Rust, how Rust could be improved to deal with the issues above, and any other issues that people can spot. By Keean Schupke at 2016-04-22 08:37 | LtU Forum | previous forum topic | next forum topic | other blogs | 4308 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 1 day ago
49 weeks 3 days ago
51 weeks 6 hours ago
51 weeks 6 hours ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago