Rust for JavaScript Developers retweeted
Rustを始めるなら必ずこれを買いたいとずっと思っている。いつになるかはわからないけど😅
rustforjs.dev
@rustforjsdev
1
3
14
17,199
Rust for JavaScript Developers retweeted
Hey you should buy my book: amazon.com/Rust-Atomics-L…
56
83
1,038
173,922
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
4
6
45
7,203
Rust for JavaScript Developers retweeted
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 @rustforjsdev that make it more accessible to everyone!
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.
1
9
86
24,616
Rust for JavaScript Developers retweeted
I'm beyond excited to announce that CodeSandbox now has support for the most loved language... @rustlang!! 🦀🦀

Start a new Rust VM in 2 seconds, with:

📦 crates.io support
🦀 @rust_analyzer autocomplete
💡 code actions
💅 auto-formatting

codesandbox.io/blog/announcin…
9
87
585
84,954
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.
Whipped up a tiny abstraction to make it easier to run the Tailwind test suite against both our stable engine and the new Rust stuff... Couldn't resist the name 🏒🥅
2
3
30
30,409
Getting the finishing touches in on the Building an API server module.

We’re going to build an API that runs on @flydotio and persists answers to Postgres for quiz questions for the course.

Coming next week!
1
1
12
2,025
Rust for JavaScript Developers retweeted
🦀 It's "Rust", not "RUST".
59
25
730
149,513
Rust for JavaScript Developers retweeted
A lot of folks have wanted to check out a sample lesson in @rustforjsdev

Here's the lesson on Lifetimes in Rust!

app.rust-for-js.dev/posts/12-lifet…
11
40
276
42,391
Rust for JavaScript Developers retweeted
Considering making a lesson in @rustforjsdev public so folks can get a taste of it, which one?
1
1
5
4,236
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.
0
1
5
1,566
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.
0
4
11
2,115
In Rust, unwrap is a quick and easy way to get a Some value from within an Option when you know for sure that a value is present (because it will panic if the Option is None)
1
2
8
3,483
Replying to @rustforjsdev
unwrap is fine for code in development or tests but for production, you should probably be calling unwrap_or which lets you set a default for when the value is None instead of panicking!
0
0
4
1,185
Rust for JavaScript Developers retweeted
I'm quite happy with how search turned out for @rustforjsdev

It's fully accessible, works with Command+K as well and is fast as hell

Shipping this to production now
9
13
189
32,652
Rust for JavaScript Developers retweeted
🦀📔 What would you want to see in a book titled "Rust for C and C++ programmers"?
121
44
669
125,114
Rust for JavaScript Developers retweeted
Just preordered Rust for JavaScript Developers by @sidchatterjee and I'm excited to start learning 🦀 rustforjs.dev via @rustforjsdev
0
3
9
1,410
Rust for JavaScript Developers retweeted
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.
4
28
508
51,496
Rust for JavaScript Developers retweeted
When someone asks if Rust powers production software
Today we are excited to talk about Pingora, a new HTTP proxy we’ve built in-house using Rust that serves over 1 trillion requests a day, boosts our performance, and enables many new features for Cloudflare customers. Read all the details: cfl.re/3qHoIb3
3
2
37