Show newer
sinski boosted

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)

sinski boosted

It's amazing how many people on Twitter can't seem to tell that those Tesla bots are just being remotely controlled by dudes with microphones wearing VR headsets and motion capture sensors. I hate that I have too much integrity to be a grifter. It just looks so easy 😭

sinski boosted

acrobat.adobe.com/id/urn:aaid:

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

sinski boosted

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.

axios.com/2024/10/04/ben-horow

sinski boosted

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. msn.com/en-us/weather/topstori

#LandBack

sinski boosted

Instead of my rant, I present to you this beauty. Frontend development is great.

#machKaputtWasDichKaputtMacht

sinski boosted

I’m not a doomer but it feels like we’re pretty far to the right side already.

sinski boosted

@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

en.wikipedia.org/wiki/Protocol

sinski boosted

@afilina my rule of thumb here: if your monolith looks like shit, then splitting microservices make it distributed shit.

sinski boosted

As a teenager in Neustrelitz (East Germany), I painted small stones purple and left them all over town. Did it for years. It drove the police and Stasi nuts. It meant nothing. It just felt good to do something they couldn't control or understand.

sinski boosted

I once visited New Orleans with my French ex and a guy came up and had a conversation with her in French and as we were walking away she whispered, “that guy talks like an 18th century pirate” and I was like, “yeah why wouldn’t he?”

sinski boosted

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

nytimes.com/2024/07/27/us/poli

sinski boosted

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.

sinski boosted

Here's today edition of "How is it that only Matt Drudge has decided to be the only big media outlet that covers Trump like he's a Democrat"

sinski boosted

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. rome.us/ancient-rome/largo-arg

sinski boosted

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. libexhibits.nmsu.edu/onlinexhi #HistoryRemix #history

sinski boosted
sinski boosted
sinski boosted

I took this photo of my kid playing with his blocks the other day, and when I realized it reminded me of something, well...I had to make this.

sinski boosted

I like the phrase "snitches get stitches" because it suggests that, in spite of its incumbent violence, the criminal underworld is proactive about timely affordable healthcare.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.