Skip Navigation
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/)ZM
zygo_histo_morpheus @programming.dev
Posts 0
Comments 157
Zig vs Rust. Which one is going to be future?
  • What do you mean by its predecessor? C++? I think rust has a bunch of advantages. For one, designing a new language today gives you the benefit of hindsight meaning that they have a more cohesive set of features and a nicer standard library compared to C++ that has some bloat and cruft as a natural result of it evolving over several decades. It's also much easier to reason about undefined behavior in rust thanks to unsafe. Algebraic data types are really nice and traits are better than classes.

    The borrow checker isn't just useful for low level programming. One of the other main selling points is "fearless concurrency" or essentially the fact that the borrow checker can help you reason about thread safe vs non thread safe data.

  • Google says replacing C/C++ in firmware with Rust is easy
  • I dunno, CMake has one of the worst syntaxes I've ever seen, and despite that it's one of the most popular languages used for C/C++ build scripting. This is because it has certain technical benefits compared to its competitors. I'm certain that having "bad" syntax is a disadvantage but it's less important than other factors. Also I don't think that Rusts syntax is universally disliked either.

  • Google says replacing C/C++ in firmware with Rust is easy
  • If you're hobby programming then do whatever you want obviously but if you're part of some sort of larger project that's trying to decide between Rust and C++ then subjective aesthetic arguments probably aren't going to be considered as heavily as technical ones (and rightfully so), which in Rusts case could be that certain classes of bugs are impossible. That's not to say that it's not possible to make a technical case for C++ over rust but syntax preferences probably aren't going to play a large role in how widely used either languages are, which is good.

  • Google says replacing C/C++ in firmware with Rust is easy
  • I don't think that everyone has to switch to rust or anything but "I dislike the syntax" and "I only want familiar things" are really bad arguments for not using a language. Try something outside of your comfort zone for a bit, it will help you grow as a programmer.

  • commit messages are optional
  • When I'm just locally iterating on stuff I'll usually do a git commit -m "WIP: Description of what I'm trying to do" and then git commit --amend to it. A bit more ergonomic than stashing if I want to switch branches imo. I can also go back to old versions if I want to through the reflog.

    git commit --fixup some-commit is also great for if I discover things in the review for example. You can then do git rebase master --autosquash to flatten them into the commit they belong to and that way you don't have to bother with commit messages like "fixed typo". Doing fixups for small fixes is good because it allows you to keep your mr broken up into several commits without also leaving in a bunch of uninteresting history.

    Can recommend checking out the --fixup section in the git documentation if you haven't heard about --fixup before.

  • FOSS Alternative to Chromecast?
  • There are probably better alternatives, but I have a raspbery pi plugged into my tv and use KDE connect to remote control the mouse and keyboard from my phone. If I wanna watch youtube I'll navigate to youtube.com and click on a video.

  • How I Use Git Worktrees - Alex Kladov
  • The different worktrees share the same .git state. The article has an example where the author uses one tree for writing code and one for fuzzing it. If they used multiple clones they'd have to push from the writing directory and pull from the fuzzing directory to get new commits to fuzz but with worktrees this state synchronization between different git directories happens automatically.

  • People that use Neovim really like Neovim | More than any other code editor, people using it want to keep using it | 2024 Stacked Overflow Developer Survey
  • "Desired" and "Admired" are very strangle labels, it like the question(s) might have been:

    Which development environments did you use regularly over the past year, and which do you want to work with over the next year? Please check all that apply.

    In which case VSCodes high "desired" score just means that it was widely used?

  • "GitHub" Is Starting to Feel Like Legacy Software
  • There's a difference between the author being mad that github is switching to react and the author being mad that github is misusing react. It is possible to use react without breaking browsers find in page functionality, which is ultimately what the author is frustrated about.

  • Linux geeks cheer as Arm wrestles x86 • The Register
  • Well right now most people develop apps supporting x86 and leaves everything else behind. If they're supporting x86 + arm, maybe adding riscv as a third option would be a smaller step than adding a second architecture

  • Post-YouTube: Why Aren't We Embracing IPFS?
  • I'm not saying that you're wrong, but I think that people are more likely to put up money if they believe in the model instead of because they are being nagged into it. For example, I have a nebula subscription that I happily pay while I refuse to pay for a yt subscription despite the fact that I watch youtube a lot more. This is more out of spite towards youtube than it not being worth the money (it probably is to be honest). I also donate money to wikipedia while I haven't ever considered shelling out for encyclopedia britannica for example.

    Video hosting is of course very expensive so I understand that it's harder to fund wikipedia-style than wikipedia. People are probably happy paying creators they like but less so spending a ton of money on infrastructure.

  • Morrowind is overly Morrowind
  • I heart vanilla is a good modlist which has some basic bugfixes and minor but faithful graphical improvements. If you wanna make the game look even better, then Volumetric Clouds, Remiros Groundcover (or some other groundcover mod) and Normal Maps for Everything are some of my top recommendations. If you wanna go crazy then there is also a modlist on the same site called graphical overhaul, but I think that it's worth sticking to a more vanilla aesthetic for a bit just so you have that as a frame of reference.

    OpenMW (or, alternatively MGE XE if you want to use the original engine for whatever reason) already have some nice graphical improvements baked into them though.