syklemil

joined 3 months ago
[–] [email protected] 5 points 11 hours ago

Parsing is a way of "validating early". You either get a successful parse and the program continues working on known-good data with that knowledge encoded in the type system, or you handle incorrect data as soon as it's encountered.

[–] [email protected] 4 points 17 hours ago (1 children)

it really does sound more and more like people think it's Stormblood 2

[–] [email protected] 5 points 1 day ago (2 children)

I feel I gotta point out it's a pretty funny example—email comes up so frequently as a thing that you're recommended to neither parse nor validate, just try to send an email to the address and see if it works. If you need to know that it was received successfully, a link to click is the general method.

But "parse, don't validate" is still a generally good idea, no matter the example used. :)

[–] [email protected] 5 points 2 days ago

DAP stands for Debugger Adapter Protocol or something close to that. My impression is it's pretty much the debugger variant of the Language Server Protocol (LSP).

[–] [email protected] 1 points 2 days ago

Been looking forward to try the new LSP configuration method!

[–] [email protected] 3 points 2 days ago

Yeah, you generally just want the same auto-stuff done as would be enforced in CI anyway.

… all the other stuff you could fix but wind up just ignoring because your team ignores it will just glare at you until you sneak it in somehow

[–] [email protected] 25 points 2 days ago

It's just a monoid object in a category of endofunctors, no biggie

[–] [email protected] 3 points 1 week ago

Afaik they're hoping to land it on nightly in 2025H1.

Between that, work on the next-generation trait solver and promoting parallel frontend, there's some stuff to look forward in the compiler this year.

[–] [email protected] 5 points 2 weeks ago

Do also note that by saying that some % of crates use unsafe, it's not implied that 100% of the code in that crate is marked unsafe. It could be as little as one line; it could be a whole lot; it could be well-documented and tested; it might not be. (This is part of what the talk is about.)

It's also rather to be expected that there's more unsafe in embedded. As Steve Klabnik gets into in How to Do Embedded Development with Rust (GOTO 2023), it's used when you e.g. want to set a certain memory address to a certain value, which in a lot of contexts is nonsense, but in some contexts makes a LED light up.

[–] [email protected] 13 points 2 weeks ago* (last edited 2 weeks ago)

The induced demand part involves a cycle of expanding roadways and then building detached housing to use that roadway.

This would happen with buses, trams and bikes as well but for them the matching housing is a high-density urban fabric, and this is much more frequently blocked by zoning than detached houses. So we get essentially housing crises with incredible prices for quality urban areas as the demand is pretty huge, and some absolutely jam-packed bus and train routes, but following up on that is politically much harder than destroying some farmland or nature area to build suburbs.

  • If traffic is bad then it's treated as a problem that must be solved
  • If transit is packed like sardines then it's often ignored
  • If housing that enables a low-car lifestyle is incredibly scarce and expensive it gets waved off with stuff like "it's not a human right to live in the city" or "but a big building will cast a shadow on my lawn!"
[–] [email protected] 9 points 2 weeks ago (1 children)

post from 2025

systemd is a relatively new utility that provides an array of components for Linux systems.

what


Snideness aside, systemd timers can be pretty neat. They also have some features like being able to specify "Daily" and setting some looseness in when it triggers if you e.g. have a fleet of machines and don't want them all to do something at exactly the same time.

[–] [email protected] 4 points 2 weeks ago

Might be tempted to view it through a housing & transportation comparison too. Someone who lives in a too-big house, drives a pickup to the office and complains about expenses and how annoying it is to sit in traffic might not be particularly interested to hear from someone who lives in a comfortable flat, rarely has to go more than 15 minutes by bike and does a lot of bike maintenance themselves, leaving a lot of time & money available for fun.

Big houses and SUVs and pickups have their place, but investing in them because it's normal and I want to be normal is likely to lead to a lot of complaints.

That said, Kids These Days seem to be treating phones and tablets as their default OS. There's some push in workplaces to use cheaper laptops like Chromebooks if they can get away with it, which with the rise of webapps is increasingly likely. Personally I wouldn't be very surprised if Windows users in the future can be grouped into people who need:

  1. something that's barely not chromeos
  2. something more like a desktop xbox os for gamers, and
  3. something that's kind of a platform for specialized native non-game apps (which may or may not be legacy stuff)
  4. (windows server? what's that???)
view more: next ›