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

help-circle


  • Zig is “c”, but modern and safe.

    The big selling points compared to Rust are:

    • A better syntax
    • No hidden control flow
    • No hidden memory allocation
    • Really great interop with C (it’s almost as if you just include the C code as you would in a C code base…)
    • Fast compile time
    • it’s more readable
    • it’s simpler to learn

    The syntax is really close to the C language; any C programmer can pick up Zig really fast.

    IMO Zig is a far better choice to go in the kernel than Rust.

    Linux has tried to include CPP in it, and it failed.

    So imagine if trying to fit in a C-like cousin failed, how far they are to fit an alien language like Rust…

    For more information: https://ziglang.org/learn/why_zig_rust_d_cpp/






  • PushButton@lemmy.worldtoProgramming@programming.devSafe C++
    link
    fedilink
    arrow-up
    16
    arrow-down
    2
    ·
    edit-2
    5 days ago

    I went for a blood test two days ago.

    The girls came back sprinting with some papers, asking me how it was possible???

    I asked calmly what was going on, right? That’s when she said she never saw, in her entire life, such beautiful, elegant, fast and clean blood!

    I was like: “darling, that’s because Zig is flowing in my veins, I just can’t stop using it”…

    That being said, I totally agree with you.


  • PushButton@lemmy.worldtoLinux@lemmy.mlWhich distro?
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    5 days ago

    As a Linux only user, I totally agree with your message.

    People who downvote you aren’t of good faith, are delusional or just dumb.

    Linux is better in every single category except ease of use for non-technical users and gaming.

    Let’s stop with this bandwagon of MS bad, Linux good; Linux is good enough for us to not lie and speak the truth…






  • Get a Foot in the Door

    It starts with “no, you don’t have to learn it”,

    to “your changes are breaking Rust stuff, let’s waste time together to fix it, else I call it ‘bad attitude’”

    to “you better make your stuff that way if you don’t want to break Rust stuff (and waste your time me)”

    to “do it my way, Rust is taking longer to fix and I would have to refactor all the code because of the lifetime cancer”

    to the original senior kernel dev saying: “fuck it, I quit, the kernel is such a mess with the Rust BS” … People don’t want you at the party, make your own party with your own friends we don’t want you here

    It’s not complicated.