memory-safety

Tag

Cards List
#memory-safety

InvisiCaps: The Fil-C Capability Model

Lobsters Hottest · 3d ago Cached

Describes Fil-C's InvisiCaps capability model for ensuring memory safety in C and C++ by tracking pointer permissions, while aiming for fanatical compatibility and reasonable performance.

0 favorites 0 likes
#memory-safety

Rust for Morello: Always-On Memory Safety, Even in Unsafe Code

Lobsters Hottest · 3d ago Cached

This paper presents a modified Rust compiler for the Morello capability hardware architecture, enabling always-on memory safety even in unsafe code by leveraging hardware capabilities.

0 favorites 0 likes
#memory-safety

Memory Safety's Hardest Problem

matklad · 3d ago Cached

This article discusses a fundamental memory safety challenge involving tagged unions where a pointer to one variant is used after the union is overwritten with a different variant, leading to type confusion. The author also argues that buffer overflows are the most exploitable memory error and could have been mitigated with better array syntax.

0 favorites 0 likes
#memory-safety

C Strings: A 50-Year Mistake

Lobsters Hottest · 2026-07-15 Cached

A critique of null-terminated strings in C, arguing that length-based strings are superior for modern programming, leading to fewer bugs and better performance.

0 favorites 0 likes
#memory-safety

Rewriting Bun in Rust

Simon Willison's Blog · 2026-07-08 Cached

Jarred Sumner details the agentic rewriting of Bun from Zig to Rust using AI, costing $165k in tokens and resulting in a 10% faster startup.

0 favorites 0 likes
#memory-safety

Memory Safe Context Switching (longjmp, setjmp) in Fil-C

Hacker News Top · 2026-06-30 Cached

Fil-C introduces memory-safe implementation of setjmp/longjmp and ucontext APIs, preventing dangling stack corruption and panicking on misuse.

0 favorites 0 likes
#memory-safety

Core dump epidemiology: fixing an 18-year-old bug

OpenAI Blog · 2026-06-30 Cached

OpenAI engineers detail the diagnosis of seemingly impossible crashes in Rockset's C++ data infrastructure, revealing both a silent hardware corruption bug on Azure and an 18-year-old race condition in GNU libunwind, resolved through epidemiological analysis of crash data.

0 favorites 0 likes
#memory-safety

What is `std::pin::Pin` in Rust?

Lobsters Hottest · 2026-06-29 Cached

Explains the `std::pin::Pin` type in Rust, why pinning is needed for self-referential types like async state machines, and how `Pin` prevents moves while allowing safe mutation.

0 favorites 0 likes
#memory-safety

Ante: New Way to Blend Borrow Checking and Reference Counting

Lobsters Hottest · 2026-06-29 Cached

Ante introduces a novel approach to blending borrow checking and reference counting without runtime crashes, enabling developers to use both paradigms seamlessly in a systems programming language.

0 favorites 0 likes
#memory-safety

Apple Internals: Swift in the Kernel

Lobsters Hottest · 2026-06-21 Cached

Apple has begun integrating Swift into the kernel via a new effort called KernelKit, with an Embedded Swift runtime appearing in macOS and iOS, marking a step toward memory-safe kernel extensions.

0 favorites 0 likes
#memory-safety

Memory Safe Inline Assembly

Hacker News Top · 2026-06-20 Cached

Fil-C introduces memory-safe inline assembly, ensuring that programmer errors result in panics or traps rather than miscompilation.

0 favorites 0 likes
#memory-safety

Fearless Concurrency on the GPU: Safe GPU inference in Rust, competitive with vLLM/SGLang [R]

Reddit r/MachineLearning · 2026-06-18

cuTile Rust introduces a tile-based programming model that leverages Rust's ownership to guarantee memory safety and data-race freedom for GPU kernels, and the Grout inference engine built on it achieves competitive throughput with vLLM/SGLang for Qwen3 models.

0 favorites 0 likes
#memory-safety

Show HN: cuTile Rust: Safe, data-race-free GPU kernels in Rust

Hacker News Top · 2026-06-16 Cached

NVIDIA Labs releases cuTile Rust, a tile-based system for writing memory-safe, data-race-free GPU kernels in idiomatic Rust. It extends Rust's ownership model to GPU kernels, JIT-compiles Rust AST to GPU code, and achieves performance close to native CUDA.

0 favorites 0 likes
#memory-safety

Memory safety CVEs differ between Rust and C/C++

Hacker News Top · 2026-06-15 Cached

An analysis of how memory safety CVEs are reported differently in Rust vs C/C++, arguing that Rust's design reduces certain classes of vulnerabilities even when bugs exist.

0 favorites 0 likes
#memory-safety

Swift at Apple: Migrating the TrueType Hinting Interpreter

Hacker News Top · 2026-06-12 Cached

Apple migrated the TrueType hinting interpreter from C to Swift, achieving memory safety and a 13% performance improvement. The source code has been open-sourced.

0 favorites 0 likes
#memory-safety

Release Fil-C Linux/x86_64 version 0.679 · pizlonator/fil-c

Lobsters Hottest · 2026-06-08 Cached

Fil-C 0.679 is a new release of a fanatically compatible memory-safe implementation of C and C++ that uses concurrent garbage collection and invisible capabilities to prevent all memory safety errors without escape hatches.

0 favorites 0 likes
#memory-safety

Safe Made Easy Pt.1: Single Ownership is (Not) Optional

Lobsters Hottest · 2026-06-03 Cached

This article introduces a new approach to memory safety based on linear types and abstract interpretation, aiming to eliminate common bugs like use-after-free and memory leaks more ergonomically than Rust.

0 favorites 0 likes
#memory-safety

Bun Has Been Converted to Rust. Now What?

Hacker News Top · 2026-06-03 Cached

Anthropic acquired Bun and used Claude Code agents to rewrite the entire runtime from Zig to Rust in nine days. The rewrite passed 99.8% of tests but introduced over 10,000 unsafe blocks, raising questions about the benefits of memory safety.

0 favorites 0 likes
#memory-safety

iddqd, or the hardest kind of unsafe Rust

Lobsters Hottest · 2026-06-02 Cached

This article introduces iddqd, a Rust library that provides maps where keys are borrowed from values, reducing duplication and synchronization issues. It discusses the challenges of writing unsafe Rust code and how the library maintains correctness.

0 favorites 0 likes
#memory-safety

Memory safety is a matter of life and death

Lobsters Hottest · 2026-06-02 Cached

The author argues that memory-unsafe open-source software is critically vulnerable to upcoming AI bug-finding agents, making memory safety a moral imperative, and that Rust must succeed as the leading memory-safe language with no overhead.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback