Unofficial Hacker News companion — get notified on comment replies, and more.

Moratorium (opens external site)

623 points by ultraficial 3 days ago | www-cs-faculty.stanford.edu | 422 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. Or what compilers turned ABI into.

    Did you know unique_ptr is stack-allocated, not in a register, because the ABI says all objects are stack-allocated, not in registers, because the language says they have stable addresses? So whenever you pass a pointer, you actually pass a pointer to a pointer.

    I presume Rust fixes this.

    Replies (2)
    1. Box<T> can be passed via registers, that’s correct.
    2. Yes, Rust objects do not have stable addresses by default.