8 karma · joined Jan 10, 2025 (1y ago) · 27 submissions
comment 1y ago · link · parent
Myths Programmers Believe about CPU Caches (2018) (rajivprab.com)
176 points by whack on June 14, 2023 | hide | past | favorite | 138 commentscomment 1y ago · link · parent
fk lese(&selbst, schlsl: Zeichenkette) -> Ergebnis<Möglichkeit<&Zeichenkette>, Zeichenkette> {
wenn lass Etwas(wöbu) = gefährlich { WÖRTERBUCH.als_ref() } {
Gut(wöbu.hole(&schlsl))
} anderenfalls {
Fehler("Holt das Wörterbuch".hinein())
}
}
isn't the idea behind programming "languages", that they are sentences readable to both humans and the compiler?This absolutely is not readable to me. But woerterbuch and schluessel should of course not be abbreviated, for legibility.
comment 1y ago · link · parent
> users[2]{id,name,role}: 1,Alice,admin 2,Bob,user
differently than me, i guess. I would read that as "at index value of two, i.e. the third element of an array, the values 1aliceadmin and 2bobuser are stored, or not, since we want to destructure these values and a pair value of a tuple of three is given. and would be confused and think wtf is that, dear user, did you omit or misformat values?
comment 1y ago · link · parent
What?! Docker images should seperate the program from the data. Something casual image maintainers fail to adhere to. I find docker extreme hard to use for persistent state that is not a remote DB.
It is even less secure than VMs (which seem to be like swiss chess if you try to break out). (Security-wise: rkt failed five years ago, BSD jails could do it better?)
Also, Docker was supposed to solve performance issues of VMs, debloating them. Instead, we got hypervisors or full VMs as hosts for Docker images, just to get the image as a de facto meta package manager to ship software.
So for me, it can be convenient, but I have no idea what I am doing when adding make file like statements to a yml to run full containers just to run e.g. a web server with some dependecies. But the workflow for that was novell to me, who previously fought with ruby and python module installations on host system.
comment 1y ago · link · parent
And to not put your phone on the camera lens, I would put it in a case that is as thick as the thickest glass part, which looks not that slim.
comment 1y ago · link · parent
As to reiterate that I have the reverse problem, like my mother, too:
As someone who has an iPhone and Whatsapp, often I fail to find a button to call people, and use whatever app I am currently using instead, even if that annoys me. But the UI is to complex and phoning people is a hidden/dark pattern in said apps. Or in Signal, I have contacts without phone numbers, so there is no possibility to call anyhow.