Posts
175
Following
399
Followers
315
Dr. WiFi. Linux kernel hacker at Red Hat. Networking, XDP, etc. He/Him.
Impressions learning Rust
Show content
Speaking of type safety - the Rust type system is obviously one of the things that takes a while to wrap your head around. But once you do, its power soon becomes apparent!

Especially the various safe conversion functions that can convert types to each other with from/into/parse.

Parsing an IP address? Just specify an IP address-typed variable and assign string.parse() to it, and presto! the compiler will figure out the right parser function to call, and you'll end up with the right type of variable (you still have to handle errors, though).

5/
1
0
1
Impressions learning Rust
Show content
On the subject of common crates, I am really impressed with the quality of the Rust libraries I ended up using for my small application (a simple command line utility that does dynamic DNS updates).

The clap and serde libraries for command line parsing and data (de)serialisation are great examples of this.

Simply define some structs, sprinkle a couple of macros across the members, and bam! Full featured command line argument parsing and YAML config file parsing, with the results being completely type safe and validated. All easily grok'able from the crate docs, that also have great examples to work from. Impressive!

4/
1
0
1

Toke Høiland-Jørgensen

Edited 17 days ago
Impressions learning Rust
Show content

Another thing that helped me was to start with something other than a complete beginner’s tutorial.

The Rust for C Programmers book is a great resource for someone with existing C experience; it explains the core Rust concepts concisely and in a way that makes it easy to lookup things as needed.

The other resource that was very helpful was the Blessed.rs curated list of common crates.

3/

1
0
3
Impressions learning Rust
Show content
First of all, I feel like the Rust ecosystem has significantly improved since the last time I tried this a couple of years ago: The compiler error messages are more helpful, documentation is better, common libraries are more comprehensive in their functionality. This is all very helpful for someone new to the ecosystem!

2/
1
0
1

Toke Høiland-Jørgensen

Impressions learning Rust
Show content
I've been meaning to sit down and learn Rust for a while, and have made a few attempts, but it never seemed to click in a way that stuck.

Well, the holidays have afforded me with several days in a cabin in Norway with no particular plans, which nicely lent itself to giving this another go.

Although I obviously haven't mastered the language yet, I do feel like it has clicked in a way that it hasn't before. I figured I'd share a couple of impressions from the experience here.

1/
2
8
16

oh wow, anna's archive "backed up" Spotify! they downloded 256 million songs - roughly 300TB - so you could technically, make your own spotify at home! would easily fit in a 2RU server, hmmmmm

https://annas-archive.li/blog/backing-up-spotify.html

2
3
0

It's not just economic power, it's digital coercion. We have to get our institutions weaned off of US-based software and platforms, including Microsoft, Meta, Google, Xitter, and more. Open source is the answer! https://www.theguardian.com/world/2025/dec/12/danish-intelligence-accuse-the-us-of-using-economic-power-to-assert-will-over-allies

1
5
0

The end of the kernel Rust experiment

https://lwn.net/Articles/1049831/

2
8
1

Some reporting on excellent news about:

the physics professor who became Uruguay's energy secretary, and within five years had the country on 98% renewable energy.

and economically it was a smash hit

the cost of electricity production decreased by roughly half compared to fossil-fuel alternatives, and the country attracted $6 billion in renewable energy investments

Going forward,

He hopes to help 50 countries move to renewables over the next ten years. He said, "We want to prove that an energy transition can be possible in different geographies and can work in different national energy and political contexts."

https://mastodon.social/@rubenbolling/115691564369915601

0
3
0
Edited 1 month ago

This is a really excellent non-fiction piece by @WeirdWriter about a writing group with a tech bro:

https://sightlessscribbles.com/the-colonization-of-confidence

It is a distilled essence of the social and cultural damage AI/LLM is causing, how AI promoters are cynically destroying people's confidence in their own humanity, while simultaneously trying to ridicule and other people who point out that AI is bullshit. (And this isn't even mentioning the environmental consequences.)

2
3
0
Edited 1 month ago

I need you to stop scrolling and read the most human piece of writing I've read in a very, very long time.

https://sightlessscribbles.com/the-colonization-of-confidence/

Thanks, @WeirdWriter.

Edit: If you feel like you got a lot out of this piece, I'm sure Rob would definitely appreciate some subscribers to his newsletter and tips/a paid subscription if you can afford it! It's not easy making a living as a writer.

https://sightlessscribbles.com/support/

20
6
0

giving impressionable still-developing young men "ai girlfriends" who cannot ever say no and that they can customize with sliders and parameters down to minuscule detail will probably break them in unfixable ways and permanently foreclose on their healthy participation in human relationships but beep boop what does computer know

0
6
0

Today’s mustread is from Alexander Stubb, Prime Minister of Finland.

“The global West cannot simply attract the global South by extolling the virtues of freedom and democracy; it also needs to fund development projects, make investments in economic growth, and, most important, give the South a seat at the table and share power.”

https://www.foreignaffairs.com/united-states/wests-last-chance

1
1
0

Thomas Hansen 📝 🇩🇰

Støt og del gerne dette borgerforslag:

"Anerkendelse af frivilligt arbejde med open source som samfundsgavnlig indsats med juridiske og skattemæssige fordele"

📝 https://www.borgerforslag.dk/se-og-stoet-forslag/?Id=FT-22237

0
2
0

`CONFIG_PSI` in the kernel config should be renamed to `CONFIG_BAR`

1
5
2

Hey! I’m CEO of a company that has just raised $10 billion for an app that takes the hard work out of enjoying music. Did you know, some people waste hours each day listening to “tunes”. Our AI will listen to it for you and summarise it in a 15 second scream leaving you more time to focus on what's really important in life: adding value.

4
36
3
Edited 1 month ago

In the early 2000s the ReactOS team paused development for years; to engage in a project wide audit, under accusations that a developer may have SEEN leaked windows sourcecode.

In the 2020s folks keep insisting it's cool for devs to use AI's trained on random other projects to generate code; when it is known that such AI assistants occasionally reproduce code verbatim, without regard to the original software license.

0
6
0

David Graeber Institute

We could house everyone. We could feed everyone. We could care for everyone. We could build devices designed to last as long as possible. We could align our manufacturing around the needs of the people and the planet.

We materially have the resources to do so.

That's why leftists are so angry. The resources we need to build a world everyone can thrive in literally already exist. We are just using them mostly to pamper the rich or murder the poor.

1
15
1

Your `pip` unwrapped 🎇

- you tried to install `requirements.txt` 18 times this year. Doing better than last year!
- of the packages you installed 67% started with py, 11% python, and 6% Py. You guessed wrong 85 times.
- your love for building source has no bounds, except maybe the 92 failed compiles
- you updated `requests` 18 times. Urllib is feeling lonely.
- the average time between updating `pip` was 97 days. But we warned you 338 times!

3
13
0
Show older