Hacker Newsnew | past | comments | ask | show | jobs | submit | masklinn's commentslogin

That has about the same issue: like std::move it doesn't really explain that the receiver decides.

std::offer

∆ That's actually quite accurate. I like it!

> Can you show an example of what you mean?

    void foo(std::unique_ptr<int, Deleter>&& p) {
        std::random_device rdev {};
        auto dist = std::uniform_int_distribution<>(0, 1);
        if (dist(rdev)) {
            auto pp = std::move(p);
        }
    }

This is exactly what I meant as irrelevant.

If I call `foo(std::move(my_unique_ptr))`, I know for sure, statically, that my_unique_ptr was moved from, as part of the function call process, and I can no longer access it. Whether `foo` chooses to further move from it is irrelevant.


The only thing that is statically known here is that you’re wrong. The function I posted only moves its parameter half the time, at random. You may want to treat it as moved-from either way, but factually that’s just not what is happening.

This is like trying to defend that you can't statically know the result of 1 + 2 because:

  void foo() {
    std::random_device rdev {};
    auto dist = std::uniform_int_distribution<>(0, 1);
    if (dist(rdev)) {
      int res = 1 + 2;
    }
  }
I can tell you for sure that the result of 1 + 2 will be 3.

> This is like trying to defend that you can't statically know the result of 1 + 2

It is completely unlike that. tsimionescu is asserting that they can always know statically whether `foo` will move its parameter. The function I provided is a counter-example to that assertion.

Of course the branch body always moves, that's what it's there for. That has no bearing on the argument.


> it's intended for transferring of ownership versus copying data.

It's intended for transferring ownership, but what it actually does is mark the value as transferrable, whether or not the value is actually transferred is up to the callee.


> Rust’s borrow checker doesn’t actually borrow anything either

Why would it? It's called the borrow checker, not the borrower. So it checks that your borrows are valid.

std::move looks and feels like a function, but it doesn't do what it says, it makes objects movable but does never moves them (that's up to whatever is using the value afterwards). If you want something similar in Rust, Pin is a much better candidate.


Sure, but from the perspective of the code that has the move() its good to assume the value is moved at that call, which I guess was the intention of picking the name.

No, the reason it was fixed is that somebody managed to reliably reproduce the issue: https://github.com/ghostty-org/ghostty/discussions/10244

As you can see, there's no hint or evidence they even are on HN let alone saw that discussion.


Dupes are not deleted, you can just search for them and see that there are not that many of those, and that's with this not being the only unsolved memory leak (https://github.com/ghostty-org/ghostty/discussions/9314 is a different one).

Not really? In your link TFAA was saying they were convinced an issue existed but the number of impacted users was limited, no maintainer experienced the issue, and they had no reproducer. As of yesterday TFAA still had no working reproducer: https://github.com/ghostty-org/ghostty/discussions/9962#disc...

In the meantime they apparently got one (edit: per their sibling comment they got it yesterday evening) and were finally able to figure out the issue.

edit: https://github.com/ghostty-org/ghostty/discussions/10244 is where it was cracked.


> Can you fit an 8'x4' sheet of plywood in it?

If you keep the rear doors open, the cargo platform is 1644 by 1540 (mm), 8x4 would be 2438 by 1219.

Most likely you'd just put sheet goods on the roof (and yes roof racks for panel vans were common, still are).

> my other main use for it is as a large gas powered wheel barrow for carrying yard waste, and the little enclosed C15 can't compete.

You can certainly put yard waste in a C15, though people usually use a trailer for that (unless there's little enough of it it fits in a large builder / garden bag).


> If the ABA misbehaves, the people of Texas can do... nothing.

Nothing precludes suing the ABA, it's a professional association not magic pixie dust.


1. get a waiver, usually after some time of practice (e.g. for the DC bar it's 3 years: https://admissions.dcappeals.gov/appinfo.action?id=200)

2. apply for reciprocity if that's an option

3. I understand that you can transfer between states with the same bar exam (mostly the so-called UBE states) as long as you pass the target states' admission score and any other qualification they require

4. pass the bar exam in each state


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: