正在加载视频...

视频加载失败

In Rust, error handling is opt-out, not opt-in. Alice Ryhl (Rust for Android at Google, Rust language advisor & Tokio maintainer) explains: “The other thing I think is quite good is error handling. So on one hand, Rust doesn't really use exceptions, so it actually returns the error as...

52,059 次观看 • 3 个月前 •via X (Twitter)

0 条评论

暂无评论

原始帖子的评论将显示在这里

相关视频

"Courage is far shorter in supply than genius." - Peter Thiel "One of the challenges in writing a book about entrepreneurship or teaching a class on this is that there is sort of no formula. And I think science always starts with a number two. It starts with experiments you can repeat, things you can do over and over again. But there's sort of a sense in which every moment in the history of business, every moment in the history of technology happens only once. The next Mark Zuckerberg will not be starting a social networking company. The next Larry Page will not start a search engine. The next Bill Gates will not be starting an operating system. And so if you are trying to copy these people, you're in some sense not learning from them. And so I think one of the really big challenges in teaching or writing about entrepreneurship is what can you say about being an entrepreneur at all when the key thing is always to do something new, different, that's not precisely been done before. And so the point of departure I start with in Zero to One is a somewhat indirect approach by asking a series of contrarian questions. The business question is, what great company is nobody starting? The more intellectual version of this question is, tell me something true that very few people agree with you on. And this is a fantastic interview question. It turns out to be quite a hard question, even when people can read on the internet that you ask of everybody who comes in the door, it still is a hard question. It's one of those unusual questions where if you know it's on the test, it's still hard. And it's hard not just because we sort of think that new things require brilliance or something like that, but because it's socially difficult. If I ask you that question, if you tell me something like the education system is screwed up or our political system doesn't work very well, those are true answers, but they're not actually good answers because all of us already know them to be true. The good answers are ones that are somehow uncomfortable that the person interviewing you does not actually want to hear. And I think we live in this world where courage is in far shorter supply than genius. And so it is sort of this, it is in a sense this problem of political correctness properly understood, is this very deep, very, very broad sort of a problem."

Founder Mode

12,339 次观看 • 7 个月前

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,183 次观看 • 3 个月前

EVERYONE needs to be aware how SIGNIFICANT the Wisconsin Supreme Court election is This election decides who controls The House of Representatives and Voter ID Elon Musk “The single biggest challenge, I think is actually just making people aware that there is this very important election. There's both the very important election for Judge Schimel as well as the deciding on, on adding voter ID to the Wisconsin Constitution institution, which is very, very important. So it's quite shocking ,you can sort of tell where voter fraud is happening, where they ban id, you know, like why would you ban, ID like in New York and California, it's like illegal to show idea at an election. Well, why would, I can't imagine why that would be the case…. So, two really important things is to ensure judicial integrity on Tuesday and then the voter ID thing It's April Fool's Day. So I think most people aren't aware, like I said, most people aren't aware that there is this important election, but there most people don't even know that there's an election at all. Or if they do, they aren't sure exactly when and where it is. — They don't realize just how important it is. They think it, it's, well it's just, you know, some kind of judicial thing that's not that important. But it actually, what they're doing, what's happening on Tuesday is a vote for the, the which party controls the U.S house of House of Representatives. That is why it is so, so significant and whichever party controls the house, to a significant degree controls the country, which then steers the course of Western civilization. So it's like, I feel like this is one of those things that, that may not seem that it's gonna affect the entire destiny of humanity, — it's a super, it's a super big deal. The fact that I'm here in person, like I'm not phoning it in. I'm here in person”

Wall Street Apes

51,280 次观看 • 1 年前