• 0 Posts
  • 59 Comments
Joined 1 year ago
cake
Cake day: August 4th, 2023

help-circle













  • I always thought of passkeys as a convenient way to authenticate.

    I am password-less on multiple services.

    I have an authentication app on my phone that authenticate me when I am away of my computers. I have passkeys on my personal computer and another set of passkeys on my work laptop.

    If I have to authenticate from your computer I simply use my auth app, click on “it’s a public computer” and I am good to go.

    The dude discovered a butter knife and he tries to replace his spoon with it just to realize it doesn’t work well for eating a soup.




    • Zig uses allocators, which will inform you if you are leaking memory.
    • Zig comes with defer/errdefer to simplify the resource cleanup (and for ergonomics).
    • Zig comes with Optionals to manage nulls.
    • Zig comes with slices (ptr + size) to manage all the bound-checking.
    • Zig automatically check for overflow/underflow arithmetic.
    • Zig will check for pointer alignments when casting between pointer types.

    => Zig is designed to make you do it right easily, and very hard to do it wrong.

    In other words, Zig will let you be, but warn you when you are doing something wrong, where Rust is like Karen who is always screaming at you for every word you are typing.

    To summarize, you really need to /want/ to fuck up to fail your memory management… If after all that you still can’t manage your memory, it might be better for you to look for another carer.

    Something is sure thou, Zig is very safe - just as it’s safe to cut my veggies with a knife. I might cut a finger and bleed a little bit, but I will not use plastic knife “because it’s safer”.

    Moreover; You are talking like if Rust is safe, all the time, which is not true in reality:

    52.5% of the popular crates have unsafe code. Therefore, in an average real-world Rust project, you can expect a significant number of the dependent crates to have unsafe code – Source

    Basically, you’re comparing a hypothetical world where Rust is always safe to a superficial glance at Zig’s capabilities to claim a “winner” here.

    And for the String library… Are you fucking serious? Do you want to compare the Zig’s Std library versus the famously tiny Rust Std library? Really?


  • Rust in Linux lead retires

    “I was expecting [Rust] updates to be faster, but part of the problem is that old-time kernel developers are used to C and don’t know Rust,” Torvalds said. “They’re not exactly excited about having to learn a new language that is, in some respects, very different. So there’s been some pushback on Rust.” Torvalds added, however, that “another reason has been the Rust infrastructure itself has not been super stable.” – Source [24-09-03]

    I’m not sure that’s something to be crowing about, mate…



  • Don’t take it personally.

    It’s how the guy who wrote the blog sounds like, it’s not toward you.

    I tend to have a grain of scepticism when someone is declaring high and loud that something widely used us /just the worst/.

    Also, it just happens his alternative is just: “use this instead, its made in Rust”