Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Twisol
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
102 ms
·
931.
▲
by
Twisol
8y ago
Yep! It's equivalent to `AA(A|AA)?`, by way of the parent's reduction for `?`, but it's a nice option when you want to emphasize some kind of symmetry.
932.
▲
by
Twisol
8y ago
Incidentally, here's how I might write that URL regex with comprehensibility outweighing all else. Notice that I enable free-spacing [0], which can usually be enabled by passing a flag rather than embedding it in the regex. In Python,
933.
▲
by
Twisol
8y ago
And this is why we have the syntax sugar.
934.
▲
by
Twisol
8y ago
Minor nitpick: A{2,4} becomes AA(|A|AA), not AA(A|AA).
935.
▲
by
Twisol
8y ago
(EDIT: I replaced asterisks with <AST> in the pattern below, since HN doesn't have a convenient way to escape asterisks last I checked.) > First, most of its syntax beyond the very basics like "X+" or "[^X]"
936.
▲
by
Twisol
8y ago
I think I made that point clear in my comment. As I said, it's a very different experience from playing with friends.
937.
▲
by
Twisol
8y ago
As a once-moderator for a smaller stream, I can definitely confirm that there is gold in them Twitch chat hills. Community shaping is important and often overlooked, and it really does help to have a moderation team that cares! It helps tha
938.
▲
by
Twisol
8y ago
Twitch has offered VODs ("videos on demand") for streams for a number of years now, and people who can't see all the streams generally have at least a week to catch up on any content they particularly wanted to see. Skimming
939.
▲
by
Twisol
8y ago
I can only speak for myself, but as someone who streams off and on (mostly off, since I've got other things going on right now that I need to focus on), I have no particular desire to be famous. I'd rather not be famous. But it&
940.
▲
by
Twisol
8y ago
I agree in general, but it seems like there might be a particularly constrained situation where it makes sense. I can usually look at a medium-sized block of code and suss out its intent in a short amount of time, even if I don't know
941.
▲
by
Twisol
8y ago
Is it? I checked before commenting (because I also wanted to make sure the arithmetic analogy actually held): irb(main):001:0> 0**0 => 1 irb(main):002:0> 0**1 => 0 irb(main):003:0> 1**0 => 1 i
942.
▲
by
Twisol
8y ago
While you're absolutely right that this is a kind of distributivity, conventionally + is related to "or", * to "and", and ^ to "implies". So the theorem as given would be rendered as something more like &q
943.
▲
by
Twisol
8y ago
This is really a fantastic explanation, but I want to clarify one thing from early on for other readers. If the function isn't changing much locally, it's possible that you are at neither a minimum or a maximum, but rather a sadd
944.
▲
by
Twisol
8y ago
I'm not really sure why you're being downvoted. You're right that 3B1B really does manage to solve a problem in a high-quality way, and it's amazing how much of an effect that really has on people, especially considering
945.
▲
by
Twisol
8y ago
I've seen it called the Zoidberg operator, too -- but I can see the gopher now that you mention it!
946.
▲
by
Twisol
8y ago
I guess I can't really edit this comment anymore, but it looks like I was wrong. That example is actually a perfectly valid clause, since it's equivalent to "forall x. ~(x = Santa Claus)". The only reason no model satisf
947.
▲
by
Twisol
8y ago
So this is a bit of a tangent, but your Santa Claus example really clarified something I've been reading about recently. I'm reading Lloyd's "Foundations of Logic Programming", which essentially explains the fundame
948.
▲
by
Twisol
8y ago
You might be referring to Deep Impact [0], which wasn't even quite that long ago. [0]: https://en.wikipedia.org/wiki/Deep_Impact_(spacecraft)
949.
▲
by
Twisol
8y ago
What's wrong with `#!/usr/bin/env sh`?
950.
▲
by
Twisol
8y ago
> f(x) = 6 Fixed, for the sake of corresponding more exactly with the challenge. Not that it wasn't clear what you meant :)
951.
▲
by
Twisol
8y ago
A phrasing more to the point is that one expects the input to have some effect on the output . One usually obtains this by, colloquially speaking, performing actions on the input, since if you don't act upon the input in some way, y
952.
▲
by
Twisol
9y ago
While the plural of anecdote is not evidence, I may as well pitch mine in: I hit practically every parked car in the neighborhood trying to learn how to ride my bicycle. So the original point rings pretty true for me.
953.
▲
by
Twisol
9y ago
That looked more like a garden-variety typo than a bona fide eggcorn, so I gave it a pass ;) https://en.wikipedia.org/wiki/Eggcorn
954.
▲
by
Twisol
9y ago
It's clear what you meant, but for whatever it's worth, I think the word you wanted was "tempered", not "tampered".
955.
▲
by
Twisol
9y ago
It's even weirder than that, though, because with lazy evaluation you still have a complete description of the state involved; it's just a matter of unpacking it by executing the description. That's more analogous with a hidd
956.
▲
by
Twisol
9y ago
In the hidden variables case (yours), it was predetermined which marble was in the bag before you opened it. In the retrocausal case, the information about which marble is in the bag simply isn't part of reality until you've che
957.
▲
by
Twisol
9y ago
This is a really weird, but really neat concept. Where hidden variable theories assert that the state of a particle is fixed at any given point in time (but that quantum descriptions don't fully capture this state), retrocausality seem
958.
▲
by
Twisol
9y ago
For the downvoters, the author is correcting themselves after the edit window. It's clearly self-deprecating humor, not a personal attack.
959.
▲
by
Twisol
9y ago
They do, but it might be confusing because they list "Home" and "End" first, before the Cmd+Up/Down alternatives.
960.
▲
by
Twisol
9y ago
Are they not? I use Cmd+Up and Cmd+Down to scroll to the top and bottom of a page, respectively, on Firefox.
More ›