• 8 Posts
  • 89 Comments
Joined 11 months ago
cake
Cake day: July 3rd, 2025

help-circle








  • I’m too noob to understand it all but the way I see it, the core is not about using Some instead of iter::slice but what is inside.

    I understand this all is in context of Intel Software Guard Extensions about which I know nothing at all, and “UserRef states that userspace may always write to backing memory at any time, and that even &mut UserRef<T> is not exclusive”. So it seems that the design of UserRef is basically against Rust principles (“userspace may always write to backing memory”). So when the iterator is just a wrapper over slice::Iter, the code in next() relies on Rust’s principles which don’t align with how UserRef is supposed to behave. The proposal is to walk over ptr “manually” and return it (cast to UserRef) instead of constructing new UserRef from what slice::Iter would return in that next().map(|e| UserRef::from_ptr(e)).

    But does

    +pub struct Iter<'a, T: 'a + UserSafe> {
    +    ptr: *const T,
    

    really mean that one can happily cast that ptr to UserRef?
    What is PhantomData and how/why using it makes any difference, when it’s not being changed during iteration?
    Is the UserRefdesign sound or was only a workaround some problem?












  • favorite on-going cyberpunk franchise

    Well, Shadowrun, of course! ;D
    And Cyberpunk. I’m less versed in that one but I like the feel they are getting. I mean the RPG lore books

    But getting back to your post, to me Tron has always been about visuals first. Even if the first one got old, considering the times it comes from it still looks wicked. The whole “the user” idea and worldbuilding is interesting but in a way I feel a Tron movie does not need to be sophisticated to be a good Tron movie

    GitS, I really dig the depth of the first one. But somehow with those meh reboots etc, I feel any following work will be a mixed bag. Some might get to that level, many won’t

    So, I guess Blade Runner for me. Both films are good, the RPG is done well (to allow replicating what the movies are about). So far so good