• 0 Posts
  • 24 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle



  • I, too, work in a similar type of company, and can confirm from experience that Linux can get just as absolutely fucked up by a bad kernel module as windows.

    And it’s not just changes to the module that can cause things to go wrong.

    For example, the kernel released alongside the latest Ubuntu LTS included a change that conflicted with our module behaviour, so machines with that kernel or newer would panic on boot.

    It was a super minor change, but when you’re deep in the weeds, it’s really easy for these things to be brittle. But that’s just an inherent consequence of the fact that this sort of stuff is intrinsically low-level interaction with the OS itself.











  • The original example was doing the unwrap_within an iterator doing some string parsing, so there was a lot of unrelated boilerplate around the actual unwrapping that made it really unclear, as well as usual unwrap_or_else to produce a constant value

    Ehhh, I was more using get_default as a placeholder for some function, as opposed to representing Default::default for the inner type specifically. I think it should be alright since only people familiar with rust would know about the default trait anyway. I did consider adding an unwrap_or_default example, but thought it was getting a bit off topic at that point.






  • xor@lemmy.blahaj.zonetoProgramming@beehaw.org*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    They’re trying to work out what problem you’re trying to solve, so they can give you actually useful advice for your - frankly - very vague question

    “What are you trying to achieve” is a perfectly reasonable question to ask about a deeply under-specified problem

    Edit: here’s my theory:

    This is a homework or interview question you’ve been asked, that depends on specific context that you haven’t included (because you don’t know what context is even relevant)

    You don’t want to admit that’s why you’re asking, because you know that defeats the point of you being asked in the first place.

    Hence, you’re being absurdly hostile to someone trying to help, because you can’t answer their question without admitting you’re trying to cheat