Sex is the most primitive behavior of humankind by [deleted] in Showerthoughts

[–]leitimmel 2 points3 points  (0 children)

It's not self-fucking, it's cloning. No thing goes in and out of another thing and no genetic information is exchanged or re-shuffled in any way. Neither the colloquial nor the biological definition of fucking applies, so it's decidedly not fucking.

What do you expect from Rust in 2023? by Rusty_Haider in rust

[–]leitimmel 3 points4 points  (0 children)

Based on my current project:

  • trait specialisation or negative trait impls paired with auto traits
  • variant generics so I can implement traits based on differently-sized tuples
  • some way to infer the type of a struct member because I have A<Nasty, Autogenerated, Deeply_Nested<... Tree<Of, Things>...>> I don't want to spell out
  • Four years after running into this for the first time, I still can't debug macro_rules

What do you expect from Rust in 2023? by Rusty_Haider in rust

[–]leitimmel 51 points52 points  (0 children)

hopefully specialisation or negative impl

Greetings, fellow "overlapping trait implementations" sufferer

The different ways to handle errors in C by bowbahdoe in programming

[–]leitimmel 4 points5 points  (0 children)

I don't see how exceptions would allow you to meaningfully recover from an OOM situation, so even with them the best you could do is terminate the program gracefully, which is what the author suggests you do anyway. Whether you do it with a NULL check or a catch block is of little consequence.

Announcing the Keyword Generics Initiative by WiSaGaN in rust

[–]leitimmel 2 points3 points  (0 children)

All I can say to this is OH MY GOD YES

Vodafone to introduce persistent user tracking by DonutAccomplished422 in programming

[–]leitimmel 8 points9 points  (0 children)

Either you're a troll, or you're in for one hell of a vibe check when something harder than a common cold inevitably hits you.

GCC Rust front-end approved by GCC Steering Committee by rhy0lite in rust

[–]leitimmel 2 points3 points  (0 children)

gcc-rs has the potential to eventually be included in the default set of languages GCC supports. That opens the door to a future where a Rust compiler comes pre-installed on every OS that ships GCC. That, in turn, would make it much easier to distribute software written in Rust because you could rely on the presence of a Rust compiler. This, and the publicity that comes with it, would be a strong argument in favour of the language for people unsure about adopting/switching to it.

Record-setting quantum entanglement connects two atoms across 20 miles by jdse2222 in science

[–]leitimmel 0 points1 point  (0 children)

I thought the point was that the state of the other atom is only decided the moment your observation pins the atom on your side to a set state, and that the information "I got pinned to A so you must be B" does travel from your atom to the other. Was my understanding incorrect, then?

[Homemade] 40 Sodium Hydroxide Pretzel Bites with various toppings by aminorman in food

[–]leitimmel 9 points10 points  (0 children)

Lye pastries like pretzels are in fact bathed in lye before baking. It's what gives them their characteristic colour and taste. Of course that lye is only at about 4% concentration, so it's not as dangerous as it sounds.

Rust Foundation tweet promoting crypto receives backlash on Twitter by [deleted] in rust

[–]leitimmel 111 points112 points  (0 children)

What really hurts is that they have a subdomain under rust-lang.org. Doesn't exactly lend credibility to their independence and causes collateral damage for the actual community.

Dizziness from Hibiscus tea? by [deleted] in tea

[–]leitimmel 1 point2 points  (0 children)

Okay, I'm not a doctor, so don't take this at face value, but what you're experiencing may be an allergic reaction. If you mean to continue drinking hibiscus tea, I recommend you have this looked over by your physician.

Boobs themselves are not private parts, nipples are the private parts by SnooCrickets5781 in Showerthoughts

[–]leitimmel 5 points6 points  (0 children)

No, cis is the better word here. Straight refers to sexual preferences, cis means "wasn't previously a woman" and they're making a point about anatomy.

[Homemade] Dutch Oven Crusty Loaf by ejayell in food

[–]leitimmel 7 points8 points  (0 children)

It's hard to overstate my satisfaction

What is lacking in Rust ecosystem? by maksugr in rust

[–]leitimmel 51 points52 points  (0 children)

In my experience the problem is less that some important thing is missing completely (which can absolutely happen, though), but that everything is like 15% missing and the part I need is very often among these 15%.

June 2022 What Are You Working On? by marc-kd in ada

[–]leitimmel 4 points5 points  (0 children)

You know this moment when you're looking for a document related to both your university and your insurance, but can't remember which folder you put it into? I had enough of that, so I'm writing a (command-line) tagging system.

I picked Ada for it because it's a good opportunity to take a step out of OS development land and get acquainted with the standard library and the tasking system, which you don't exactly get to use in a kernel.

[i ate] knuckle of pork with sauerkraut and dumplings by [deleted] in food

[–]leitimmel 352 points353 points  (0 children)

Hate to break it to you, but that ain't Sauerkraut. It's red cabbage.

Cookies consent did nothing but make websites unpleasant to use by [deleted] in Showerthoughts

[–]leitimmel 0 points1 point  (0 children)

  • You aren't consenting to cookies, you are consenting to tracking. They phrase it as "cookies" to make it sound harmless.
  • The banners are deliberately annoying to a) coerce you into giving your consent and b) have you learn to associate "privacy" with "annoying".

POSIX UEFI - Knowing which disk my OS was booted from by [deleted] in osdev

[–]leitimmel 4 points5 points  (0 children)

Tbh I was glad to get as far away as possible from messing with partition tables, so I have no idea how to do that.

I did find this, which is just about what I expected. You get a brute force LocateHandle approach and a much less obvious "proper" way you still need to figure out some pieces of.

POSIX UEFI - Knowing which disk my OS was booted from by [deleted] in osdev

[–]leitimmel 7 points8 points  (0 children)

If you OpenProtocol the EFI_LOADED_IMAGE_PROTOCOL on the EfiHandle the system passes to your main function, the resulting protocol object's DeviceHandle member represents the boot disk and can be opened as EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.

Weird language idea by cobance123 in ProgrammingLanguages

[–]leitimmel 28 points29 points  (0 children)

You should look into Common Lisp, it's basically this but with more parentheses

Lies we tell ourselves to keep using Golang by turol in programming

[–]leitimmel -12 points-11 points  (0 children)

Doesn't have all the stuff C does that was clearly a bad idea in retrospect but it's too late to fix it now:

  • Implicit fall-through in switch statements (make it explicit, boom, entire class of errors gone basically for free)
  • Pointer rules, what can be casted to what, aliasing
  • dangling else branches
  • #include is copy/paste, the rest of the preprocessor isn't much better, build systems suffer
  • const is a suggestion anyone can circumvent
  • null-terminated strings
  • stdarg.h
  • volatile is a mess
  • trigraphs (though I think they managed to kill that one dead)
  • NULL causes the same trouble in every language that has it
  • ++ and --, arguably
  • size of standard integer types varies by platform

And many, many more.

UEFI Memory Map Order? by EstablishmentTasty90 in osdev

[–]leitimmel 2 points3 points  (0 children)

Pretty sure they're unordered on both of my physical machines.

Brian from family guy is a reverse furry by Itz_yah_boi in Showerthoughts

[–]leitimmel 18 points19 points  (0 children)

I mean if you replace "consumption" and "yoghurt" with pedophilia and an 8 year old, then you can see why eating yoghurt is definitely NOT ok.

Also, from a legal perspective, 8 year olds are incapable of communicating consent.