Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
631.
▲
by
Joker_vD
11mo ago
Because e.g. a.out didn't survive and was replaced? Several times, even?
632.
▲
by
Joker_vD
11mo ago
The thing is, there is always tar(1) even in the most basic of distributions. And everyone uses tar.gz's or .bz2's or whatever for distributing all kinds of things, so tar is pretty ubiquitous. But the moment you want to do some C
633.
▲
by
Joker_vD
11mo ago
Eh, that's really just a side effect of almost 50 years of constant evolution from a 8-bit microprocessor. Take look at VAX [0], for instance: its instruction encoding is pretty clean yet it's an actual example of a CISC ISA that
634.
▲
by
Joker_vD
11mo ago
> so "5[arr]" is just as valid as "arr[5]" This is, I am sure, one of the stupid legacy reasons we still write "lr a0, 4(a1)" instead of more sensible "lr a0, a1[4]". The other one is that FORTRAN
635.
▲
by
Joker_vD
11mo ago
(Almost) any instruction on x64 that writes to a 32-bit register as destination, writes the lower 32-bits of the value into the lower 32 bits of the full 64-bit register and zeroes out the upper 32 bits of the full register. He touched on i
636.
▲
by
Joker_vD
11mo ago
> A static library is nothing but a bundle of object files, wrapped in an ancient and never-quite-standardized archive format. To this day I'm astonished that it's not just tar. Or pax. Or even cpio! Or literally any file forma
637.
▲
by
Joker_vD
11mo ago
A seasoned C programmer knows that "&arr[index]" is really just "arr + index" :) So in a sense, the optimizer rewrote "x + y" into "(int)&(((char*)x)[y])", which looks scarier in C, I admit.
638.
▲
by
Joker_vD
11mo ago
Honestly, x86 is not nearly as CISC as those go. It just has a somewhat developed addressing modes comparing to the utterly anemic "register plus constant offset" one, and you are allowed to fold some load-arithmetic-store combina
639.
▲
by
Joker_vD
11mo ago
Depends what you count as a result, I guess. "There is exactly N flips of a single kind" is also a viable definition, just as "The exact sequence of flips was x_0, x_1, ... x_199" is.
640.
▲
by
Joker_vD
11mo ago
Well, yes. But the expected deviation from the mean is still ≈7.07. And the probability that the outcome will be either 93/107 or 107/93 is (slightly) higher than the outcome being exactly 100.
641.
▲
by
Joker_vD
11mo ago
You mean, what does sequence A004431 [0] look like? Well, like itself. Some of its properties are also listed at that link. [0] https://oeis.org/A004431
642.
▲
by
Joker_vD
11mo ago
> Mendel’s far too perfect ratios for his pea plants. "Remember, if you flip a coin 200 times and it comes heads up exactly 100 times, the chances are the coin is actually un fair. You should expect to see something like 93 or 107
643.
▲
by
Joker_vD
11mo ago
There is an amount of people who own, well, in the past we could say "means of production" but let's not. So, they own the physical capital and AI worker-robots, and this combination produces various goods for human use. So t
644.
▲
by
Joker_vD
11mo ago
And it all happens in the Russian part of Steam, so... so what? Steam also IIRC censors such things for UAE, and e.g. swastikas in WW2 games for Germany (or was it Australia?) which is... fine?
645.
▲
by
Joker_vD
11mo ago
> when prices go down instead of up. It is generally considered harmful: both because it is usually brought on by something really bad (like a severe economic contraction) Or, you know, technological improvements that increase efficien
646.
▲
by
Joker_vD
11mo ago
And they also took care to replenish the deposits of iron, copper, tin, lead, and rare-earth ores plus coal and oil before ultimately disappearing. Very considerate of them!
647.
▲
by
Joker_vD
11mo ago
What a strange way to date it. "The Roman sarcophagus from the III century CE is unearthed in Budapest". Okay? The Roman Empire did span that far in that time period, and IIRC that time period is already quite well represented arc
648.
▲
by
Joker_vD
11mo ago
And open a grave a third day, and you're just an ordinary grave digger, reusing the cemetery land.
649.
▲
by
Joker_vD
11mo ago
> Imagine instead we were spending trillions on floral bouquets, calligraphy, and porcelain tea sets. I would argue that would be a bad allocation of resources. And I would argue it wouldn't. So? It's a value call. > What ma
650.
▲
by
Joker_vD
1y ago
And Tcl lives on in GDB, sure, just as M4 is forever alive with ubiquitous use of autotools.
651.
▲
by
Joker_vD
1y ago
But even ARM1 had some concessions to pragmatics, like push/pop many registers (with a pretty clever microcoded implementation!), shifted rigsters/rotated immediates as operands, and auto-incrementing/decrementing address reg
652.
▲
by
Joker_vD
1y ago
> And Go came along and provided an aggressively mediocre but very usable See, that's one of the things lots of people who enjoy Perl and/or Ruby in the comments around in this thread don't quite grasp: some languages requ
653.
▲
by
Joker_vD
1y ago
Go's "defer" can't prevent return from actually returning from the function. Most of the time, it can't change the computed return value either, unless you go out of your way and use named return values. Go's &
654.
▲
by
Joker_vD
1y ago
Do we really need more than two down-detectors? Just point them at each other...
655.
▲
by
Joker_vD
1y ago
What about LISPs? They have atoms too.
656.
▲
by
Joker_vD
1y ago
Eh, that's actually pretty realistic. Remember that scene with Luke trying to lift X-Wing from the swamp? He applies the Force, the ship actually starts going up, and then he just straight up stops and says, "Nah, that's impo
657.
▲
by
Joker_vD
1y ago
First, if we're talking about practicality, and not just theoretical considerations, then the numbers should not be stored as Peano integers a.k.a. base 1 in the first place. Use lists of 8-tuples of bools or native machine integers or
658.
▲
by
Joker_vD
1y ago
Eh. Grammar, logic, it's all just trivium stuff, unrelated to the sciences proper.
659.
▲
by
Joker_vD
1y ago
Just use Scott-Mogensen encoding, seriously. Zero = z. s. z Succ = n. z. s. s n isZero = n. n True (_. False) pred = n. n Zero (r. r) Addition requires explicit recursion, however (since numbers aren't folds), s
660.
▲
by
Joker_vD
1y ago
The strtoul()/strtoull() also have a somewhat strange semantics regarding the leading '-': it will apply it to the (unsigned) result, so e.g strtoul("-40", ...) happily returns 18446744073709551576. Also, the wordin
More ›