Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hmry
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
hmry
4mo ago
Yep. It's not an async vs not async thing. The way some people talk about it, you'd think the async keyword was at fault. It's all about whether a function is callable in some context. Passing in the context as an argument or
62.
▲
by
hmry
4mo ago
No no I appreciate the pedantry, thank you for the correction
63.
▲
by
hmry
4mo ago
Yeah. You aren't allowed to set up a life insurance policy on someone else's life, or a fire insurance policy on someone else's home. For obvious reasons. But buying an event contract that pays if someone dies or someone'
64.
▲
by
hmry
5mo ago
No I'm just repeating what the original comment said, which is that it's explicitly UB: "5.1.2.4.1 says any volatile access - including just reading it - is a side effect. 6.5.1.2 says that unsequenced side effects on the sam
65.
▲
by
hmry
5mo ago
Why is that missing the point? Loading it twice, possibly with different values, is the intended behavior. It's only undefined because the C spec doesn't specify the order of the loads (unlike most other languages which have a per
66.
▲
by
hmry
5mo ago
Yeah, when naming your language, it's important to keep mind the expectations of people seeing headlines about articles about your language on blog aggregation sites :^) Now I'm thinking about "Smalltalk by Example" and
67.
▲
by
hmry
5mo ago
So true. I haven't checked out the CPU start9 is using (so please don't read this as an attack on them), but so much RISC-V hardware advertises itself as "open", but when you look up the SoC, it's only partially doc
68.
▲
by
hmry
5mo ago
Part of a larger pattern. If you're into travel blogs YouTube will serve you an endless barrage of videos with photoshopped thumbnails, exclusively containing fearmongering about whatever country or city they're visiting. This has
69.
▲
by
hmry
5mo ago
Oh yeah fair enough
70.
▲
by
hmry
5mo ago
> Expecting people to hold off on disclosure of something harmful That's not what they said though. They said "please consider notifying the maintainer/vendor before publishing your findings, even if you intend to publish
71.
▲
by
hmry
5mo ago
That can't be right. I'm reading this comment on an HDR monitor over DP right now. Don't all USB-C video outputs use DP alt mode too, with an HDMI adapter at the end? And they can do HDR.
72.
▲
by
hmry
5mo ago
Just like human typesetters who mucked around with silly metal cubes were replaced by more efficient word processing software, human writers who muck around with silly words will be replaced by AI. Future writers will work at a ~higher leve
73.
▲
by
hmry
5mo ago
I wouldn't say it's "to blame", but it is more susceptible to bad RNG. If the RNG is bad, you'll get more benefit from adding non-random bits than you would from additional badly RNG'd bits. The probability of
74.
▲
by
hmry
5mo ago
Great article! Love these types of deep dives into optimizations. Hope the project goal works out! I've felt before that compilers often don't put much effort into optimizing the "trivial" cases. Overly dramatic title fo
75.
▲
by
hmry
5mo ago
"I'd just like to interject for a moment. What you're referring to as macOS, is in fact, macOS/Darwin, or as I've recently taken to calling it, macOS plus Darwin." "What you're referring to as Darwin,
76.
▲
by
hmry
6mo ago
AFAIK Asahi development needs some hypervisor features for reverse engineering macOS drivers that only exist on M1-M3 and were removed on M4+. So yeah, it may be several years until they get support (or never, if nobody steps up to do it).
77.
▲
by
hmry
6mo ago
Is there any constant more misused in compsci than ieee epsilon? :) It's defined as the difference between 1.0 and the smallest number larger than 1.0. More usefully, it's the spacing between adjacent representable float numbers i
78.
▲
by
hmry
6mo ago
Yeah I agree, that seems vey true. Although the average person probably also benefits more from learning about recursive descent and pratt parsing than LL(k) parser generators, automata, and finding first and follow sets :)
79.
▲
by
hmry
6mo ago
Sorry if I was unclear. My point was just that "if you were a victim, wouldn't you want this?" is not a very strong argument. What victims want does matter. But when it affects other people, their needs matter too. Especial
80.
▲
by
hmry
6mo ago
It's been a few years since I worked with the dragon book, but I think the most common complaint was that it starts with like 350 pages on parser theory: generating bottom-up and top-down parsers from context free grammars, optimizing
81.
▲
by
hmry
6mo ago
Privacy is not "convenience", I'm not sure how you arrive at that. And it's also not mine , it's everyone's. I don't want children to die (obviously). I also don't want governments to track the movem
82.
▲
by
hmry
6mo ago
Which points do you disagree with?
83.
▲
by
hmry
6mo ago
1) If someone killed my child, I would probably want to kill them back. And yet we don't consider that sufficient reason to make revenge killing legal. The wishes of the victims need to be weighed against the cost it imposes on everyon
84.
▲
by
hmry
6mo ago
Two different meanings of "forever" there. An OS runs for an arbitrarily large finite time , which is different from an infinite time . Same way you can count to any finite integer with enough time, but you can never count to in
85.
▲
by
hmry
6mo ago
I used to be able to run ROCm on my officially unsupported 7840U. Bought the laptop assuming it would continue to work. Then in a random Linux kernel update they changed the GPU driver. Trying to run ROCm now hard-crashed the GPU requiring
86.
▲
by
hmry
6mo ago
The switch release is rated PEGI 18, ESRB M 17+
87.
▲
by
hmry
6mo ago
Agreed. Firefox ships with one, and it's very useful.
88.
▲
by
hmry
6mo ago
The HN title is not the article's title
89.
▲
by
hmry
6mo ago
-O3 also makes build times longer (sometimes significantly), and occasionally the resulting program is actually slightly slower than -O2. IME -O3 should only be used if you have benchmarks that show -O3 actually produces a speedup for your
90.
▲
by
hmry
6mo ago
For companies too, judging by the number of LinkedIn posts along the lines of "Our 4-person team's AI bill this month was $100K and I've never been more proud of an invoice" "If your $250K a year engineers aren'
More ›