Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pwdisswordfish
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
pwdisswordfish
9y ago
That's completely bogus. Forget unpaired surrogates; this scheme cannot even represent odd-length ASCII strings .
32.
▲
by
pwdisswordfish
9y ago
codePointAt still takes the same type of index that charCodeAt does. It doesn't address the issue at all. $ jsc >>> '\u{1f4a9}A'.codePointAt(1).toString(16) dca9 And what was the committee supposed t
33.
▲
by
pwdisswordfish
9y ago
What? These are cross-platform features, defined in the ECMAScript spec. Nearly all string-processing code written in JavaScript uses them.
34.
▲
by
pwdisswordfish
9y ago
Functions like String.prototype.charCodeAt, String.prototype.indexOf, String.prototype.substr and such (which operate on indices into 16-bit-wide strings) will have to be supported somehow, so I doubt it.
35.
▲
by
pwdisswordfish
9y ago
Pedantic distinction that exists only in English.
36.
▲
by
pwdisswordfish
9y ago
It can't, because lol dynamic dispatch. Exercise: what does this code do? import collections collections.namedtuple = lambda _0, _1, _2=False, _3=False: "Where is your god now?" import b b.py: import co
37.
▲
by
pwdisswordfish
9y ago
> How do you solve for perf when things can't be installed? You don't, even when things can be installed. And that's where editors that eat half a gigabyte of memory to open a 6 MiB file come from.
38.
▲
by
pwdisswordfish
9y ago
shr rax, 1 div rbx will divide the 128-bit value in (rdx, rax) by rbx, then store the quotient in rax and the remainder in rdx.
39.
▲
by
pwdisswordfish
9y ago
> this still means user can't use system's `df` easily \df There you go.
40.
▲
by
pwdisswordfish
9y ago
The real WTF is that APT spawns an external process to check disk usage, instead of invoking statvfs() on its own. Some cases are less clear-cut, however. For example, the Debian 'nodejs' package installs node.js binary as /u
41.
▲
by
pwdisswordfish
9y ago
You never know. Some people used to think 4 billion slots would be more than enough for addressing every host in the world, and so they allocated the addresses haphazardly. Now look at the sorry state of IPv6 adoption 20 years after it'
42.
▲
by
pwdisswordfish
9y ago
I believe the [removed] only appears in place of comments with replies that have not been deleted. Though yeah, that still makes it rather implausible.
43.
▲
by
pwdisswordfish
9y ago
You haven't been around much, then. The seven-segment display inside the elevator in my former dormitory labelled the ground floor as '0', and the one below as '-1'. There was also a voice announcer, but I don'
44.
▲
by
pwdisswordfish
9y ago
Peano axioms can just as well be formulated with 1 as the smallest natural number, with little consequence as to the expressiveness of the resulting theory. Not that there aren't mathematical reasons to start counting with zero, but th
45.
▲
by
pwdisswordfish
9y ago
Because it's ridiculous regardless of the reason; even if nobody is doing this on purpose.
46.
▲
by
pwdisswordfish
9y ago
Why do you think Lennart Poettering is hated so much?
47.
▲
by
pwdisswordfish
9y ago
Dropbear[0] doesn't seem to support "--" either. [0] https://matt.ucc.asn.au/dropbear/dropbear.html
48.
▲
by
pwdisswordfish
9y ago
Right... but the no-starting-hyphen rule seems to be more universally accepted. ... ...Oh, fuck me. I just found https://archive.fo/T0WcV ... (archive.is link because Firefox won't open it directly)
49.
▲
by
pwdisswordfish
9y ago
Ordinarily I'd agree, but a starting hyphen isn't valid in a domain name anyway, so it's harmless. RFC 1035: "The labels [a grammar production rule for domain names] must follow the rules for ARPANET host names. They mu
50.
▲
by
pwdisswordfish
9y ago
Or 0.0.0.1, and spare yourself the spurious loopback traffic.
51.
▲
by
pwdisswordfish
9y ago
http://inutile.club/estatis/password-security-checker/
52.
▲
by
pwdisswordfish
9y ago
let a = 0 let b = 123 let result = a || b sets result to 123, but 0 !== null.
53.
▲
by
pwdisswordfish
9y ago
The slides mention an 'apicall' opcode 0ffff0; searching the web turns up nothing but these same slides. Does anyone know anything about it?
54.
▲
by
pwdisswordfish
9y ago
The UI has some warts, and a few design choices were made that some people find questionable. You can get used to them (which is probably why most people don't even notice it as a problem), but they're there. The best survey of Gi
55.
▲
by
pwdisswordfish
9y ago
Unlikely, for the same reason that he didn't tackle application packaging[0]: because writing a successful init system would necessitate either perfect backwards compatibility with shell scripts (next to impossible unless you're b
56.
▲
by
pwdisswordfish
9y ago
IIRC that vowel is /e/, which is neither really /ɛ/ ('eh') nor the diphthong /eɪ/ ('ey'). And that quite neatly illustrates the problem with shoehorning other languages into English phonolog
57.
▲
by
pwdisswordfish
9y ago
Oh yes, I'm looking forward to descriptions of pronunciations like 'rhymes with tomato'. English, with its myriad of accents, is an awful language to transcribe anything into. Moreover, having these pseudo-English transcripti
58.
▲
by
pwdisswordfish
9y ago
> It means that editors don't have to worry about legal, sysadmin, PR, etc.; and conversely WMF is not directly responsible for Wikipedia content. What's so unimaginable about having separate editorial and legal deparments with
59.
▲
by
pwdisswordfish
9y ago
Here are a few better ones: https://mathoverflow.net/questions/1083/do-good-math-jokes-e...
60.
▲
by
pwdisswordfish
9y ago
> In practise, therefore, trying to optimise all parts of a program means doing a so-so job on all parts of a programme . This reads as if the author had suddenly remembered he's British halfway through the sentence. Quite jarrin
More ›