• 0 Posts
  • 22 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.worldtoLinux@lemmy.mlWhich distro?
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    6 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…










  • As I mentioned, a couple of tasks loosely related. The patch you are mentioning isn’t complete nor address the real problem.

    It is an ugly hack at best.

    Refrain from your urge to defend rust at all costs. You are sliding more and more toward the specifics of a project than the fact I stated about rust in general.

    If you still not get my initial point I’ve made, read this.

    That’s a long read explaining what I meant. My point was about Rust, not Zed or the developers of Zed in particular.

    And for the Zed editor, I wish them the best luck, it seems like a great project that people enjoy.

    Please feel free to comment and share your thoughts on the article above, my dear favorite nutritious veggie.




  • That’s what I am saying.

    To quote you: “they don’t want to rewrite everything” …

    Writing Rust often implies major refactoring and it takes so much time to write that your requests go: “pewf” closed due to the amount of effort it takes.

    Anyway, been there, done that! Zig is probably the real future; it’s a joy to write, it compiles fast, clear to read, and safe.

    It has shared libraries and a proper integration with existing C/CPP code base.

    You should try it, that’s an amazing language with a real potential to replace the legacy.


  • Quoting the guy:

    “that rewriting those in Rust will take an eternity, so not sure what is actionable here, hence closing.”

    That’s Rust shining from all its glories here gentlemen…

    The best language, if there is nothing changing.

    That’s a thing to make a web server or a library that displays Fibonacci, that’s something else when there are humans with changing scopes…