Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
511.
▲
by
Joker_vD
9mo ago
> the average over the whole day was 49.975Hz which doesn't strike me as particularly bad. A day, having 86_400 seconds in it, is equivalent to 4_320_000 pulses at 50 Hz. At 49.975 Hz, it's only 4_317_840 pulses which is 2_160
512.
▲
by
Joker_vD
9mo ago
The example in 1.13 probably would work better if the example with scalar instructions actually had, you know, more instructions than the one with the vector instructions. Otherwise, it's very taxing to read things like "static in
513.
▲
by
Joker_vD
9mo ago
Yeah, except you don't need to rewrite that code every time a new AVX drops, and also don't need to bother to figure out what to do on older CPUs. IIRC libc for x64 has several implementations of memcpy/memmov/strlen
514.
▲
by
Joker_vD
9mo ago
Not to mention that Rust too had "let's have the minimalistic stdlib for now, let the community figure out the rest" approach and the results are somewhat mixed.
515.
▲
by
Joker_vD
9mo ago
It... really does look like it uses slightly modified Minecraft textures for blocks. No, seriously, it does look that way.
516.
▲
by
Joker_vD
9mo ago
There, apparently, were quite a number of ISAs where checking the sign bit was more convenient (performant?) than checking (in)equality with zero.
517.
▲
by
Joker_vD
9mo ago
Because it's not posted by a Russian/Indian account, duh!
518.
▲
by
Joker_vD
9mo ago
> And finally, source-level debugging is gnarly. You would like to be able to embed DWARF information corresponding to the code you residualize; I don’t know how to do that when generating C. I think emitting something like #line
519.
▲
by
Joker_vD
9mo ago
> Pedantic: the axioms of Boolean algebra don’t assign any natural numbers to the elements “top” and “bottom” of the set it operates on. Yes? That's precisely what I meant when I said that the traditional presentation of mathemati
520.
▲
by
Joker_vD
9mo ago
> Empowering the 'User' (hardware owner) should have always been the focus. The "user" and "hardware owner" are not necessarily the same person.
521.
▲
by
Joker_vD
9mo ago
Yeah, but it's a shame that almost every language gets it wrong (and even traditional presentation of mathematical logic) and uses zero as representation of FALSE. It should represent TRUE!
522.
▲
by
Joker_vD
9mo ago
Not really, no. Newer versions of standard can (and do, although rarely, I have give it to C standard committee) introduce incompatibilities with earlier versions of standard. E.g. at one point the standard explicitly allowed to #undef &quo
523.
▲
by
Joker_vD
9mo ago
> 1. Explicitly set the C standard to C17 or older, so the code is built using the custom boolean type. > Option 1) seemed like the easiest one, but it also felt a bit like kicking the can down the road – plus, it introduced the quest
524.
▲
by
Joker_vD
9mo ago
I've asked you why prepending paths to PATH instead of appending was a bad idea. How is having typing full paths has anything to do with it?
525.
▲
by
Joker_vD
9mo ago
> That's a poor advice for the scripts you call relatively frequently. Why? It protects you from someone else ( cough updated packages introducing new commands cough ) picking a name you already use.
526.
▲
by
Joker_vD
9mo ago
> if AI replaces work wholesale right now billions of people will die before society is reshaped accordingly. Don't worry, the economists will slap the label "natural readjustment of labour supply levels" on this phenome
527.
▲
by
Joker_vD
9mo ago
Reminds me of a review (written somewhere in the early 60s, I believe) by some Soviet sci-fi writer of Hamilton's Star Kings (1949) and the Western sci-fi in general; to paraphrase, "it's astonishing that those writers would
528.
▲
by
Joker_vD
9mo ago
But everything after headers can (almost) be a blob. Just copy buffers while taking care to track CRLF and look if what follows is a space. In fact, you have to do it anyhow, because line-folding is allowed in headers as well! And this &quo
529.
▲
by
Joker_vD
9mo ago
I am willing to bet the whole xAI/SpaceX merger is simply a ploy by Musk to evade releasing accurate historical information about SpaceX's finances. How much did it actually cost SpaceX to launch a kilogram of payload into space
530.
▲
by
Joker_vD
9mo ago
It's pseudocode. A mix of Python's block structure, C's style of variable introduction, and Pascal's use of ":=" for assignment and "=" for equality. Oh, and assigning to output variables instead of e
531.
▲
by
Joker_vD
9mo ago
Makes about as much sense as Twitch buying Curse about.. a decade ago?
532.
▲
by
Joker_vD
9mo ago
And having a CPU with "128-by-64" or "64-by-32" division instruction (such as x86/x64) simplifies the algorithm even further. Inputs: uint[128] N, uint[128] D Outputs: uint[128] Q, uint[128] R such
533.
▲
by
Joker_vD
9mo ago
Since they don't calculate the upper 128-bits of the product, they use only 3 multiplications anyway.
534.
▲
by
Joker_vD
9mo ago
> On division: There is no neat codegen for division. Wait, what? I'm fairly certain that you can do a 128-bit by 128-bit division using a x64's 128-bit by 64-bit division instruction that gives you only 64-bit quotient and rem
535.
▲
by
Joker_vD
9mo ago
Um, no? The cashier punches your $21.28 into the register, and it tells her that she needs to give you $5.05 in change.
536.
▲
by
Joker_vD
9mo ago
At long last, we have created the Torment Nexus from classic sci-fi novel "Don't Create The Torment Nexus"!
537.
▲
by
Joker_vD
9mo ago
if [ -n "$DRY_RUN" ] ; then alias rm='echo rm' alias cp='echo cp' fi Of course, output redirects will still overwrite the files, since the shell does it and IIRC this behaviour can
538.
▲
by
Joker_vD
9mo ago
> whine to your vendors until they give you the new stuff. How well does this usually work, by the way?
539.
▲
by
Joker_vD
9mo ago
> constraining to invert is not sufficient in my opinion Eh. Doing green/red text color with default background, maybe inverted works amazing for me. In fact, I'd say that every sensible colour scheme for a terminal should have
540.
▲
by
Joker_vD
9mo ago
> That's not something I said. This was a pre-emptive rebuttal to the non-answer "well, you're not limited to the official repositories, so apt/yum/etc. is absolutely fine, use only it" I always get unless I
More ›