Almost every thread about Rust for Linux ends up with someone saying "why not Zig instead"? And usually the answer is just "it's less mature" or "nobody pushed it".
I didn't know anything about Zig, so I decided to take a look today... and I'm not very impressed ^^;;
I learned that Zig does not have:
- Destructors
- Macros
- Lifetimes
- Operator overloading
Those are major reasons why I chose Rust for the drm/asahi driver...
It sounds like Zig is trying to be "modern C"... but the whole point of R4L is to not get stuck with C!
All those things Rust has that Zig doesn't are important for the things I'm doing.
Destructors/RAII are fundamental to how the driver tracks and cleans up firmware structures safely and reliably when needed. If I had to write "defer" everywhere it would be a bug-prone mess...
Rust's amazing macros are how I deal with the firmware versioning differences while keeping the driver maintainable. In C you can sort of do that (poorly) with the preprocessor... but Zig doesn't have that either, so that's actually a step back from C, as far as I can tell...!
I don't think I really need to explain lifetimes/memory safety, that's the one thing everyone knows is different between the languages... I'll just say, I am certain I wouldn't have gone from "first render" to "stable accelerated Linux desktop" in 2 days without memory safety.
(continued)
https://acrobat.adobe.com/id/urn:aaid:sc:US:9cdc863a-3188-4f13-8857-25970c7628ed
Heritage Foundation Makes Plans to Staff Next G.O.P. Administration
No matter the Republican, the effort has set a goal of up to 20,000 potential officials in a database akin to a right-wing LinkedIn.
By Jonathan Swan and Maggie Haberman
April 20, 2023
VCs endorsing Trump when he looked like a sure thing then pivoting to supporting Kamala when she started polling well is a testament to their herd mentality.
https://www.axios.com/2024/10/04/ben-horowitz-endorse-kamala-harris
I've haven't heard a ton of people talking about this, so I wanted to spread it. The state of California has removed 4 outdated hydroelectric dams that were blocking the breeding ground for Chinook salmon. This removal unflooded 2200 acres of land, and in preparation for this removal Native American tribes have been collecting and breeding seeds of native plants. They took these seeds and planted them along the restored river bank, taking the first steps to restoring the area. https://www.msn.com/en-us/weather/topstories/before-and-after-photos-show-californias-unprecedented-dam-removal/ar-AA1rMwPg
Instead of my rant, I present to you this beauty. Frontend development is great.
@aral It is already a crime, something that many media agencies have been (for what ever their motivation) wilfully failing to report.
Israel is already one of of 127 signatory's of Protocol II of the United Nations 1980 Convention on Certain Conventional Weapons,
Protocol II prohibits in all circumstances the use of booby-traps in apparently harmless portable objects
https://en.wikipedia.org/wiki/Protocol_on_Mines,_Booby-Traps_and_Other_Devices
@afilina my rule of thumb here: if your monolith looks like shit, then splitting microservices make it distributed shit.
Elon Musk Shares Manipulated Harris Video, in Violation of X’s Policies
The billionaire owner of the social media platform X reposted a video that mimics Vice President Kamala Harris’s voice, without disclosing that it had been altered
I wish #Apple would sort their keyboard out. The text correction is shockingly bad, especially when swiping to type. It’s to the point where I have to proofread everything I type.
Perfect example - it just corrected “proodread” to “progress” WTF??
I feel like #Android had this solved like many years ago.
A few years ago, I was in Rome, Italy. I actually stumbled upon the ruins where Caesar was stabbed to death. It’s now a cat shelter with over 200 cats. https://rome.us/ancient-rome/largo-argentina.html#:~:text=Largo%20di%20Torre%20Argentina%20is,and%20walk%20among%20the%20ruins
Born in 1885, Clara Belle Williams became the 1st Black graduate of New Mexico College of Agriculture & Mechanic Arts (now NMSU).
While a student, many professors did not allow her into lecture halls so she took notes from the hallway. When she graduated in 1937, commencement ceremonies were canceled bc a group of students refused to walk with her.
Williams persevered despite discrimination, earning recognition as a teacher & lifelong learner. https://libexhibits.nmsu.edu/onlinexhibits/cbwilliams/index.html #HistoryRemix #history
An Oglaf that is safe for work? Unless you live in a capitalist society, that is.
https://freethoughtblogs.com/pharyngula/2023/09/03/gazelle-lessons/
Software engineer. Sound system aficionado. Traveling the world. Student of random topics