Back to Home11/15/2025, 11:31:39 PM

The inconceivable types of Rust: How to make self-borrows safe (2024)

112 points
21 comments

Mood

thoughtful

Sentiment

positive

Category

tech

Key topics

Rust programming language

memory safety

self-borrows

Debate intensity40/100

The article discusses a potential solution to making self-borrows safe in Rust, a long-standing challenge in the language.

Snapshot generated from the HN discussion

Discussion Activity

Light discussion

First comment

2d

Peak period

1

Day 2

Avg / period

1

Comment distribution1 data points

Based on 1 loaded comments

Key moments

  1. 01Story posted

    11/15/2025, 11:31:39 PM

    3d ago

    Step 01
  2. 02First comment

    11/17/2025, 4:34:23 PM

    2d after posting

    Step 02
  3. 03Peak activity

    1 comments in Day 2

    Hottest window of the conversation

    Step 03
  4. 04Latest activity

    11/17/2025, 4:34:23 PM

    1d ago

    Step 04

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (21 comments)
Showing 1 comments of 21
elevation
1d ago
I've considered rust for some performance-critical greenfield work where I would normally use C. Rust's syntax, idioms, and packaging are foreign to my team, so the only motivation to take that on is the safety of the borrow checker.

But as I investigate Rust, I learn of trivial use cases that cannot be safely represented [0] in Rust's syntax. TFA demonstrates even more provably-safe techniques that are impossible to express safely in Rust. So after all the difficulty of learning Rust, I might still have to choose between performance and safety?

My impression is that Rust 1.91.0 simply isn't a suitable C replacement for many real world use cases. But since it's already being used in production, I worry that backwards compatibility concerns will prevent these issues from being fixed properly, or at all.

Perhaps rust2 will get this right. Until then there's C.

[0]: https://databento.com/blog/why-we-didnt-rewrite-our-feed-han...

20 more comments available on Hacker News

ID: 45941443Type: storyLast synced: 11/16/2025, 9:42:57 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.