Show more

Today's #Rust #API design lesson: to make multithreaded programs possible, sometimes you have to exchange some compile-time safety for runtime safety.

Specifically, objects containing &references can't be sent between threads. You'd need to send the referred object together, but Rust can't do that.

The next best thing is to wrap the referred object *everywhere* in an Arc<> and hand out clones instead of references. Bad news for &mut refs, now you must count them manually.

#rustlang #coding

One area where post-consumer plastic recycling is actually happening is black plastic, such as for kitchen utensils and takeout containers. They're made from recycled electronics products, flame-retardants and all. A supermajority of tested spatulas and sushi trays children's toys contained cancer-causing levels of flame retardants that are banned in the U.S.

Plastic recycling: On the rare occasion where it’s not a myth, it is bad! cnn.com/2024/10/01/health/flam

Show thread

US pol 

Hubzilla vs. Mastodon comparison, two weeks into Hubzilla use (1,333 words) 

Francesca Albanese: "The entire population of Gaza is at risk of dying in a genocide that has been announced & executed under our watch."

"Albanese was responding to an earlier statement from the UN humanitarian chief Joyce Msuya warning that the entire population of North Gaza is at risk of dying under Israel’s siege."

aje.io/18noxx?update=3276800

#NorthGaza #GazaGenocide #GeneralsPlan #US .

"Zionists are openly calling to “shut down” the upcoming Toronto talk by United Nations Special Rapporteur on the Palestinian territories Francesca Albanese. On October 10, the Centre for Addiction and Mental Health, Canada’s largest mental health and addiction teaching hospital, canceled a panel discussion on “workplace mental health” that included a screening of the 1984 film Gaza Ghetto: Portrait of a Palestinian Family..."

thecanadafiles.com/articles/zi

"The U.S. Department of Agriculture said that since 2022, when the national outbreak started, 104 million birds have been affected in 48 states...No infected birds or eggs have entered the food supply...according to the Department of Agriculture"

🧐 Idk, seems pretty unlikely to me that both those statements can be true...and we know for sure the first one is.

seattletimes.com/nation-world/

Anyone who thinks they can vote their way out of fascism with their wallet has never seen a billionaire’s wallet.

If now isn't a time to dump 'windows', when is?

Microsoft fires employees who organized vigil for Palestinians killed in Gaza | AP News
apnews.com/article/microsoft-f

"More evidence has emerged that AI-driven demand for energy to power datacenters is prolonging the life of coal-fired plants in the US."

theregister.com/2024/10/14/ai_

Never underestimate the ability of techbros to underestimate the amount of damage they are doing in the world.

I expect automatic transcription to make mistakes confusing similar-sounding words, but this? yikes. apnews.com/article/ai-artifici

This tool has been used to transcribe 7 million doctor visits, transcriptions which can't be checked for errors as the source audio was deleted. #AIIsGoingGreat

Hi! We "upgraded" our primary @matrix chat, (#codeberg.org:matrix.org) to room version 10. Upgrades are a part of the Matrix protocol: They create a new room in the place of the old one, and send invites to everyone in the old room. If you were in the old room, you should have received an invite.

We had 1588 members, but it seems like we only sent ~1180 invites. If you were a member of the chat, please accept the invite! If you haven't received one, please let us know!

matrix.to/#/#codeberg-space:ma

Elon Musk, enemy of ‘open borders,’ launched his career working illegally

washingtonpost.com/business/20

Impound all his wealth as it stemmed from a crime.

In the immortal words of the boring VC mouthpiece Mike Ethereum, "Make crime illegal"

What if, instead, I wrote a second UI for this program so you could launch the program with the TUI or the second UI that I would write. The second one would *only* be accessible to screen readers. Either by interfacing with them directly to read stuff (and looking at it you just get a blank terminal), or by just printing whatever text the user has navigated to to the terminal, then when they hit keys we print the next thing.

Is this a thing anyone else does?

#Go #Golang #TUI #Accessibility

Show thread

What's your impression? My colleague and I used it to collaboratively develop a peer-reviewed journal paper... which, incidentally was about #libre software in education... and the costs. Which are absurdly much better than what most institutions pay now. irrodl.org/index.php/irrodl/ar

Plus Amazon AWS, MS Azure, and Google Cloud are all eye wateringly expensive (like 20x the cost of the functionally comparable competition!). If you're going to pay that, for goodness sake support a domestic (not foreign-)owned Cloud provider. That way they'd have a hope of achieving the scale required to achieve competitive prices for the benefit of NZ-based companies, who could then cost-effectively use NZ suppliers to reach a global market.

Show thread

Hello Fedi-folks with a food in the Javascript scene - I know npm (the dominant package manager for Javascript libraries/platforms) is largely run by Microsoft. If I want to avoid any dependency on Microsoft, is it worth selecting pnpm instead, or is it also compromised?

Show more
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml