Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
391.
▲
by
Joker_vD
7mo ago
> Computers really don't care. Literally. Same number of gates either way. Eh. That depends; the computer architectures used to be way weirder than what we have today. IBM 1401 used variable-length BCDs (written in big-endian); its
392.
▲
by
Joker_vD
7mo ago
> If someone has managed to make your software work on 32-bit, you should accept that port as it will help ensure your software remains efficient even on 64-bit systems. After all, if every program is required to fit in 4 GB, that means
393.
▲
by
Joker_vD
7mo ago
> My contribution: largest-order-first (big endian) makes sense in real life because people tend to make quick judgements in unreliable situations. For example, take the announcement that you're receiving $132551 dollars. You wouldn
394.
▲
by
Joker_vD
7mo ago
The Soviets would attempt to solve it by requiring the graduates to work off about 3 years in the place chosen by the joint commissions from Gosplan/Ministry of Labour/Ministry of Higher Education (those same commissions determine
395.
▲
by
Joker_vD
7mo ago
Ah, don't worry, we have a concept of "onerous clause doctrine" to help with that. Of course, it's almost entirely up to a judge's discretion what is and is not onerous, so...
396.
▲
by
Joker_vD
7mo ago
I mostly care about links inside the man page (look at man bash — there are tons of internal references like "described below under CONDITIONAL EXPRESSIONS" or "section SHELL BUILTIN COMMANDS below", or operators being u
397.
▲
by
Joker_vD
7mo ago
Ugh, troff. It's mind-boggling that the closest way to have an actual (hyper)link in a manpage is to use your pager's "search for text" function. No, "JuSt usE gNu iNfO it'S beTtER" is not an answer either
398.
▲
by
Joker_vD
7mo ago
> That’s not cache-friendly, though. How so? The string implementations in that post are pretty much that: struct string { char* ptr; size_t size; union { size_t capacity; char bu
399.
▲
by
Joker_vD
7mo ago
> It's not that simple. It would tremendously benefit almost everyone if it were. > There is dependencies and there are differences in the packages, package managers and surrounding system for a reason. Yeah, the NIH syndrome. An
400.
▲
by
Joker_vD
7mo ago
Could you give an outline of an example scenarios? For e.g. "print a line with a highlighted word in it" (alternative to print 'This is \e[7mhighlighted\e[m text\n'), and "print some text, move cursor to the second
401.
▲
by
Joker_vD
7mo ago
Why, that's why you don't do genocide half-heartedly, you need to go all in, roll up your sleeves and really get down to work! Can't get a swarm of radicalized people if there is no people left to get radicalized.
402.
▲
by
Joker_vD
7mo ago
Yeah, I too feel that storing the array's length glued to the array's data is not that good of an idea, it should be stored next to the pointer to the array aka in the array view. But the thrall of having to pass around only a sin
403.
▲
by
Joker_vD
7mo ago
As I understand it, it's the other way around: for x86 (which is TSO) the fence doesn't really matter because the "normal" load is already slowed down, but for ARM it does matter quite a bit, see e.g. [0] (admittedly old
404.
▲
by
Joker_vD
7mo ago
If by "more specialized hardware" you mean "everything that is not x86". Its main intended use is (was?) for chained loads and rcu_dereference(), where hardware does not require an explicit memory fence between loads lik
405.
▲
by
Joker_vD
7mo ago
groans See, and that's why I'm personally fine with [[indeterminate]], etc: all of this is already a finely-splitted hairy mess and I'd rather not see even more keywords introduced if we can just use attributes instead. And
406.
▲
by
Joker_vD
7mo ago
I wonder if you're fine with const, constexpr and volatile also being things. I mean, "const" really doesn't mean what one would naively think (that's what "constexpr" is actually for) and the semantics of
407.
▲
by
Joker_vD
7mo ago
This is a decent reason, but your original comment is dangerously close to a completely strawman argument of "the argument of the func AverageAge(people []Person) should be called peopleToCalculateTheAverageOfTheirAges because what if
408.
▲
by
Joker_vD
7mo ago
A good variable name is the one that is understood by reading it in context , which is why you don't have names like "current_person" or "CurrentIndexOfProductBeingUpdated".
409.
▲
by
Joker_vD
7mo ago
Just put the colon there if you need to introduce a list, it's one of its functions. "I'd like to thank: my mother, Ayn Rand and God". The same goes for that "two strippers" example: "We invited the stripp
410.
▲
by
Joker_vD
7mo ago
Yep, a common anecdote from European science conferences is that by the second day, everybody do settle into the thick, averaged Spanish/German/French/Italian/Russian accent of their English which is pretty much equally
411.
▲
by
Joker_vD
7mo ago
Like, "passage" and "massage", why do they not rhyme in English? They're both borrowed French words! And don't even start me on how English pronounce "hangar"... that's like, what if you tried to
412.
▲
by
Joker_vD
7mo ago
> The “Works (Almost) Everywhere” Club > The Backspace Replacements Also known as "emacs editing mode". Funnily enough, what POSIX mandates is the support for "vi editing mode" which, to my knowledge, almost nobody
413.
▲
by
Joker_vD
7mo ago
The terminal-based editors like vim/emacs exist. Ideally they should work just as well the GUI-based editors, no matter what text files they're tasked to open and edit. As for the scripts, Unicode is slowly rounding up with the ac
414.
▲
by
Joker_vD
7mo ago
Like [0] that Windows has for its console? This API has just recently finally lost to UNIX's in-line signaling, because the in-band controls can be proxied through almost anything, including literal serial line with two RX-TX wires and
415.
▲
by
Joker_vD
7mo ago
> How often are complex scripts rendered in terminal? If you speak the languages that use those scripts? Then all the time, I imagine. The support for double-char width cells in the terminals started to appear all the way back in the lat
416.
▲
by
Joker_vD
7mo ago
> The real fix requires agreement at the protocol level, across terminal emulators, shell applications, and TUI frameworks simultaneously. Yeah, and ideally you want the backward compatibility, so we don't have to recompile the worl
417.
▲
by
Joker_vD
7mo ago
Several years ago, I've read about a similar case somewhere in Europe (Germany?): a group of friends gathered together for a party, and it was either some show on the cable, or they blared some broadcasted music on the loudspeakers, or
418.
▲
by
Joker_vD
7mo ago
> our optimisation relies on having r < count, but if count is zero this condition cannot be met. [Since taking the remainder of a division by zero is undefined behaviour, the compiler would be well within its rights to assume that co
419.
▲
by
Joker_vD
7mo ago
Hmm. I'm fairly certain that most of that assembly code for saving/restoring registers can be replaced with setjmp/longjmp, and only control transfer itself would require actual assembly. But maybe not. That's the prob
420.
▲
by
Joker_vD
7mo ago
Simon Tatham, author of Putty, has quite a detailed blog post [0] on using the C++20's coroutine system. And yep, it's a lot to do on your own, C++26 really ought to give us some pre-built templates/patterns/scaffolds.
More ›