DEV Community

Discussion on: What's your go-to stack these days?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Rust + Typescript.

Collapse
 
madza profile image
Madza • Edited

Results of StackOverFlow's survey on most loved languages in 2020 might agree with you :)

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

9 out of 10 DEV devs might agree with me haha 😂

Collapse
 
ben profile image
Ben Halpern

What's your Rust library/framework set look like?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

So on the Rust side.

Actix Web although I tried Rocket which was also great, I wanted to use http2 on what is reportedly the fastest web server around. the reason being the stack I am developing is ESModule based so I am trying to move away from a bundler and get as many small requests as I can. the experience feels like 2005 but with Typescript powers, Its liberating!

For the front end, it has to be XState and lit-hml / lit-element. so enjoyable.

The intro to this project can be found here. Rust has been decided after this post was created. I am working hard on a full shop to showdev, its going really well and probably will be done next month.

Thread Thread
 
kayis profile image
K

This sounds really interesting!

Thread Thread
 
gablaroche profile image
Gabriel Laroche

This is really cool, I've been chewing at rust for web development, but I'm wondering how/where you can host a rust web server?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

I'm likely to spin up a AWS lightsail or something small to install rust. I think that'll do for early days.

Thread Thread
 
kayis profile image
K

Lambda also has a Rust runtime.

Thread Thread
 
terkwood profile image
Felix Terkhorn

🔬 On my list of stuff to tinker with! 🔬

Collapse
 
kayis profile image
K

Any library recommendations?

I read Actix was good, but now has maintainer problems.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

It did have maintainer issues in the past, but has a new maintainer. You can also try Rocket which is about on par, but I dont know if its as fast.

Collapse
 
mrjjwright profile image
John Wright

I am intrigued what you love about that combo?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

At first it was because I wanted to try all the new hotness, but this is all quite old now so I guess I liked what both languages did for their respective areas. I like rusts no nonsense approach in that it's pretty hard to write bad code and it's pretty hard to write code from a beginners stand point, you really have to keep trying and failing and being repeatedly beaten over the head from the compiler until you end up with idomatic rust. On the other hand we have typescript, this is as flexible as you want, obviously I aspire to write strongly typed strict JavaScript but I tend to get a little lapse in my discipline over on this side, I get that freedom of prototyping speed that I don't in rust and I guess that's a nice pairing, now if I where a 10x I know this combination would lead to some incredibly resilient software.

Thread Thread
 
mrjjwright profile image
John Wright

That's fascinating. What do you mean by "now if I where a 10x I know this..."?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

I believe that at the end of the century the use of words and general educated opinion will have altered so much that one will be able to speak of machines thinking without expecting to be contradicted.

Alan Turing

What a quote! Because it's true, I'm a lazy developer, I like my computer to help me to code at every stage. A 10x developer is a joke about the mythical inhuman skills of a developer that is superior to all other developers. I suppose I'm saying, if I weren't the human behind the machine this stack would meet the perfect criteria for excellent software, Microsoft seem to agree with me, for their software is being reengineered in rust, and the invented typescript and this new language which we don't know a lot about yet other than it's likely typescript like but will be used in the same space as rust, zig, d and other c alternatives.

Thread Thread
 
mrjjwright profile image
John Wright

I love that

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

probably also worth mentioning, that Rust bindgen will generate ts typings so its perfect for some blazing wasm code if you so wish.