You die twice. One time when you stop breathing, and a second time, a bit later on, when somebody damns your soul for the last time.

  • Hafez Al-Assad
  • 1 Post
  • 9 Comments
Joined 2 years ago
cake
Cake day: December 17th, 2024

help-circle


  • Very integral. When someone says they’re “struggling with Rust”, it’s thanks to the borrow checker.

    Rust’s whole shtick is the way it manages memory, which is the rules enforced by the borrow checker.

    Basically:

    When you want to store values in variables in any programming language, the memory should be allocated when you need it and freed as soon as you don’t anymore.

    Traditionally there are two ways this is done:

    1. You manage it completely yourself, which is “unsafe” as you can forget to free memory you no longer need. This is called leaking memory. Or “reference” the location of something you freed previously, thereby attempting to read data you may not have permission to read (the OS will usually prevent that and kill the program), or reading and using a value you didn’t expect, causing undefined behavior and fun to deal with bugs.

    2. The language, sometimes using a process which runs alongside your main program, manages memory. Which adds lots of overhead.

    Rust has it’s own way of doing this: It adds some rules on how you can pass around references and ownership and these rules are affected by whether you can or can’t edit the referenced data. All just so the compiler knows the lifetime of the vars that hold that data and when it can free it (before the program is even compiled, so no overhead when the program is running). Not following the strict rules prevents your program from being compiled into an executable.

    The compiler gives very helpful info, tips, and pointers™ though, Rust is also know for this.



  • Isn’t “otherworldly” specifically the vibe they are going for? They are basically trying to make this portal to this other, heavenly world I always thought.

    Not really. Some mosques incorporate imagery inspired by Quranic verses describing landscapes or scenery from heaven, but Islamic heaven is just gardens, rivers of honey, milk and wine, grand white or gold buildings and castles. So a mosque which incorporates them would look more natural and less “intimidating”, nothing like the one in the picture. A mosque which fits that description is the Umayyad mosque.

    Mosques are decorated this way most of the time because they’re “houses of God”. So they nearly always incorporate Quranic verses and names of God in specific calligraphy styles of Arabic, use “preferred colors” of Islam: white, black, green, red, dark blue, dark brown, and look luxurious and abstract.


  • WDYM Libadwaita is not customizable? Libadwaita is the most customizable UI lib I would say. You literally can just change every part of any app through css and call it a day.

    I haven’t tried doing it in a while, but I remember it being very difficult to change themes beyond tint and colors, with lots of apps having custom colors not in the pallet used in the “gtk.css” file.


  • Gnome is great.

    Most Linux users can’t deal with every single project not prioritizing customization. Gnome having a unique workflow (which is a great one) is unbearable for some reason.

    I am not gonna place the full blame on the Linux community though. Gnome started out way more customizable, so maybe that suddenly getting pulled from underneath Gnome users so inconsiderately gave it a bad reputation.

    Then they went and did absurd things with libadwaita to not only stop supporting customization, but actively interfere with people’s choices of customizing Gnome and libadwaita apps so apps ~“are viewed and used as intended by their developers, and people don’t accidentally break apps and complain to the devs” (i.e. Bullshit).

    Literally the only foundation that made Linux usable, stable, unified and customizable.

    I really can’t see how. It’s popular and user friendly, but I can’t seriously give it that much importance.

    For me at least: It just serves to show that Linux UIs can be clean, consistent, and user friendly. Which might pull in funding from companies and governments looking for a good UI to mass deploy.

    But if it didn’t exist, Plasma would’ve eventually filled that vacuum.


  • “Wallah” and “Wallahi” are the same word in Arabic. The latter spells out all the diacritics, but the last diacritic of the last word can be dropped in Arabic so people may drop the “Kasra” (E or Y sound).

    When you want to exaggerate a word you usually put extra emphasis on the last diacritic or letter if it’s a vowel, so you must sound it out.