kogasa

joined 2 years ago
[–] kogasa@programming.dev 2 points 1 week ago

He had been for some time. They offered him half his S1 salary.

[–] kogasa@programming.dev 9 points 1 week ago

Hugh Laurie cooked hard

[–] kogasa@programming.dev 4 points 2 weeks ago (1 children)

Highly effective unless the universe really does revolve around you.

[–] kogasa@programming.dev 7 points 2 weeks ago

Hetzner is a good provider. Congrats on the migration and good luck.

[–] kogasa@programming.dev 3 points 2 weeks ago

I can sorta see that. An exit code is an exit code. But exit codes, like words, have meanings. Sometimes that meaning is a boolean value, as is the case in e.g. GNU Coreutils conditions: https://www.gnu.org/software/coreutils/manual/coreutils.html#Conditions

[–] kogasa@programming.dev 5 points 2 weeks ago* (last edited 2 weeks ago)

Yes, it is used consistently in GNU Coreutils: https://www.gnu.org/software/coreutils/manual/coreutils.html#Conditions

  • false: do nothing, unsuccessfully (returns 1)

  • true: do nothing, successfully (returns 0)

  • test: check file types and compare values is documented as "returns a status of 0 (true) or 1 (false)"

[–] kogasa@programming.dev 11 points 2 weeks ago (7 children)

What you're saying is irrelevant. In the real world, when an exit code is a boolean, 0 is true.

[–] kogasa@programming.dev 16 points 2 weeks ago (10 children)

Every time an exit code is a boolean, 0 is true. Shell scripting would be very annoying if this were inconsistent

[–] kogasa@programming.dev 5 points 3 weeks ago

Not quadratic in the length of the input. Assuming replace is linear this is also linear

[–] kogasa@programming.dev 2 points 3 weeks ago

the availability of spoons is not the matter at hand

[–] kogasa@programming.dev 2 points 1 month ago

There are non-standard models of arithmetic. They follow the original first-order Peano axioms and any theorem about the naturals is true for them, but they have some wacky extra stuff in them like you mention.

[–] kogasa@programming.dev 17 points 1 month ago

Smarmy grifter who caused irreparable and immeasurable harm

view more: next ›