Rust for C++ programmers – part 3: primitive types and operators
featherweightmusings.blogspot.com
Rust for C++ programmers – part 3: primitive types and operators
1–10 of 68 posts
Re: Rust for C++ programmers – part 3: primitive types and operators
#2Re: Rust for C++ programmers – part 3: primitive types and operators
#3what about rust for webapps? are there any frameworks out there?
With Chris Morgan's rust-http library (which I think is also used by Servo), you should have the base on which to build a web framework. Somebody apparently wrote (and still maintains) a pure Rust Postgresql driver ([2]), so you could in theory write a simple CRUD webapp, if you're willing to write the routing yourself.
Re: Rust for C++ programmers – part 3: primitive types and operators
#4Re: Rust for C++ programmers – part 3: primitive types and operators
#5How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.
Re: Rust for C++ programmers – part 3: primitive types and operators
#6From the project home page: "prevents almost all crashes (in theory)" How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.
Re: Rust for C++ programmers – part 3: primitive types and operators
#7what about rust for webapps? are there any frameworks out there?
Having said that, I'm not confident yet that you want to be coding a web site in rust. In the name of safety, rust's compiler can be very difficult to please and in the name of speed it doesn't compile blazingly fast as well. Some people may have a different opinion from me, but besides writing a web app to learn the rust language, what advantages for the web does rust give you that go or haskell doesn't? When you are writing a web app, developer productivity is priority number one (in my opinion), and having to fight the borrow/lifetime checker and trying to find out why your struct doesn't fulfil `Send` are not things I would like to have to do when I'm making a web site. The tradeoff will be that hopefully a web site written in rust will be both fast and concurrently safe, but you will be sacrificing developer productivity for the reasons mentioned above. Irregardless of those issues, I'm still very determined to make a rust web framework that is both fast and easy to develop for (probably by providing examples of common web idioms in oxidize so people can see how to do it), just, I want people that use my framework to be aware of the tradeoffs that they will make. In short, I consider oxidize an experiment in trying to make a powerful, expressive, and extensible web framework in rust, and along the way I've started to question whether this will have any practical applications, but in spite of that, I still am trying to achieve the previous listed goals.
Re: Rust for C++ programmers – part 3: primitive types and operators
#8From the project home page: "prevents almost all crashes (in theory)" How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.
I mean you get an error but not a segfault. Rust crashes on division by zero but honestly, how many crashes have you encountered in the real world due to division by zero?
Re: Rust for C++ programmers – part 3: primitive types and operators
#9From the project home page: "prevents almost all crashes (in theory)" How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.
Re: Rust for C++ programmers – part 3: primitive types and operators
#10From the project home page: "prevents almost all crashes (in theory)" How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.