Rust for JavaScript Devs | Re-writing an Express.js chat app (web-sockets) in Rust
Вставка
- Опубліковано 14 гру 2022
- In this workshop, you will learn all about language fundamentals, features like ownership and error handling, and the maturity of the ecosystem by writing an app together.
Within three hours Rust Linz organizer Stefan Baumgartner will take you from project initialization to deployment, highlighting use cases, benefits, pitfalls, and major differences to other programming languages.
We will take an Express.js based chat application that uses web-sockets and re-write it in Rust using the Axum framework. In doing so, we go through basic concepts that are unique to Rust, and see where we can benefit from using this exciting new language.
Stay curious, because Rust is fundamentally different to your most favorite scripting language: You will become blissfully aware of memory management and concurrency. Stefan has been mainly using JavaScript for the last 15 years and will guide you through the biggest differences.
At the end of this session, you will understand where and when to use Rust, and if Rust is a good tool for your work.
vod starts at 0:50
Fantastic workshop! Having access to such high-quality content for free is just mind-blowing 🤩
Best explanation of ownership!
Stark Stefan!
Missed opportunity to have called the application "Ristcord"
Hey, what vscode extension is giving you that nice inline errors and warns?
rust-analyzer + clippy (I think)
to change the color, add this to your "settings.json"
"workbench.colorCustomizations": {
"editorInlayHint.background": "#00000000",
"editorInlayHint.foreground": "#ff0000"
},
to use clippy
"rust-analyzer.checkOnSave.command": "clippy",
Error Lens! Works with all LSPs
Is this example in GitHub? If so, can you share a link.
Hi, thanks for sharing. I wasn't able to enter in Discord, and got really mad about that, because I schedule to my team some hours off for that. Please, stop using that Discord thing!