Rust Is Surprisingly Good as a Server Language
1–10 of 352 posts
Re: Rust Is Surprisingly Good as a Server Language
#2Re: Rust Is Surprisingly Good as a Server Language
#3You guys think Rust is good - you should check out Ada++ (you'll have to build GCC yourself though) http://www.adapplang.com
Re: Rust Is Surprisingly Good as a Server Language
#4https://rust-lang.github.io/async-book/01_getting_started/05...
My server processes JSON requests and returns JSON and also serves a couple of static files that I simply read with
include_bytes!("../files/index.html")
Once you understand Rust async model (which I recommend as a mental exercise for any programmer), it's all very simple.Re: Rust Is Surprisingly Good as a Server Language
#5But if I ever have to write a small (in terms of requirements and potential LOC, not load), atomic, CPU-bound microservice that will probably not require a lot of maintenance work, Rust will be my first choice.
Re: Rust Is Surprisingly Good as a Server Language
#6On the technical side, there are definitely some learning curves among Rocket, Diesel, and other tools. A typical example is that different crates have their own implementations of concepts such as a UUID, and the developer must handle conversions, and also ensure that various dependency versions all align, and also can't (yet) easily use the current UUID crate, and also can't (yet) build using stable Rust. All of these aspects will be fixed soon, likely within a month or so as the crates stabilize.
If you try Rust, I highly recommend trying rust-analyzer, which provides near-real-time code advice as a plugin to most major editors.
Re: Rust Is Surprisingly Good as a Server Language
#7While I am not a huge fan of Typescript, at least libraries are readily available and generally easy to use. On the other hand, being able to show that we are able to do monitoring, user auditing, ORM, opentracing, gRPC-web with Rust is non trivial.
Now that I think of it, being able to do a "hello world" on any language is pretty simple. But having all the tools around it to build a production level service is a different story.
Re: Rust Is Surprisingly Good as a Server Language
#8I started learning Rusit and using it for hobby projects in 2014, but I have to agree: for a full-blown product development it's just not there yet. Static typing your code up to the point where you can assume it's correct if it compiles and managing memory manually without the need for a garbage collector, these two things alone just light up my inner nerd with excitement. But as an engineer who has to deliver a pro…
Re: Rust Is Surprisingly Good as a Server Language
#9There is an advocate on our team that wants to migrate our web service from Nodejs to Rust. While I am not a huge fan of Typescript, at least libraries are readily available and generally easy to use. On the other hand, being able to show that we are able to do monitoring, user auditing, ORM, opentracing, gRPC-web with Rust is non trivial. Now that I think of it, being able to do a "hello world" on any language is pr…
Re: Rust Is Surprisingly Good as a Server Language
#10There is an advocate on our team that wants to migrate our web service from Nodejs to Rust. While I am not a huge fan of Typescript, at least libraries are readily available and generally easy to use. On the other hand, being able to show that we are able to do monitoring, user auditing, ORM, opentracing, gRPC-web with Rust is non trivial. Now that I think of it, being able to do a "hello world" on any language is pr…