• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: July 20th, 2023

help-circle





  • I think rust has good ideas and may even become the default systems language in the mid-term. I find it irritating that there is a very vocal subset of rust proponents that tend to insist that every project in every language needs to be rewritten in rust immediately. I suspect that is also why other people are down on rust.




  • The person you were replying to originally said they were voting dem because they felt like they had to but that they weren’t excited to. That is a very reasonable stance being that we are living in the fucking gilded age. Maybe the poorest people are slightly better off but the richest people are still hoarding even more money/ control/ influence and the people you’re wanting to worship as saviors haven’t even remotely addressed it.

    Where are we talking about addressing the ridiculous health care system that is entirely designed to extract money for rich people instead of prioritize outcomes. Where are we taking about addressing the increasingly expensive education system? (Forgiving student loans is a band aid that while helpful in the here and now does nothing to fix the real problems). I could go on and on. This is a country optimized for rich people and you are expecting people to celebrate crumbs from the table.

    You really need to get off your high horse and understand that people really need to be given real reasons to feel optimistic about the future instead of saying “here are some numbers” while people can’t afford their rent and groceries.







  • The way that rust attempts to prevent this class of error is not by making an implementation of free that is safe to call twice, but by making the compiler refuse to compile programs where free could be called twice on a pointer.

    Anyway, use after free doesn’t depend on a double free. It just means that the program frees memory but keeps the pointer (which now points at memory that could contain unrelated data at some future point in time) and if someone trying to exploit the program finds a way to induce the program to read or write to that memory they may be able to access data they are not expected to, or write data to be used by a different part of the program that they shouldn’t be able to