• 1 Post
  • 9 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle


  • Define what makes a rust program “real” lol.

    Any kind of library that does a lot of low-level stuff (kernel syscalls, custom binary reprs, ffi) will have to use unsafe. But most applications built using these libraries rarely need to use unsafe at all, because the libraries act as safe wrappers to make sure the app developer isn’t accidentally violating invariants allowed by the “unsafe” keyword.






  • I’m not sure about discrimination against customers based on ideology, but I’m pretty sure you can’t discriminate against customers based on protected class (sex, race, orientation, etc.) What this supreme court case does (IIUC) is that companies are now allowed to not provide services to protected classes if those services constitute speech. So if you are a restaurant owner, or a hotel, you still can’t refuse a gay couple, if you are a cake designer, you can’t refuse to make a cake, but you can refuse to do anything remotely gay-related to that cake, if you are a web designer, you can refuse to make something altogether because the government can’t restrict or compel speech (and graphic design is speech).