Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
151.
▲
by
Joker_vD
3mo ago
Neatly removes the lhs/rhs distinction in the compiler, although in practice tracking during the translation whether evaluating e.g. "a[i]" needs to end with DEREF or not ain't that onerous. But "The Design of an Op
152.
▲
by
Joker_vD
3mo ago
sighs This kind of discussion is so annoying... I start with "RISC-V's decision to make 32-bit instructions only 16-bit aligned complicates instruction fetch and decoding", and the response is "For high performance RIS
153.
▲
by
Joker_vD
3mo ago
I've read that rationale, and it's, well, I'm not going to say it's lying , but it's insincere . By the time it was written, they already settled on 16-bit alignment, and fetching (and then decoding) 16-bit aligne
154.
▲
by
Joker_vD
3mo ago
Yeah, they're opposite. I suggest taking a look at the rows 10 and 16 of the table at [0]: as you can see, those letters originally had their horizontal stroke differently slanted, but in time, the slant... slanted further, and turned
155.
▲
by
Joker_vD
3mo ago
My point is that fixed-length instructions are supposed to be easier to decode than variable-length ones, right? If not, then why even bother with fitting immediates and inventing LUI/AUIPC, just have a 48-bit long LI instruction. The
156.
▲
by
Joker_vD
3mo ago
> RISC-V supports variable length instructions, even much longer than 32 bits, and you've just got to deal with it. ...no, not really? There is nothing like 9 byte-long MOVABS instruction of x64 that exists on RISC-V. The main diffi
157.
▲
by
Joker_vD
3mo ago
"Constantinopolsky", it's "Constantinopol" plus "-sky" which is for forming adjectives, so essentially it means "Constantinopolean".
158.
▲
by
Joker_vD
3mo ago
"Константин Константинович Константинопольский" is a somewhat popular example of what one's design (graphical, computer system, whatever) should realistically allow for.
159.
▲
by
Joker_vD
4mo ago
Yes, you can predict that the outcomes of e.g. the coin flip will have 50-50 distribution instead of "the coin will land heads up" but this is a pretty useless kind of "prediction"; this trivial fixed point corresponds t
160.
▲
by
Joker_vD
4mo ago
Game theory? Imagine a simple game of hunter and prey. There are two locations that they need to chose from. If they both chose the same location, the hunter wins. If they chose differently, the prey wins. Now, if the hunter can accurately
161.
▲
by
Joker_vD
4mo ago
Yep. That's why predicting the future of a system you're a part of is sometimes literally impossible; it boils, fundamentally, to the fact that logical negation doesn't have a fixed point.
162.
▲
by
Joker_vD
4mo ago
Well, it's a darn good thing there is nothing like that over here on the Linux side. I'm pretty sure that if e.g. systemd attempted to generate a unique, persistent machine identifier during the installation process, it'd be
163.
▲
by
Joker_vD
4mo ago
BCD allows for insanely fast conversion to and from decimal string representation. And if doing arithmetic in it is only slightly worse than doing it in binary... it may actually be faster on the whole for some workloads.
164.
▲
by
Joker_vD
4mo ago
And now you should probably also stop and consider whether adding elements one-by-one as opposed to recursively adding together sums of smaller subarrays has better or worse numerical behaviour in regards to e.g. rounding and stability.
165.
▲
by
Joker_vD
4mo ago
It's been 15 years since I've last touched OpenMP, but the second form is trivially parallelizable as well. Besides, this parallelization can only ever properly work with arrays/vectors or, at the very worst, std::deque as it
166.
▲
by
Joker_vD
4mo ago
That version was so much more opaque that I didn't bother copying that . Again, I'm not entirely sure why people are so enamored with splitting iteration itself from the contents of one iteration step, especially since the loops
167.
▲
by
Joker_vD
4mo ago
Every time I see "use ranges and algorithms!" examples, I am baffled that apparently, I am supposed to find inline double algorithm_call(std::span<double const> xs) noexcept { return std::accumulate(
168.
▲
by
Joker_vD
4mo ago
Yeah, sometimes, when I am sitting before my computer and typing comments on the Internet, I have a thought: "Is my computer turned on?" With a quick glance under my table I can reassure myself that it is indeed on and continue us
169.
▲
by
Joker_vD
4mo ago
> And, you don't have to worry about what to do in the case that someone hits the "rotate ball" button while it's still rotating. Eh, it's a pretty trivial problem, comptometers have it figured out more than a hu
170.
▲
by
Joker_vD
4mo ago
Now I am imagining a typewriter with just two huge round buttons, next to each other horizontally, and a spacebar bellow them: *-----* *-----* | | | | | ● | | Ω | | | | |
171.
▲
by
Joker_vD
4mo ago
That's very, very marginally useful. If your application recently ran GC when the system was under low pressure and freed a bunch of pages (and still holds to them), and then some other application suddenly acquires a lot of memory,
172.
▲
by
Joker_vD
4mo ago
The applications, frankly, have no business accounting any memory at all outside of what they use themselves via sbrk/mmap.
173.
▲
by
Joker_vD
4mo ago
When Kirtsaeng moved to the US in 1997 to pursue an undergraduate degree in mathematics at Cornell University,[4] he discovered that textbooks (not just those published by Wiley, but of other publishers too) were considerably
174.
▲
by
Joker_vD
4mo ago
Well, what's the alternative? Invent a new type of memory reservations specifically to account for tmpfs/ramfs mounts? That'd violate your own stated desired goal of > The OS should just expose a counter for available memo
175.
▲
by
Joker_vD
4mo ago
A Soviet joke goes like this: "Daddy, daddy, they've said on the radio that vodka price goes up next month! Does it mean that you won't drink as much anymore?" — "No, son, it means that you won't eat as much
176.
▲
by
Joker_vD
4mo ago
I'd rather not. Most of the time, you don't need it, and when you do, it's for a very small part of the input. And `wchar_t` is an abomination (it's UTF-32 on Linux, UTF-16 on Windows, and all of that is allowed); you pr
177.
▲
by
Joker_vD
4mo ago
> "If you don't finish house chores, you can't play Minecraft" is equivalent to "Do finish the house chores, or you can't play Minecraft".
178.
▲
by
Joker_vD
4mo ago
So you merely discard others' opinions merely on the fact of them using speech patterns that are not even incorrect, you just personally dislike them? Okay, that's fine, I guess, although you initially explicitly framed it as a co
179.
▲
by
Joker_vD
4mo ago
And my point is that if you start nitpicking a perfectly understandable (if slightly imprecise) and widely-used terminology, you better not open yourself to the self-same criticism lest people would justifiably ignore your opinion. After al
180.
▲
by
Joker_vD
4mo ago
At which point you wouldn't have written this bug in the first place; or the warnings would trigger immediately, you'd change _ to an actual variable and then remove the warning pragmas because now you don't assign to _.
More ›