Jump to content

New pages

New pages
Hide registered users | Show bots | Show redirects
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

23 November 2025

  • 19:4219:42, 23 November 2025 Mastering the Deref Trait in Rust: Patterns, Pitfalls, and Practical Use (hist | edit) [7,639 bytes] PC (talk | contribs) (Created page with "500px One of the less visible but incredibly useful features of Rust is the Deref trait. If you've used Box, Rc, or Arc, you've already relied on it, even if you've never written an implementation yourself. Deref allows smart pointers and custom wrapper types to behave like references to their inner values. This enables ergonomic code, eliminates boilerplate, and ensures seamless integration with existing APIs. Despite its...")
  • 19:3919:39, 23 November 2025 14 Rust Concepts Every Developer Should Master (hist | edit) [12,673 bytes] PC (talk | contribs) (Created page with "Rust has consistently been voted one of the most loved programming languages, and for good reason. Its focus on memory safety, performance, and concurrency without a garbage collector makes it a powerful choice for everything from systems programming to web development. 500px However, Rust’s unique approach to these problems can feel daunting at first, especially if you’re coming from languages with different paradigms. To truly unlock...")
  • 19:3519:35, 23 November 2025 Closures (hist | edit) [12,804 bytes] PC (talk | contribs) (Created page with "Yesterday we covered Error Handling with ?, if you missed it I’d suggest you check it out first. Error Handling with ? Today we’ll be talking about error handling in Rust, specifically the `?` operator, in a way that feels practical and… medium.com Imagine you’re writing a web server that processes user requests. Each request needs to be handled based on some condition, like checking if a user is logged in. Instead of writing a separate function for every possi...")
  • 19:2919:29, 23 November 2025 Error Handling with ? (hist | edit) [11,931 bytes] PC (talk | contribs) (Created page with "Today we’ll be talking about error handling, specifically the `?` operator, in a way that feels practical and grounded in real-world scenarios. If you missed yesterday’s piece on Generics, you can check it out below. Generics The days are flying by, it’s already day 22! Yesterday, we discussed Traits, and if you missed it, you can catch up… medium.com Rust’s approach to errors is one of its standout features, it’s designed to make your code safer and more p...")
  • 19:2619:26, 23 November 2025 A Guide to Flexible & Easy Thread-Safe Rust: Unveiling the Multiton Pattern for Efficient Lazy Initialization (hist | edit) [15,720 bytes] PC (talk | contribs) (Created page with "500px The Singleton may be one of the most familiar design patterns. However sometimes it is necessary not have just one object of a certain type in your program, but several. That is when the Multiton comes in. The Multiton simply looks like this: 800px The Multiton basically manages a number of instances of an object, usually stored in a dictonary or a hashmap which can be retrieved using a key, usually...")
  • 19:2119:21, 23 November 2025 Traits (hist | edit) [10,288 bytes] PC (talk | contribs) (Created page with "In our previous writeup, we looked at Lifetimes and their importance in Rust. If you missed it, you can check it out below. Lifetimes Yesterday we looked at Slices and their nitty-gritties, I’d suggest you check it out below. medium.com In Rust, a trait is a way to define a set of methods that types can implement. Think of it as a blueprint for behavior. If you’ve worked in other languages, traits are somewhat akin to interfaces in Java or protocols in Swift, but...")
  • 19:1919:19, 23 November 2025 Tree Borrows Just Landed (hist | edit) [3,680 bytes] PC (talk | contribs) (Created page with "500px Hello, Rustaceans Hope you had an awesome and productive week last week. Let’s roll! In this issue, we’ll discuss the recently published Tree Borrows paper, present you a Rust quiz, spotlight an amazing Rust project, and share ten (10) incredible links of the week. Here’s issue 76 for you! THE MAIN NEWS Tree Borrows Just Landed 🦀 While we were still enjoying the shiny new features that released on crates.io, th...")
  • 19:1719:17, 23 November 2025 Building KITT: Kafka Implementation Throughput Tool, the Knight Rider Way (hist | edit) [12,199 bytes] PC (talk | contribs) (Created page with "500px From tangled rate discovery to an elegant, self-balancing system, this is the story of how a Kafka benchmarking tool matured into a reliable and insightful performance probe. The Problem to Solve The core objective was straightforward yet technically nuanced: determine the maximum sustainable throughput a Kafka broker can maintain without accumulating an unmanageable backlog. The goal extended beyond raw throughput numbers — it also...")
  • 19:1319:13, 23 November 2025 Lifetimes (hist | edit) [8,881 bytes] PC (talk | contribs) (Created page with "Yesterday we looked at Slices and their nitty-gritties, I’d suggest you check it out below. Slices Yesterday we checked out Loops in-depth and other niceties around them, if you missed it, I’d recommend checking it out… medium.com Rust’s ownership model is all about ensuring memory safety at compile time. Lifetimes are a key part of this, specifying how long references are valid. Think of them as the compiler’s way of tracking the “lifespan” of a borrowed...")
  • 19:1119:11, 23 November 2025 Easy Abstractions: Mastering Abstract Factory Design Pattern in Rust (hist | edit) [11,213 bytes] PC (talk | contribs) (Created page with "500px Photo by Pixabay: https://www.pexels.com/photo/low-angle-shot-of-manufacturing-plant-under-blue-sky-257700/ The Abstract Factory Pattern is a way to group the creation of related objects, like products of a certain brand or make by building a common factory interface. If this all sounds abstract, a picture can help: 500px A short breakdown: * All the factories have a common interface called Abstra...")
  • 19:0519:05, 23 November 2025 Slices (hist | edit) [9,686 bytes] PC (talk | contribs) (Created page with "Yesterday we checked out Loops in-depth and other niceties around them, if you missed it, I’d recommend checking it out below. Loops Loops in programming (fundamental and very useful), including Rust, are like a repeating task you tell the computer to… medium.com In this post, let’s discuss Slices, it’s day 19 here we go! A slice in Rust is like a window into a portion of a sequence, such as an array, vector, or string. It’s a reference to a contiguous chunk...")
  • 19:0219:02, 23 November 2025 Designing Domain-Specific Languages (DSLs) with Rust Macros and Parser Combinators (hist | edit) [20,389 bytes] PC (talk | contribs) (Created page with "500px Domain-Specific Languages represent one of the most powerful tools in a developer’s arsenal for creating expressive, maintainable solutions to complex problems. When combined with Rust’s sophisticated macro system and type-safe parser combinators, DSLs become not just powerful but also reliable and performant. This exploration delves into the techniques and strategies for crafting both embedded and external DSLs that leverage Rust...")
  • 18:5918:59, 23 November 2025 Loops (hist | edit) [10,421 bytes] PC (talk | contribs) (Created page with "Loops in programming (fundamental and very useful), including Rust, are like a repeating task you tell the computer to do until a certain condition is met or a task is finished. Think of loops as asking someone to keep stirring a pot of soup until it’s ready. Yesterday we covered iterators, and if you missed that you can check it out below. Iterators After playing with vectors, and enums the last two days, it’s time to look in on Rust’s iterators -a feature that ma...")
  • 18:5618:56, 23 November 2025 Beyond WebAssembly: Where Rust is Quietly Dominating (and You Haven’t Noticed) (hist | edit) [10,380 bytes] PC (talk | contribs) (Created page with "When you hear “Rust,” your mind might immediately jump to WebAssembly (Wasm). And for good reason! Rust’s unparalleled performance, memory safety, and small binary sizes make it an ideal choice for compiling to Wasm, enabling high-performance code to run in browsers and beyond. It’s a fantastic pairing that has rightly garnered massive attention in the web development community. 500px But to only see Rust through the lens of WebA...")
  • 18:5418:54, 23 November 2025 Easy Concurrency Mastery: Exploring the Read-Write Lock Pattern in Rust for Performance (hist | edit) [9,995 bytes] PC (talk | contribs) (Created page with "500px Photo by Pixabay: https://www.pexels.com/photo/gray-metal-typewriter-part-in-close-up-photo-261626/ In another article we discussed the Lock pattern. In this article we used the type. The problem with this type is, is that it doesn’t distinguish between reading from a resource, like accessing an element in a vector, and writing to it. In cases where many threads need to read a resource at one, and there are a few write-o...")
  • 18:5118:51, 23 November 2025 Iterators (hist | edit) [7,254 bytes] PC (talk | contribs) (Created page with "After playing with vectors, and enums the last two days, it’s time to look in on Rust’s iterators -a feature that makes working with collections feel like a breeze. Iterators are like a conveyor belt in a factory, delivering items one by one for your code to process, without you needing to micromanage the details. They’re flexible, efficient, and pack a punch for real-world tasks. In this guide, we’ll walk through what iterators are, how to use them, and how the...")
  • 18:4818:48, 23 November 2025 Vectors (hist | edit) [8,158 bytes] PC (talk | contribs) (Created page with "After getting cozy with enums and pattern matching in our previous days, it’s time to turn our attention to another Rust superstar: vectors. If you missed yesterday’s writeup, you can check out the link below. Pattern Matching with Enums Yesterday, we looked into Rust enums, seeing how they can be used for modelling choices, states, and even data-packed… medium.com If enums are about choosing between distinct options, vectors are about gathering a bunch of items...")
  • 18:4318:43, 23 November 2025 Unlocking Effortless Asynchrony: Mastering the Easy Event-Driven Paradigm in Rust (hist | edit) [10,305 bytes] PC (talk | contribs) (Created page with "500px Photo by Tima Miroshnichenko: https://www.pexels.com/photo/alarm-clocks-on-wooden-shelves-8327954/ Introduction Sometimes, when your program has a task that takes a lot of time, like working with databases, web services, or complex calculations, you might want to let it happen in the background. This way, your program can keep running smoothly without waiting for the time-consuming task to finish. In Rust, we can ac...")
  • 18:3218:32, 23 November 2025 The Story of the Rust Foundation (hist | edit) [2,892 bytes] PC (talk | contribs) (Created page with "500px Image: Rust Foundation logo (credits: Rust Foundation) Hello, Rustaceans We’re already halfway through the month. Keep that momentum rolling. In this issue, we’ll discuss how Rust Foundation came to be, present you a Rust challenge, spotlight an amazing Rust project, and share 10 incredible links of the week. Here’s issue 89 for you! MAIN NEWS The Story of the Rust Foundation Ever wondered how the Rust Foun...")
  • 18:2718:27, 23 November 2025 The Cloudflare Outage and Rust’s Marketing Problem (hist | edit) [4,271 bytes] PC (talk | contribs) (Created page with "500px On November 18, 2025, a huge chunk of the internet went dark. Services like X, ChatGPT, Canva, and Letterboxd all went offline. The root cause? A single unwrap() call in Rust code that triggered a panic across Cloudflare’s 330+ datacenters. The fallout was immediate: some defended Rust’s safety guarantees, others claimed this proved Rust isn’t special, and many were simply confused about what had gone wr...")
  • 18:2418:24, 23 November 2025 Rust Won’t Save Your Go Service — Fix Postgres And Move 8% Instead (hist | edit) [8,983 bytes] PC (talk | contribs) (Created page with "500px Our Go checkout service wasn’t on fire. That would have been easier. Instead, it was slowly cooking: * Dashboards getting a little redder every month * Support tickets creeping up * Latency graphs that looked “tolerable” if you squinted Inside the team, the conversation went exactly the way you’d expect in 2022: “Go is hitting its limit, we should rewrite the core in Rust.”
“Rewrites are dangerou...")
  • 18:2118:21, 23 November 2025 Why I Replaced Parts of My Python Automation Stack With Rust Extensions (hist | edit) [6,223 bytes] PC (talk | contribs) (Created page with "500px When Python Hit Its Limits I’ve been building automation frameworks in Python for years — orchestrating APIs, running micro-agents, moving data, and managing workflow pipelines. Python is elegant, easy to maintain, and fast enough for most tasks. But eventually, the bottlenecks became obvious: * Heavy numeric computation in data preprocessing * Tight loops in internal ETL engines * High-frequency API polli...")
  • 18:1718:17, 23 November 2025 This Week in Rust 626: Android’s Rust Revolution & Format Macro Magic (hist | edit) [13,704 bytes] PC (talk | contribs) (Created page with "Hey Rustaceans! Welcome back to another edition of This Week in Rust. This week brings some of the most compelling real-world validation of Rust’s value proposition yet — with Google Android revealing game-changing metrics on Rust’s impact, plus significant compiler improvements that make everyday Rust development smoother. From a 1000x reduction in memory safety vulnerabilities to revolutionary format macro optimizations, let’s dive into what’s making waves th...")
  • 18:1418:14, 23 November 2025 Rust Crate : I Forked a 220k-Download Wi-Fi Scanner and Removed All CLI Dependencies (hist | edit) [8,227 bytes] PC (talk | contribs) (Created page with "500px Summary: I forked the popular Rust crate wifiscanner and rewired it to use native system interfaces on Windows, macOS, and Linux—no more brittle parsing of netsh, iw, or airport. The result is a new crate, wifi_scan, that’s faster, more reliable, i18n-friendly, and future-proof. It’s on GitHub and crates.io—feedback and PRs (especially for macOS) are very welcome. Why I did this The original wifiscanner has ov...")
  • 18:1318:13, 23 November 2025 Rust Kernel Abstractions: How Linux Drivers Got Memory-Safe Without Runtime Overhead (hist | edit) [10,982 bytes] PC (talk | contribs) (Created page with "500px he compiler kept rejecting my interrupt handler. I was convinced Rust was too strict for kernel work. Then I realized my entire approach was wrong — I was trying to share mutable state across interrupt contexts without synchronization. Rust’s borrow checker enforces exclusive mutable access or shared immutable access at compile time, preventing data races that cause kernel panics. The borrow checker wasn’t being pedantic...")
  • 18:0818:08, 23 November 2025 Async Trait Bounds in Rust: Send + Sync Demystified (hist | edit) [9,288 bytes] PC (talk | contribs) (Created page with "500px The compiler throws an error. Something about Send not being satisfied. You add + Send to your trait bound. Now it complains about Sync. You add that too. It compiles. You have no idea why. Here’s what nobody mentions upfront: async trait bounds aren’t about being correct. They’re about being honest with the compiler about what your code might do across threads. You’re not alone in this confusion. A 2025 survey...")
  • 18:0618:06, 23 November 2025 Tokio Made My Rust Service 10x Faster — Then It Made My Life 10x Harder (hist | edit) [8,340 bytes] PC (talk | contribs) (Created page with "The night Tokio almost broke me started with a beautiful graph. 500px Requests per second were up. p95 latency was down. The dashboard said we had never been faster. My phone said something else. Support was flooded with complaints about timeouts while every metric smiled at us. That was the moment I learned that making a Rust service ten times faster is easy. Living with that speed is the hard part. When Tokio Fel...")
  • 18:0418:04, 23 November 2025 Rust Won The Benchmarks, Go Won The Jobs: What I Learned The Hard Way (hist | edit) [6,937 bytes] PC (talk | contribs) (Created page with "500px Photo by Greg Jewett on Unsplash I went through a phase where my identity as an engineer was basically a language logo. If you asked me “Rust or Go?”, I would not just answer.
I would defend Rust with passion.
Memory safety. Zero-cost abstractions. Fearless concurrency. Meanwhile my Go friends would laugh and say, “Cool, but our services are in production.” One day I opened my Medium stats, my GitHub, my inbox...")
  • 18:0218:02, 23 November 2025 Rust’s Borrow Checker Isn’t Out to Get You — It’s Saving You From Yourself (hist | edit) [8,110 bytes] PC (talk | contribs) (Created page with "500px (and how to fix those maddening E0499 / E0502 / E0506 errors with clean patterns) If you’ve ever danced with Rust’s borrow checker and felt your feet get tangled, you’re not alone. The code below looks innocent enough: <pre> fn main(){ let mut cur = &mut 7; let mut nxt: &mut i32 = &mut *cur; if true { let y = &mut *cur; // E0499: cannot borrow `*cur` as mutable more than once // *cur = 7;...")
  • 17:5917:59, 23 November 2025 From C to Rust: Lifetimes — Compile-Time Garbage Collection (hist | edit) [9,542 bytes] PC (talk | contribs) (Created page with "Note: This post builds on concepts from From C to Rust: ownership. If you haven’t read that yet, start there to understand Rust’s ownership system, which forms the foundation for lifetimes. 500px In the previous post on ownership, we saw how Rust prevents use-after-free and double-free bugs by tracking which variable owns each heap allocation. The owner is responsible for cleanup, borrowers can temporarily access the data, an...")
  • 17:4917:49, 23 November 2025 The Future is Containerless: Why Rust and WASM are Coming for Docker (hist | edit) [8,070 bytes] PC (talk | contribs) (Created page with "500px Okay, let’s have a talk. For what feels like forever, Linux containers have been the cool kids on the block. If you were doing anything in the cloud, you were using Docker. It was the law. And honestly? It was amazing for a while. Docker and Kubernetes completely changed the game, and we all jumped on board. But I’ve got this nagging feeling lately, and I don’t think I’m alone. The magic is starting to fade. Wh...")
  • 17:4717:47, 23 November 2025 RustFrom Rapid Scripts to Blazing Speed: Mastering Python and Rust Together (hist | edit) [9,124 bytes] PC (talk | contribs) (Created page with "500px You know that feeling, right? You’re in the zone, hammering out some Python code. It feels amazing. You can build a script, an API, or mess with a huge dataset in what feels like no time at all. Python is just… easy. It’s friendly, it makes sense, and there’s a library for basically anything you can dream up. But then you hit it. The wall. 🧱 Your script starts to drag its feet. It’s processing data so slowly you co...")
  • 17:4517:45, 23 November 2025 Go Devs, Meet Your New Memory MVP: Why Rust’s Ownership Model is a Game-Changer! (hist | edit) [17,972 bytes] PC (talk | contribs) (Created page with "500px Alright, folks, listen up! Ever sit there, sipping your coffee, and wonder if you could actually have it all when it comes to writing code? I mean, fast and safe? For a long time, many of us, especially in the Go community (and, hey, I’m right there with you!), have really loved how Go’s garbage collector, or GC, just handles memory for us. It makes concurrency feel pretty chill and, honestly, frees up our brains...")
  • 17:4017:40, 23 November 2025 Resource consumption by Rust (hist | edit) [8,302 bytes] PC (talk | contribs) (Created page with "500px You run `cargo build` on a large Rust codebase, something like compiling a blockchain node from source and saw your system freeze or face an out-of-memory error. I faced this issue when building Mina Protocol’s rust node on my 16GB machine and got me thinking what is happening in my machine during Rust compilation and can it be optimized for a successful build? This happens due to compiled languages like Rust can ask...")
  • 17:3817:38, 23 November 2025 Automating GitHub Weekly Labels: My New Rust Tool (hist | edit) [5,487 bytes] PC (talk | contribs) (Created page with "If you’ve ever spent time managing GitHub repositories, you know that labels can make or break your workflow. They help organize issues, track progress, and make project dashboards readable at a glance. But let’s be honest: manually creating labels for every repository in an organization — especially weekly labels — can quickly become tedious. That’s why I decided to automate the process. 500px Enter my latest side...")
  • 17:3617:36, 23 November 2025 When Rust Won’t Vectorize: How to See Why, Prove Whose Fault It Is (rustc vs LLVM), and Fix It (x86 and AArch64) (hist | edit) [11,646 bytes] PC (talk | contribs) (Created page with "500px You’ve got a hot loop that blazes on x86_64 but stubbornly refuses to vectorize on aarch64. You peek at LLVM IR, you squint at Godbolt, you try a few tweaks…and still no SIMD on Apple M-series or modern ARM servers. Let’s solve this properly: * What’s happening? Your loop shape asks for gathers from src + an in-place RMW store to latents. x86 can often paper over this with AVX2 gathers and tolerant alias analys...")
  • 17:3317:33, 23 November 2025 We Didn’t Rewrite the Java Monolith — We Parked a Rust Sidecar Next to It (hist | edit) [9,466 bytes] PC (talk | contribs) (Created page with "500px Photo by Trevor Vannoy on Unsplash The first time someone suggested Rust at work, it sounded like this: “We should just rewrite the whole service in Rust. Java is clearly the bottleneck.” Our on-call charts were ugly: * p95 around the “token generation” API was spiking during traffic bursts * JVM CPU looked bad * GC logs were full of minor collections It was easy to blame Java. But when we dug in,...")
  • 17:3017:30, 23 November 2025 Rust Reshapes Blockchain Development as Performance Demands Soar (hist | edit) [45,219 bytes] PC (talk | contribs) (Created page with "500px Rust has emerged as the defining language for next-generation blockchain infrastructure, powering platforms that process billions of daily transactions while attracting more new developers than Ethereum for the first time in 2024. The ecosystem now commands $22 billion in total value locked, processes over 200 million transactions daily, and employs 4 million developers globally — double the number from just two years ag...")
  • 17:2717:27, 23 November 2025 Building Robust Unit Tests for btcturk websocket Client: A Testing Journey in Rust (hist | edit) [5,681 bytes] PC (talk | contribs) (Created page with "This is basically a follow up story of my learning journey, which is some how not written by AI (very un common these days) A couple years ago, while I was refreshing my knowledge about rust I studied the most about unit tests. 500px Rust for Startest (Part-3 Tests) I was studying Rust as always and improving my library here about websockets… medium.com Coming to end of 2025, I finally released a nice package, wh...")
  • 17:2417:24, 23 November 2025 Rust + Web3 + AI: Fully Automated On-Chain Intelligence Agents (hist | edit) [14,355 bytes] PC (talk | contribs) (Created page with "500px Fast, safe, async, predictable. We will be creating a continuous stream of AI-generated blockchain insights. It combines Rust, Web3 infrastructure, and LLM-powered reasoning to form a fully autonomous intelligence agent. The agent will be capable of monitoring Ethereum in real time, interpreting on-chain dynamics, generating human-readable analysis, and publishing it to the world. SYSTEM STRUCTURE The system listens to new blocks as...")
  • 17:2117:21, 23 November 2025 Comprehensive Guide to Using Rust in Android Development (hist | edit) [17,882 bytes] PC (talk | contribs) (Created page with "Introduction 500px If you’ve been keeping an eye on modern systems programming, you’ve probably noticed Rust popping up everywhere — and Android development is no exception. Rust brings memory safety, strong performance, and a fresh way of thinking about low-level code. In this guide, I’ll walk you through how Rust fits into Android projects, why teams are adopting it for performance-critical...")
  • 17:1617:16, 23 November 2025 Rust String Concatenation: A Friendly, No-Nonsense Guide (with Optimal Patterns) (hist | edit) [7,133 bytes] PC (talk | contribs) (Created page with "500px Rust gives you two main string flavors: &str (a borrowed string slice) and String (an owned, heap-allocated, growable string). Concatenation is really just about where the bytes live and who owns them. Below is an engaging, practical tour through the most common combinations — plus a simple decision chart so you can pick the optimal approach for your use case. Quick Primer: &str vs String * &str — a view in...")
  • 17:1317:13, 23 November 2025 Rust Lifetimes Without the Confusion: A Practical Guide (hist | edit) [7,538 bytes] PC (talk | contribs) (Created page with "500px Rust lifetimes aren’t arcane syntax they’re the guardrails that prove your references are safe before your code ever runs. You’re three hours into a refactor and everything compiles. Clean. You add one line, just borrowing a string reference, and the compiler explodes with expected named lifetime parameter. Four lines of angry red text with apostrophes and angle brackets you've never typed before. You stare at it. You google it...")
  • 17:0817:08, 23 November 2025 Rust vs TypeScript on Solana: Building a High-Throughput Pump.fun On-Chain Indexer (Modular, Scalable, 429-Safe) (hist | edit) [5,894 bytes] PC (talk | contribs) (Created page with "500px Introduction Solana’s high-throughput architecture makes it a fantastic chain for real-time applications, but it also forces you to design your systems around speed, concurrency, and resilience. Over the past few weeks, I built a Pump.fun on-chain listener in both Rust and TypeScript — not for trading, but to understand how Solana log events work, how to build a clean indexing pipeline, and how to design extensib...")
  • 13:1213:12, 23 November 2025 A Minimal Rust Template for Advent of Code (hist | edit) [6,145 bytes] PC (talk | contribs) (Created page with "Every year when Advent of Code begins, I find myself repeating the same routine: copy last year’s folder, delete the old solutions, reset the inputs, and re-establish the structure. It technically works, but it’s tedious, and it makes the first day of AoC feel messier than it should. I’ve used several Rust templates over the years, but most of them fell into two extremes: either too bare-bones to stay organized for the entire AoC days, or too elaborate, with traits...")
  • 13:0713:07, 23 November 2025 7 Rust Patterns That Outperform C++ (hist | edit) [7,193 bytes] PC (talk | contribs) (Created page with "500px Learn 7 Rust patterns that outperform C++ in high-performance systems, from memory safety to zero-cost abstractions and fearless concurrency. Why Rust vs. C++ Is More Than Just Hype For decades, C++ was the gold standard for high-performance systems programming. From operating systems to game engines, it offered speed, control, and flexibility unmatched by higher-level languages. But then came Rust. At first, i...")
  • 13:0613:06, 23 November 2025 How to (Safely) Create a Global, Mutable Singleton in Rust — and When You Actually Should (hist | edit) [8,432 bytes] PC (talk | contribs) (Created page with "500px Summary * Prefer no globals: construct early (e.g., in main) and pass &mut/& where needed. * If you must have a global: use std::sync::LazyLock (Rust ≥ 1.80) with a lock type (Mutex/RwLock) that matches your access pattern. * For single-threaded graphics loops (typical OpenGL): consider thread_local! + RefCell to avoid cross-thread locking. * For counters/flags: use atomics. * Avoid static mut and ra...")
  • 13:0313:03, 23 November 2025 Ubuntu’s Rust Transition and the sudo-rs Security Vulnerabilities: A Technical Analysis (hist | edit) [4,677 bytes] PC (talk | contribs) (Created page with "Ubuntu’s effort to modernize its system stack by rewriting critical components in Rust has been one of the most significant architectural changes in recent years. As part of this transition, Canonical introduced sudo-rs, a Rust-based reimplementation of the traditional sudo command. While the goal is to enhance safety and long-term maintainability, recent security issues in sudo-rs show that such transitions are not without challenges. This article dives into the te...")
  • 13:0213:02, 23 November 2025 RustError: Why does Clippy warn about op ref for - and *, not just ==? (And how to fix it cleanly) (hist | edit) [7,448 bytes] PC (talk | contribs) (Created page with "500px If you’ve ever overloaded operators in Rust, you’ve probably written a little “forwarding impl” to avoid duplicating logic. Something like: <pre> impl Sub<&ComplexCommutativeOperator> for &RealCommutativeOperator { type Output = ComplexCommutativePolynomial; fn sub(self, rhs: &ComplexCommutativeOperator) -> ComplexCommutativePolynomial { // real logic lives here ...: } } impl Sub<Complex...")
  • 13:0013:00, 23 November 2025 Rust Is Quietly Transforming Android Security — And the Entire Software Industry Should Pay Attention (hist | edit) [14,961 bytes] PC (talk | contribs) (Created page with "500px How Google drove memory-safety bugs below 20% for the first time — and why Rust’s impact goes far beyond security. Google’s adoption of Rust in Android has reduced memory-safety vulnerabilities by over 1000x compared to C/C++. Memory-safety bugs now represent less than 20% of Android’s vulnerabilities for the first time in the platform’s history. Even more surprising: Rust is not only safer — it is...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)