Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_kst_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
241.
▲
by
_kst_
6y ago
Because passing the city by copy is way too expensive and won't destroy the original city anyway.
242.
▲
by
_kst_
6y ago
Many years ago, this joke appeared in an April issue of the Communications of the ACM (before the Cray 3 actually existed): "Have you heard about the new Cray 3? It's so fast it can execute an infinite loop in about two minutes.&q
243.
▲
by
_kst_
6y ago
There are 10 kinds of people in the world: Those who understand little-endian notation.
244.
▲
by
_kst_
6y ago
It's possible they rejected it simply because it didn't review the product. A review that expresses an opinion about the product and also mentions that other reviewers are being paid might be accepted.
245.
▲
by
_kst_
6y ago
In C, for example, "if (foo != true)" is not necessarily equivalent to "if (!foo)" -- but the latter very probably reflects the author's intent more accurately. For example, an int with the value 42 is logically a &
246.
▲
by
_kst_
6y ago
An administrator account, in this context, is one that's a member of the "sudo" group. It's perfectly ordinary for more than one account to be a member of that group.
247.
▲
by
_kst_
6y ago
Did you mean to say "isn't"?
248.
▲
by
_kst_
6y ago
Is that true? In the past (long enough ago that using md5 almost made sense), I used a combination of md5 and sha1 to verify file integrity. Both checksums had to match or the file was rejected. It seems obvious that that's at least
249.
▲
by
_kst_
6y ago
The article says 1886, but the caption on the video and Wikipedia both say 1896, which seems much more plausible.
250.
▲
by
_kst_
6y ago
And the transition from Julian to Gregorian just changed the leap year rules. It didn't change the fact that there's no year 0. The 1st Century began in the year 1. I don't believe anything in ISO 8601 refers to the century s
251.
▲
by
_kst_
6y ago
Speaking even more pedantically, a new decade is starting right now ... and here comes another one. The 2020s start 2020-01-01 (just as the century called "the 1900s" started 1900-01-01). The 21st century started 2001-01-01. The 2
252.
▲
by
_kst_
6y ago
I think you mean anything other than a terminal. Whatever its output is directed to, whether it's a pipe, a file, or anything else, is the stdout of the ls process.
253.
▲
by
_kst_
6y ago
I saw that too. I have a rather long beard, and my toonified photo was -- horrifying.
254.
▲
by
_kst_
6y ago
The development of multicellular life is unlikely to be the great filter. According to Wikipedia, "Multicellularity has evolved independently at least 25 times in eukaryotes". https://en.wikipedia.org/wiki/Mul
255.
▲
by
_kst_
6y ago
We had a bug tracking system that malfunctioned starting at (time_t)1000000000 (3 days before 9/11). Apparently it converted the time_t value to a string and truncated it to 9 characters. Its concept of the current time jumped back to
256.
▲
by
_kst_
6y ago
Making time_t unsigned would break the ability to refer to times before 1970. Existing code that deals with 32-bit timestamps almost universally assumes that (time_t)0 is 1970-01-01 00:00:00 UTC. Updating that code to guess a different epoc
257.
▲
by
_kst_
6y ago
Is "x<-3" an assignment to x or a comparison of x to -3? The same problem led early C (pre-K&R1) to change its compound assignment operators from "=op" to "op=". In early C, "x = -3" assigned t
258.
▲
by
_kst_
6y ago
And "C: The Complete Nonsense", a review of another Herbert Shildt book. https://www.seebs.net/c/c_tcn4e.html
259.
▲
by
_kst_
6y ago
An expression yields a value.
260.
▲
by
_kst_
6y ago
A particular implementation of printf used that technique. There probably weren't a whole lot of different implementations at the time, but it's not part of the C specification. <varargs.h> was a pre-Standard header that pro
261.
▲
by
_kst_
6y ago
Sort of. ANSI introduced prototypes, but old-style function declarations and definitions, though they were declared obsolescent, remained valid (i.e., any conforming C compiler is still required to support them). As of the 2011 standard, th
262.
▲
by
_kst_
6y ago
I just downloaded a free sample of the Kindle edition. Here's an excerpt from the preface: "Prior to publication of the first edition, the manuscript was reviewed by a professional C programmer hired by the publisher. This individ
263.
▲
by
_kst_
6y ago
There are published rationales for C90 and C99, but not for C11. (Actually the original rationale is for ANSI C89, which differs from ISO C90 mostly in the way the sections are numbered.) C89: https://www.lysator.liu.se/c&#x
264.
▲
by
_kst_
6y ago
C99 added type _Bool (also called bool if you #include <stdbool.h>) -- but it doesn't actually use it much. Operators that yield logically "boolean" values (<, <=, >, >=, ==, !=, &&, ||, !) yield val
265.
▲
by
_kst_
6y ago
Cygwin provides a POSIX-like layer, but it doesn't run Linux binaries.
266.
▲
by
_kst_
6y ago
I have a similar issue, though it's not related to Gmail. I registered an obvious joke email address from a free service. I'm not going to type it here, but imagine something similar to "fakeaddress@example.com". (I coul
267.
▲
by
_kst_
6y ago
And the first stage "Super Heavy" is designed to have 31. Update: I think the hopper in the video is a prototype of the lower stage, which is planned to have 31 engines. The upper stage is planned to have 6.
268.
▲
by
_kst_
6y ago
My work laptop (a Thinkpad) has a built-in plastic slider that physically covers the camera. If something activates the camera while that cover is closed, it won't see anything.
269.
▲
by
_kst_
6y ago
For those who don't follow the link, it's 1816.
270.
▲
by
_kst_
6y ago
Good point. "void" does not appear in K&R1 (1978), and there was no definitive manual for the language between that and the ANSI standard, but it did start appearing in implementations. Still, I'm not aware of any impleme
More ›