Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

I thought Rust was supposed to replace C and C++, not Java and Scala. But xAI's new x-algorithm repo tells a different story... and Rust is only a part of it.

175,171 görüntüleme • 9 ay önce •via X (Twitter)

0 Yorum

Yorum bulunmuyor

Orijinal gönderinin yorumları burada görünecek

Benzer Videolar

Why is Rust different than many/most programming languages? Alice Ryhl works on Google's Android Rust team, is a Rust language team advisor, and is a core maintainer of Tokio (the most widely-used async runtime in Rust) Timestamps: 00:00 Intro 04:09 Tokio: an overview 05:11 What Alice likes about Rust 12:48 Rust for TypeScript engineers 13:51 Moving from C++ to Rust 14:34 Memory safety 18:12 Garbage collection tradeoffs 21:46 Ownership, references, and borrowing 26:59 Unsafe in Rust 31:21 Crates and Cargo 35:55 Language design and RFCs 43:02 Building new features 46:30 Editions vs. versions 49:47 Getting paid to work on Rust 51:27 Contributing to Rust 53:03 Rust in the Linux kernel 55:45 AI use cases for Rust 1:01:35 Learning Rust 1:03:54 Book recommendation Brought to you by: • Antithesis – verify your system’s correctness without human review or traditional integration tests – and avoid bugs or outages. • Sentry – application monitoring software considered “not bad” by millions of developers Three things worth knowing about Rust: 1. Rust was designed to turn implicit failures into compile errors. Where other languages allow you to forget something, Rust makes an omission into a compilation error for things like null checks, uninitialized variables, or error propagation with the ‘?’ character. If you mess something up, it’s almost certain your program will not compile. If it does, at the very least you should see a lint warning. 2. Refactoring in Rust is safe and easy, thanks to the compiler. Alice: “I change a return type or struct field, then just fix the compiler errors until the compiler stops shouting. And then once I’ve done that, I’ve updated every place I need to update.” Rust’s focus on correctness makes refactoring it more straightforward than dynamically-typed languages and Java-style typed ones are to refactor. 3. “Editions” allow Rust to make breaking changes without ‘breaking’ anyone’s code. Rust editions (2015, 2018, 2021, 2024) can be mixed freely across crates. A library on the 2021 edition works seamlessly with a binary on the 2024 edition. This is how Rust evolves syntax (like adding async/await as keywords) without forcing an ecosystem-wide migration. Thanks a lot, Alice for this great discussion! And for your work on Rust.

Gergely Orosz

52,449 görüntüleme • 5 ay önce

OH MY F*CKING GOD Minecraft was rewritten from scratch in rust, and every mod you own just died with it this was never about rust being faster. it is about java mods having no door to knock on WHY JAVA MODDING WAS ALWAYS GOING TO HIT A WALL → a java mod does not call an interface. it performs surgery. the loader rewrites the game's own bytecode while it loads, and mixins inject into methods nobody designed to be touched → that is why two mods editing the same method fight each other, and why a single update breaks a hundred of them at once → the ceiling was never the language. it was that the game had no front door, so every mod cut its own hole in the wall WHAT THE REWRITE ACTUALLY CHANGED → horizon is not a loader bolted onto the old game. it is its own program in rust that reads the same worlds and generates the same terrain → mods are rust compiled to webassembly, loaded as sandboxed modules against a real api, instead of being injected into the engine's internals → it ships a mod api, a server api, a shader api and an agent control api, which means the game now has a surface built for something to drive it HOW YOU PROVE A REWRITE IS NOT A LIE → rewriting is the easy half. proving you matched the original is the half nobody wants to do → 281 differential harnesses feed identical input to both games and compare the output subsystem by subsystem, and every subsystem it covers comes back matching → and the giveaway detail: the rust side was made to copy java's floating point behaviour on every platform, because otherwise the terrain generates differently and the whole thing is a different game wearing the same name for fifteen years modding meant editing a running program now there is a door, and somebody built one

Roxx

46,232 görüntüleme • 13 gün önce