frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Rust project goals: Immobile types and guaranteed destructors

https://github.com/rust-lang/rust-project-goals/blob/main/src/2026/move-trait.md
23•paavohtl•1h ago

Comments

suddenlybananas•31m ago
Could someone explain this to me as someone who's never touched async Rust? What kind of useful patterns would this allow for?
aabhay•21m ago
It makes it easier to write recursive async functions. It makes it easier for async functions to borrow rather than clone from their outer scope.

All really awesome, non controversial and ergonomic things.

simonask•17m ago
The big one is scoped tasks, or structured concurrency.

Currently, Rust has scoped threads: Threads that are guaranteed to terminate before the function that spawned them returns. This is powerful because it allows you to pass references to data that lives on your own stack to threads that you spawn, without any bookkeeping or synchronization mechanism - just the normal borrow checker rules.

For example, you can allocate a large array, then split it into multiple non-overlapping slices, and then have a group of threads populate each slice, all in safe Rust code.

But the same isn't true for async tasks in Rust, because futures are just objects representing a state machine, and they don't get any special treatment. In particular, they carry no guarantee that the state machine will actually run to completion, which is fundamentally different from how functions run (stack frames are guaranteed to unwind in some way, either by returning or panicking, unless the entire program has terminated).

To make the situation worse, there are many cases where Rust futures are much more prone to cancellation than synchronous code, because that is also one of the big benefits of using async in the first place - for example, you may be running multiple futures in parallel, pick the result from the one that finishes first, and then cancel the rest.

Getting this stuff under control is why people say that "async cancellation" is a difficult problem to solve, and that is true in all languages that have async. These traits will hopefully make it much easier to work with in Rust.

(There are also many other interesting things you could do with this, unrelated to async. Immovable and unforgettable are both interesting properties of an object that could be used to design many cool APIs in general.)

Tazerenix•27m ago
More algebraic effects being retrofitted onto Rust.
OskarS•12m ago
mem::forget isn’t the only way you can safely leak a value, you can do it with reference cycles too, right? And there is no way for the compiler to detect that?

Isn’t that why mem::forget is safe, because you can always implement it yourself safely? How do you get around that?

How rogue officers turned a nationwide camera network into a tool for stalking

https://www.washingtonpost.com/technology/2026/08/02/how-police-officers-used-vast-network-camera...
1•baranul•2m ago•0 comments

Sony BMG copy protection rootkit scandal from 2005

https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal
1•thinkingemote•5m ago•0 comments

Fastmail offers EU data region

https://www.fastmail.com/blog/fastmail-offers-eu-data-region/
2•jamesog•10m ago•1 comments

Show HN: ssh paint.dn.ht

1•dhotson•18m ago•0 comments

The Shape of Things to Come

https://yegge.ai/essays/the-shape-of-things-to-come/
3•tosh•20m ago•0 comments

What the Bliss Taught Us

https://daniel.haxx.se/blog/2026/08/03/what-the-bliss-taught-us/
2•robin_reala•23m ago•0 comments

I stopped trusting USB-C cable labels and started testing them

https://www.makeuseof.com/i-stopped-trusting-usb-c-cable-labels-started-testing-with-meter-instead/
2•baranul•29m ago•0 comments

Giggity – Conference Schedule Viewer

https://wilmer.gaa.st/main.php/giggity.html
1•n_plus_1_acc•29m ago•0 comments

The AI Productivity Gap

https://bjorg.bjornroche.com/management/ai-productivity-gap/
1•kiyanwang•35m ago•0 comments

Language Models Agree with Each Other, Not with Readers

https://arxiv.org/abs/2607.29274
1•sbulaev•35m ago•0 comments

Practical Memory Safety

https://ohadravid.github.io/posts/2026-08-unsafe-water/
1•jandeboevrie•39m ago•0 comments

Trust Is Gone: AI Safety Needs Individuals

https://www.lesswrong.com/posts/cm3Ea9tBHpjj9zjji/trust-is-gone-ai-safety-needs-individuals
2•joozio•40m ago•0 comments

The silent handoff of the new MCP release [video]

https://www.youtube.com/watch?v=3uOoG6rholU
3•sam_3•45m ago•0 comments

Ask HN: Do you ever think about the environmental impacts of the AI datacenters?

1•roschdal•46m ago•1 comments

Adding Go's Defer to the TypeScript Compiler

https://healeycodes.com/adding-defer-to-the-typescript-compiler
1•ingve•46m ago•0 comments

Spain's plan for the first octopus farm has been abandoned

https://www.bbc.com/future/article/20260731-spains-attempt-to-farm-octopuses-has-failed
2•geox•47m ago•0 comments

A 3-line HTML drop-in that replaces passwords with FaceID

https://nxspulse.com
1•paulnexus•50m ago•0 comments

The Framebuffer People: I Cloned Every OS on r/osdev and Found Five Real Ones

https://www.seuros.com/blog/the-framebuffer-people/
3•st_goliath•50m ago•1 comments

What Makes an Intelligence Product?

https://luntta.fi/notes/what-makes-an-intelligence-product/
1•hungryhungryhip•51m ago•0 comments

A Black woman enhanced the audio in Nolan Wells' case. People listening closely

https://thegrio.com/2026/07/28/a-black-woman-enhanced-the-audio-in-a-call-related-to-nolan-wells-...
1•baranul•52m ago•0 comments

New open sourced eval tool for building agents

1•Thomeras•52m ago•0 comments

Show HN: I created a project management system

https://is.team
1•spotlayn•54m ago•1 comments

Further Developments About Internal AI Models Hacking Things

https://thezvi.substack.com/p/further-developments-about-internal
1•thm•55m ago•0 comments

A browser-based tribute to Encarta's MindMaze

https://select.supply/game/mindmaze
1•laurentiurad•56m ago•0 comments

The Free CV Builder That Gets You Hired Faster

https://www.sartorcv.com/
1•levario•58m ago•0 comments

Rust project goals: Immobile types and guaranteed destructors

https://github.com/rust-lang/rust-project-goals/blob/main/src/2026/move-trait.md
24•paavohtl•1h ago•6 comments

Discover What Your Potential Users Are Talking About

https://agenmatic.ai/
2•Nancylily•1h ago•0 comments

MCP vs. Bash

https://pac.commonsware.com/archive/mcp-vs-bash/
1•ingve•1h ago•0 comments

Why We Stopped Making Einsteins

https://www.theintrinsicperspective.com/p/why-we-stopped-making-einsteins
1•jorzel•1h ago•0 comments

WestJet labour dispute is a proxy battle between Carney and unions

https://www.theglobeandmail.com/business/commentary/article-westjet-flight-attendant-strike-proxy...
1•petethomas•1h ago•0 comments