Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nneonneo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
75 ms
·
961.
▲
by
nneonneo
7y ago
Back in the 90s, it was common to see t-shirts and other apparel festooned with nonsensical strings of English letters in China, an attempt to be “cool” by appropriating the design of lettered Western clothing without any of the content. Hu
962.
▲
by
nneonneo
7y ago
It’s actually a shame that there is no `mov rip, ...` instruction. That would make it truly Turing-complete. ARM has this instruction! (Of course, jmp [...] works just as well, but it isn’t called mov)
963.
▲
by
nneonneo
7y ago
I don’t know where to start with your comment. > If the claim is extremely unreasonable ... most people can tell it’s unreasonable. Surely you must have far more faith in humanity than I do, or you would not make this statement. One only
964.
▲
by
nneonneo
7y ago
It also messes with dictionary lookup! It adds this nonsense if you select more than two Chinese characters, and so it makes it really hard to look up four-character Chinese idioms in my dictionary (which are, inexplicably, frequently missi
965.
▲
by
nneonneo
7y ago
An interesting coincidence: it was recently (2019) discovered that the fastest way to multiply two n-bit integers, in time O(n log n), involves 1729-dimensional Fourier transforms: https://hal.archives-ouvertes.fr/hal-020707
966.
▲
by
nneonneo
7y ago
GCC has had case ranges as an extension for a long time now: https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html It’s a far cry from general pattern matching (a la Rust, Scheme) but it’s helpful in some circumstan
967.
▲
by
nneonneo
7y ago
How does this fare against Python's famous Timsort (used by several languages and systems)? How about the dual-pivot quicksort used by Java for primitive arrays? Someone has to have put together a nice benchmark for comparing many sort
968.
▲
by
nneonneo
7y ago
If you pleaded the fifth on your password, the court might be able to compel you to enter the password such that they don’t get the password but do get the data. The next question is, if doing so immediately decrypts a file (e.g. a text f
969.
▲
by
nneonneo
7y ago
FYI, if you're switching to Firefox, I strongly (strongly) recommend checking out the Tree Style Tab extension ( https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta... ), which puts all your tabs
970.
▲
by
nneonneo
7y ago
Sandboxed Java apps don’t. Here I’m talking about apps that you can’t get on the App Store, many of which are older Java programs which haven’t been updated to use the newer APIs. The push to force sandboxed apps to use the system dialog ha
971.
▲
by
nneonneo
7y ago
With sandboxing, macOS is now forcing devs to use their file selection dialog because it will grant access to the selected files - a custom dialog box has no such blessing. It's nice, actually; it's finally making the file selecti
972.
▲
by
nneonneo
7y ago
The statute on mail fraud (18 U.S.C. § 1341: https://www.law.cornell.edu/uscode/text/18/1341 ) clearly states: > places in any post office or authorized depository for mail matter, any matter or thing whate
973.
▲
by
nneonneo
7y ago
That sounds like mail fraud - and you could get prosecuted by the feds for that. Not something I recommend trying, especially in the US.
974.
▲
by
nneonneo
7y ago
There's also `echo -ne '\0'`, which works similarly (it tells echo to interpret the escape sequences).
975.
▲
by
nneonneo
7y ago
Classic MacOS used : for the directory separator, so you could freely put / in your filenames. Modern macOS converts / in the UI to : under the hood in order to retain compatibility, while banning : in the UI (the same restriction
976.
▲
by
nneonneo
7y ago
Unexpected places where you can use null bytes: gets, fgets and scanf("%s"). All three will read and store null bytes into your string from the input, and keep going: gets and fgets only terminate at a newline character and scan
977.
▲
by
nneonneo
7y ago
Where the literal hell did you get your certificate from? This thing is like a who's who of shady domains: Common Name: app.groupchat.co DNS Name: admin.lotto-dd.com DNS Name: ads.noedgesoftware.com DNS Name: api.picniic.com DNS Name:
978.
▲
by
nneonneo
7y ago
The kernel is composed of a bunch of independent source files which share headers; thus, running them through a preprocessor would massively overcount the LoC. (In theory, this would get you the “actual compiled LoC” but that’s a useless me
979.
▲
by
nneonneo
7y ago
On the other hand, these are running on some big cluster with a whole bunch of CPUs, so I wonder if you’d still get 3m per build on something like a laptop?
980.
▲
by
nneonneo
7y ago
A clean build of the Linux kernel can be very fast, but the config is very relevant. A custom build specific to your hardware will touch only a small fraction of the overall kernel tree, whereas a generic build including a large swath of ha
981.
▲
by
nneonneo
7y ago
The only relevant info I could dig up was this issue from Kubernetes in 2016: https://github.com/kubernetes/kubernetes/issues/27444 It seems to be discussing the speed of building Kubernetes on their build-se
982.
▲
by
nneonneo
7y ago
GDB supports expressions on both sides of the @ sign, so you could also probably do p *values@array_size(values) and that is probably short enough that you could wrap that in a macro. (Of course, Python is definitely the more exten
983.
▲
by
nneonneo
7y ago
Another one to add: if N is big enough, even statistically improbable events like single bit flips in memory become likely or even nigh-certain. For example, if you set up a bunch of fake domains that differ from real domains in a single bi
984.
▲
by
nneonneo
7y ago
> Code written in one part of the program can cause issues hundreds of lines later even though they are seemingly unrelated. How does this change when functions accept big singletons like "World"? At some point you'd have
985.
▲
by
nneonneo
7y ago
OK, so I'm genuinely confused about what your objection to global state is. You mention issues with assignment, and so on - those are issues with Python `globals` and variables in the global namespace, not issues with global state per
986.
▲
by
nneonneo
7y ago
The Media Devices query might always return "unique" on some browsers (e.g. Firefox). Firefox, for example, returns a random string which persists for that origin across a single browsing session (but which is different after the
987.
▲
by
nneonneo
7y ago
So...the Wuhan scientists are modifying viruses in their BSL-4 lab (which is no joke when it comes to safety standards) and then just letting these things escape? Sorry, that’s very far fetched. Why can’t people accept that a virus like thi
988.
▲
by
nneonneo
7y ago
Sorry, this is wild speculation, not fact. The “100% match” you cited is for one protein (and a small one, at that - just 75 amino acids long) which proves absolutely nothing (individual proteins can often be highly conserved - and amino
989.
▲
by
nneonneo
7y ago
A given server might be hosting multiple websites, each with a different certificate (e.g. a CDN endpoint). It needs to know which certificate to present to the user. Therefore, during the initial TLS handshake, the client sends the server
990.
▲
by
nneonneo
7y ago
The very low precedence of & is the source of an unbelievable number of bugs, especially in embedded programming. For example: if(PORTA & 3 != 0) looks like it should be true if either of the low two bits is set. But actually, it on
More ›