I expect anyone launching a post rust language will have to compare consider rust's model of ownership. I think how rust is "different" will reduce as future languages will also use this model as it eliminates a large number of bugs. Rust is "different" in its ownership model, and many will think this is hard, and this will slow its adoption compared with go for example. Unfortunately rust is slower to produce products than python, but as I get better in rust I am hoping it will only by half as slow to write code in rust than python for me, while being more universal. More people use python than C/C++, because it is quicker and easier to develop in python than C/C++. The business case for developers is as compelling as C/C++ in that it is universal and fast. The company business case of rust is in my opinion compelling when compared with C/C++, so I expect rust will be in time as widely deployed as C/C++ in my opinion. That said, the community is super helpful and I would thank everybody for your help so far. My feeling is that this thread was being too dismissive of beginners problems. And I need this high level of understanding, that goes beyond the API documentation, just to communicate over a socket! There was also no hint I could find that this kind of thing is possible. The solution is non-obvious to a beginner and really frustrating - I looked at the buffered reader and writer code and could not see how it was possible to use a reference instead of a value. Luckily I found this solution on Stackoverflow. Using the examples in the docs this was impossible because once the writer was constructed the reader could no longer use the stream. To give an example, on Saturday I tried to read and write from a TcpStream using a buffered reader and buffered writer. I will stick with learning Rust and can't offer any insight other than it really is a big deal for some people such as me. Instead it is a mix of Ruby, Haskell and C++. I come from a C++ background and I originally thought that Rust would be a safer version of C++. When this comes up, more experienced Rust programmers wave it away but the truth is some of us find learning Rust a hard and frustrating experience. Personally, I am finding it a hard language to learn. I am still struggling with Rust after a couple of months.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |