Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
601.
▲
by
Joker_vD
11mo ago
For the same reason you trust your ISP? It handles all your internet traffic; and depending on where you live, probably has government-mandated back doors, or is willing to cooperate with arbitrary requests from law-enforcement agencies. Th
602.
▲
by
Joker_vD
11mo ago
I've actually messed with Audacity once, extracting the vowels, lengthening them and overlaying, and there is definitely a difference in quality (the length is pretty much the same), it's just that it's very minor to my ear.
603.
▲
by
Joker_vD
11mo ago
To this very day I can't hear the difference between e.g. "sit" and "seat", or "eat" and "it". I can pronounce them no problem, but hearing it? Nope, those two are the same sounds. Well, whatev
604.
▲
by
Joker_vD
11mo ago
Why do you think I think so? I don't. Those effort estimates don't make the slightest sense.
605.
▲
by
Joker_vD
11mo ago
What... what are those "development effort estimates"? They seem to assume an average rate of approximately 11 lines of code written per day which seems a bit too low if you ask me. Besides, once a C compiler is written for one pl
606.
▲
by
Joker_vD
11mo ago
Oh, sorry, I thought you were saying that "RISC-V's comparison instructions don't properly handle integer overflow that internally happens when they do the comparisons, i.e. it only has unsigned comparisons".
607.
▲
by
Joker_vD
11mo ago
But RISC-V has it? SLT a2, a0, a1 SLT a0, a1, a0 SUB a0, a0, a2 RET
608.
▲
by
Joker_vD
11mo ago
It's everywhere. Just recently (a couple of months ago) on HN there was a story about an SQLite-but-rewritten-in-Rust [0], how they've discovered some peculiarity in SQLite file format by reading its source code. Except, of course
609.
▲
by
Joker_vD
11mo ago
> Or why didn't they just gregate? Because that's not how the prepositions worked in Latin. E.g. "Marcus ex casa exit" ("Marcus went out of the house") requires both the "ex" preposition and the
610.
▲
by
Joker_vD
11mo ago
I just want an editor! Not a "viitor". Not an "emacsitor". Those aren't even words!!! Imagine calling your firm "Commerical Firm". Would this even be allowed?
611.
▲
by
Joker_vD
11mo ago
Another small trick is to use a "reversed" bump allocator, that starts handing out the memory from the end with the larger addresses. Since AST structures are almost always created bottom-up, children before the parents, the root
612.
▲
by
Joker_vD
11mo ago
> You say "the streaming client" "Which one?! There are seven popular projects with this exact name on GitHub that have >100K stars; which particular one do you use?"
613.
▲
by
Joker_vD
11mo ago
> You wouldn't want an instruction with up to 13 destinations in high performance designs anyways. Why not? Code density matters even in high-performance designs although I guess the "millicode routines" can help with that
614.
▲
by
Joker_vD
11mo ago
const int left = *(const int*)untyped_left, right = *(const int*)untyped_right; return in_reverse? (right > left) - (right < left) : (left > right) - (left < right); I wonder if there is a way to act
615.
▲
by
Joker_vD
11mo ago
I suspect it was adopted from a bigger snippet that had support for parsing things like "-abc" as "-a -b -c", etc.
616.
▲
by
Joker_vD
11mo ago
> If the Zba extension is present, sh3add.uw is a single instruction for zero-extending idx from 32 bits to 64, multiplying it by sizeof(uint64_t), and adding it to slots. Yay, we've got an equivalent of SIB byte but as three (six?)
617.
▲
by
Joker_vD
11mo ago
In that different world, Transmeta would actually succeed in the market of x86-compatible CPUs and, perhaps, would even come up with their own 64-bit extension. Itanium would still flop. Or maybe, if the push came to shove, the desktops wou
618.
▲
by
Joker_vD
11mo ago
Raymond Chen has a whole "Introduction to IA-64" series of posts on his blog, by the way. It's such an unconventional ISA that I am baffled that Intel seriously thought they would've been able to persuade anyone to switc
619.
▲
by
Joker_vD
11mo ago
> But have you ever tried to make something you built to easy to maintain? There is still a difference between e.g. Lada 2104 which, while admittedly having some strange fastening designs, was relatively straight-forward do (partially) d
620.
▲
by
Joker_vD
11mo ago
Honestly, the storage use would probably be the last thing of my mind when designing for "what should state/region/district/bundesland/etc. be modelled as". Sometimes those things get renamed, sometimes they ar
621.
▲
by
Joker_vD
11mo ago
> it "just requires" you to flawlessly uphold memory access invariants manually across all possible concurrent states of your program. Which, for certain kinds of programs, is trivially simple for e.g. "set value once duri
622.
▲
by
Joker_vD
11mo ago
At the time, a.out existed and COFF and ELF didn't. The switch from STABS to DWARF has also never happened, right?
623.
▲
by
Joker_vD
11mo ago
But the resulting algorithm is just... weird. It operates under the assumption that the elements f.i can be arbitrary e.g. negative or greater than 9 — which they can't. And adopting that assumption allows you to dispense with keepin
624.
▲
by
Joker_vD
11mo ago
That's a lot of manual effort to save just a tiny bit of thinking. The first digit is the largest digit among the first N-1 digits. The second digit is the largest digit to the right of the first digit up to and including the Nth digit
625.
▲
by
Joker_vD
11mo ago
> Why not use same syntax for all architectures? My question is more, why even try to use the same syntax for all architectures? I thought that was what GAS's approach was: that they took AT&T syntax, which historically was un
626.
▲
by
Joker_vD
11mo ago
Ar puts a file called "/" as the first file of the archive. Inside, there is a number N, then a list of N file offsets, and then a list of N null-terminated strings. It's a symbol table of sorts: each null-terminated str
627.
▲
by
Joker_vD
11mo ago
> In my town, the mayor and council make about $30k each while the median income in the city is well over $100k and houses cost over $1M. The chief of police summons a recently enrolled policeman in his office: "The accounting calle
628.
▲
by
Joker_vD
11mo ago
HTTP/2 is basically HTTP/1.1, just over some custom binary protocol bolted on on top of TLS.
629.
▲
by
Joker_vD
11mo ago
Nope. Function with external linkage are required to have different addresses. MSVC actually breaks this and this means that you can't reliably compare function pointers on MSVC because some different functions may happen to have same
630.
▲
by
Joker_vD
11mo ago
Wait, why does GAS use Intel syntax for ARM instead of AT&T? Or something that looks very much like it: the destination is the first operand, not the last, and there is no "%" prefix for the register names?
More ›