Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile
Rust for JavaScript Developers

@rustforjsdev

A practical Rust course by @chatsidhartha, especially for JavaScript developers. Preorders open!

ID: 1528124760043003904

linkhttps://rustforjs.dev/ calendar_today21-05-2022 21:25:40

52 Tweet

2,2K Takipçi

2 Takip Edilen

Tim McNamara (@timclicks) 's Twitter Profile Photo

In Rust, Option<Box<T>> uses the same memory layout as Box<T>, e.g. Option takes no space. The Rust compiler knows that pointers cannot be null, so uses the null bit pattern to encode None.

Sid (@chatsidhartha) 's Twitter Profile Photo

I'm quite happy with how search turned out for Rust for JavaScript Developers It's fully accessible, works with Command+K as well and is fast as hell Shipping this to production now

Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile Photo

Rust lets you iterate through something iterable using an Iterator. Here's an example of filtering an array for even numbers. We create an Iterator from our array using into_iter in this case, a version of iter that moves ownership of each value into our closure.

Rust lets you iterate through something iterable using an Iterator. Here's an example of filtering an array for even numbers.

We create an Iterator from our array using into_iter in this case, a version of iter that moves ownership of each value into our closure.
Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile Photo

In Rust, it is possible to force-ably allocate values on the heap using the Box type, here is an example of an i32 value allocated on the heap. age is now a pointer to a heap allocated i32.

In Rust, it is possible to force-ably allocate values on the heap using the Box type, here is an example of an i32 value allocated on the heap. 

age is now a pointer to a heap allocated i32.
Ives van Hoorne (@compuives) 's Twitter Profile Photo

I'm beyond excited to announce that CodeSandbox now has support for the most loved language... Rust Language!! 🦀🦀 Start a new Rust VM in 2 seconds, with: 📦 crates.io support 🦀 rust-analyzer autocomplete 💡 code actions 💅 auto-formatting codesandbox.io/blog/announcin…

Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile Photo

Getting the finishing touches in on the Building an API server module. We’re going to build an API that runs on Fly.io and persists answers to Postgres for quiz questions for the course. Coming next week!

Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile Photo

It’s exciting how much of modern JavaScript tooling is adopting Rust! There’s swc, turbopack, turborepo rewrite (nice work Vercel friends), the new parcel CSS compiler and now the new Tailwind compiler. It’s great to see.

Guillermo Rauch (@rauchg) 's Twitter Profile Photo

Rust is re-defining Infrastructure engineering. We're seeing the foundations of our tools and services get refactored to it, from CLI to Cloud. Very excited about resources like Rust for JavaScript Developers that make it more accessible to everyone!

Rust for JavaScript Developers (@rustforjsdev) 's Twitter Profile Photo

Rust’s ownership rules 1. Every value in Rust must have a single owner 2. A value can have any number of immutable references 3. You can only create a single mutable reference to a value 4. If there’s a mutable reference to a value, you cannot have an immutable reference to it

Teruhisa (@t6adev) 's Twitter Profile Photo

Rustを始めるなら必ずこれを買いたいとずっと思っている。いつになるかはわからないけど😅 rustforjs.dev Rust for JavaScript Developers