[rust-dev] idea: specific visibility

2012-04-08 Thread Kobi Lurie
hi guys, another suggestion. What do you think of: the called side (functions, members, maybe classes) can specify its visibility down to the function level. (with some wildcard syntax) this is enhancing the private public internal as seen in most languages. The Eiffel language has something

Re: [rust-dev] console?

2012-04-08 Thread Patrick Walton
On 04/08/2012 11:15 AM, Kobi Lurie wrote: hi rust list, is there something like Console.ReadLine in rust? I want to experiment, get a feel for the language by writing a little hangman game. Check out the io module: http://doc.rust-lang.org/doc/core/io.html In particular use stdin() to get a

[rust-dev] write_str error

2012-04-08 Thread Mic
Hi, I am getting the following errors: $ rustc csv_create.rs csv_create.rs:17:1: 17:14 error: attempted access of field write_str on type core::io::writer, but no public field or method with that name was found csv_create.rs:17rdr.write_str(aaa, bbb,ccc ,

Re: [rust-dev] hashmap benchmark

2012-04-08 Thread Niko Matsakis
On 4/8/12 12:15 PM, Stefan Plantikow wrote: Hi, I was thinking about this, too. One of the state-of-the art algorithms seems to be hopscotch hashing, wikipedia has a quite good introduction to it. Even though it has been developed for concurrent access, it should also be quite good in a

Re: [rust-dev] hashmap benchmark

2012-04-08 Thread Sebastian Sylvan
On Sun, Apr 8, 2012 at 1:55 PM, Stefan Plantikow stefan.planti...@googlemail.com wrote: Hi, Am Sonntag, 8. April 2012 um 22:32 schrieb Brian Anderson: Hashing algorithms (hopscotch, bloom filters) could greatly benefit from having access to the llvm bit manipulation intrinsics (ctpop,

Re: [rust-dev] read file line by line

2012-04-08 Thread Mic
Hello, Thank you it is working. I created a writing and reading benchmark. In both cases Python is about 3 times faster than Rust. Please find below the results and attached the codes (create_csv.py/rs has to run first, because it creates a csv file which is used for csv.py/rs) *BENCHMARK 1*: