Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_kst_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
_kst_
3y ago
As far as I can tell, there is no busybox bash. busybox's built-in shell is ash. There are options to enable a few bash-compatible extensions, but there is no "bash" applet.
122.
▲
by
_kst_
3y ago
Without a heat shield, Starship wouldn't be able to bring a crew back from orbit (or higher), regardless of reuse. Starship HLS, the planned lunar landing version, probably won't need a heat shield, but they'll definitely nee
123.
▲
by
_kst_
3y ago
The article gets something wrong about C. "U0 is essentially void but with zero size. In regular C, void is actually considered a Unit Type and thus when computing sizeof(void) in GCC, you will find that it resolves to 1." In C, v
124.
▲
by
_kst_
4y ago
I just did a random puzzle, got #12, and got the word in 5 guesses. Pure luck.
125.
▲
by
_kst_
4y ago
Arrays are already distinct types. char c; &c; // type is char* char arr[20]; &arr; // type is char (*p)[20], pointer to array of 20 char (A small quibble: the term "type compatibility
126.
▲
by
_kst_
4y ago
Your proposed fix in [the article]( https://www.digitalmars.com/articles/C-biggest-mistake.html ) is to add a new function declaration syntax: void foo(char a[..]); that causes an array argument to be passed as
127.
▲
by
_kst_
4y ago
I live to serve.
128.
▲
by
_kst_
4y ago
I don't claim to have the best, or even good, fizzbuzz implementations, but if you're looking for a lot of fizzbuzz implementations: https://github.com/Keith-S-Thompson/fizzbuzz-c https://github.
129.
▲
by
_kst_
4y ago
Could be worse. https://github.com/Keith-S-Thompson/fizzbuzz-c/blob/master/f... #include <stdio.h> #include <setjmp.h> int main(void) { jmp_buf jb[7]; volatile i
130.
▲
by
_kst_
4y ago
That's actually something that struck me negatively (about the README, not about the language). Sample code is great, but I'd be happier with a README that says something about the language (and, to a lesser extent, about its impl
131.
▲
by
_kst_
4y ago
That's not quite the kind of thing I'm referring to. The first full sentence of the README tells you what it is: "Pyright is a fast type checker meant for large Python source bases." I'm referring to READMEs that pr
132.
▲
by
_kst_
4y ago
Agreed. I've seen too many README files that summarize the changes in the latest release without explaining what the project is or what it's for. (I don't have a specific example, which might imply that the problem isn&#x
133.
▲
by
_kst_
4y ago
Exactly. C has no arithmetic operations on types narrower than int and unsigned int. This bug (which involves subtracting 8-bit values and yielding an 8-bit result) could only happen in assembly language (or in an exotic C implementation wh
134.
▲
by
_kst_
4y ago
So we have "ronna" or "R" for 10^27 and "quetta" or "Q" for 10^30. I haven't seen the official binary equivalents. For example, we have "yotta" or "Y" for 10^24, and "yob
135.
▲
by
_kst_
4y ago
> date -s @$[2*31 - 10] A digression: The documented bash syntax for arithmetic expansion is $(( EXPRESSION )) . I see that $[ EXPRESSION ] also works, but I don't see it documented anywhere. (Both syntaxes also work in zsh.)
136.
▲
by
_kst_
4y ago
UXF has plenty of English-specific keywords. I agree that "true" and "false" would be clearer than "yes" and "no", but the fact that "yes" and "no" are English words isn't an
137.
▲
by
_kst_
4y ago
No, I wasn't root.
138.
▲
by
_kst_
4y ago
I tried this on Ubuntu 22.04.1 and got an error: $ reptyr 10330 Unable to attach to pi
139.
▲
by
_kst_
4y ago
About as difficult as it is to add 1 before printing the month as a number.
140.
▲
by
_kst_
4y ago
Agreed, just like mutable x = 42 should be allowed.
141.
▲
by
_kst_
4y ago
One suggestion: In documentation and comments, distinguish clearly between "const" and "constant". "const" means "read-only", and probably should have been spelled "readonly". "constant
142.
▲
by
_kst_
4y ago
An infinite set can have the same cardinality as a proper subset of itself. Two sets have the same cardinality if all their elements can be placed into a one-to-one correspondence with each other. For example, the positive integers can be p
143.
▲
by
_kst_
4y ago
Apparently I misremembered the details of the proof. I thought that it started with (P1, P2, P3, ..., PN) being a list of all the primes from 2 up to PN. Since (P1 * P2 * ... * PN) + 1 either is prime or has a prime factor not in the list,
144.
▲
by
_kst_
4y ago
No, the constructed number (P1 * P2 * ... * PN) + 1 either is prime or has a prime factor greater than PN. For example, (2 * 3 * 5 * 7 * 11 * 13) + 1 is 30031, which is 59 * 509 ( Apparently I misremembered the details of Euclid's
145.
▲
by
_kst_
5y ago
And it probably had at least one bug.
146.
▲
by
_kst_
5y ago
Apparently I've been making mashed potatoes wrong.
147.
▲
by
_kst_
5y ago
The IAU (International Appetizers Union) has ruled that open faced sandwiches are in fact dwarf sandwiches, and are therefore not true sandwiches. A "giant sandwich" must have enough mass to be nearly spherical due to hydrostatic
148.
▲
by
_kst_
5y ago
> For example: "don't count your chickens before they're hatched" was pretty obvious, but "hatched" was a new word for me in this meaning, I only knew about the door thingy not "hatching from eggs"
149.
▲
by
_kst_
5y ago
" ... and the Roman senator Cassiodorus noted in 538 ..." If Wikipedia is correct, he wasn't a senator. His full name was Magnus Aurelius Cassiodorus Senator.
150.
▲
by
_kst_
5y ago
Yes, you do.
More ›