Skip Navigation
.dev Why is C hidden gold?
  • C wasn't my first language, but I learnt the most whilst learning C...

    People are talking about footguns and what not security related issues. I agree it's easy to write bad C code, but if you want to learn what's going on, learn C.

    Today I know a dozen of programming languages and C has always been in a special place in my heart. I am using Zig for my personal projects at the moment. It's similar to C, without the pitfalls, and my C knowledge still helped me to learn that language.

    Learning C is a service you are doing to yourself for the rest of your life.

  • Vanilla OS 2 - Future Plans, Updates, and Next Release
  • Evolution happens by iteration. Every iteration hopes to be a little bit better by bringing something a little bit differently.

    F1 cars are a good example of that. Yet, nobody is going to say F1 from the 90's could compete with today's version.

    And, anyway, time well spent for someone is always a waste of time for someone else.

    BTW, I want to thank all the Void Linux contributors for that excellent distribution. It has been a while since I changed my main distro.

    I was using Debian for 15 years; but sadly it didn't evolved much and something new appeared...

  • Julia Evans' Git cheat sheet
  • I think you're making a lot of misinterpretation; but that's up to you...

    But, just so that I can understand correctly... When you're saying: "if I need something more [...] I click terminal tab"

    That "terminal tab" of yours, it's a CLI isn't it?

  • Julia Evans' Git cheat sheet
  • My personal experience is most people who are using git with a GUI are the same people who are asking my help to git-fu their git-problems...

    Most GUIs only offer a subset of the git functionalities and hide what's really going on by obscuring gitshell with "their workflow".

    In all cases, use what you like; some people like the shell. Cheatsheets are normally only for learning purposes and usually don't stick for long, it's not an end game thing...

  • Ubuntu 24.10 Beta is Now Available to Download
  • Well, I believe it takes more than a day or 2 to really test a driver.

    "Testing team" or not, by seeing the releases of, for example nvidia, I don't take their "testing" seriously...

    No wonder so many people are complaining about the stability of arch...BTW... ;)

    Source: Nvidia "verified" drivers

  • Ubuntu 24.10 Beta is Now Available to Download
  • I am not here to convince you, but if you happen to look at Linux again, check out Void.

    Arch, but it's tested (no dis to arch here... Just a fact).

    I don't know much about BSD, but apparently it's an hybrid of Linux and BSD. The Void creator is an NetBSD dev.

    Not the best source, but here: https://itsfoss.com/void-linux/

  • Linus Torvalds: Speaks on the Rust vs C Linux Divide
  • it's more "it forces you to make it burrow checker friendly".

    A burrow checker is not the only mechanism to write safe code. All the mess of Rust is all because this is the strategy they adopted.

    And this strategy, like everything in this world, has trade offs. It just happens that there are a lot, like, - a lot -, of trade offs, and those are insufferable when it comes to Rust...

  • Linus Torvalds: Speaks on the Rust vs C Linux Divide
  • 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/

  • 'We can't do computer graphics anymore without artificial intelligence. We compute one pixel, we infer the other 32': Jensen thinks AI is integral to next-gen graphics tech
  • Exactly!

    I find myself coming back to cataclysm dark days ahead, caves of qud, dwarf fortress and other "low graphical" games because of the content.

    There is a limit on how long beautiful graphics can keep me playing a boring game.

    The day I understood that, I started to pickup games based on content, and gosh I am richer than ever!

    Nonetheless, I have plenty of games to play when I feel like it.

  • Safe C++
  • 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.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PU
    PushButton @lemmy.world
    Posts 0
    Comments 45