Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamtj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
adamtj
11y ago
What if I use a library that forks or spawns threads? It would know nothing about these counters and wouldn't increment them, so I'd never know. That's the neat thing about the original article: you can know if a fork happen
32.
▲
by
adamtj
11y ago
You can find your epsilons and deltas in the definition of an open ball. They are just two different ways of writing the same idea. For example, in Definition 2.1, the 'h' in the open ball F is your epsilon and the 'h'
33.
▲
by
adamtj
11y ago
> 3. All visible edits should map onto an algebraically closed and complete set of visible content. And suddenly I have a common-sense understanding of what the mathematical terms "closed" and "complete" mean. I can
34.
▲
by
adamtj
11y ago
Doing anything after committing misses the point. If you can do that, you don't need postgres. For example, suppose you mark an account closed, commit, and then enqueue an event to issue a refund from another system. It's possib
35.
▲
by
adamtj
11y ago
Unlogged tables aren't durable and might lose events even after a successful commit. If you're willing to make that trade off, then you don't need Postgres in the first place.
36.
▲
by
adamtj
11y ago
This mapping makes my life much nicer: nnoremap Q @q It turns 'Q' into a sort of enhanced '.' command that can repeat a sequence of multiple commands. To use it, first start recording a macro to the 'q'
37.
▲
by
adamtj
11y ago
The last paragraph about eavesdropping is interesting. The agent doesn't actually give out your key, so an attacker can't use your key to decrypt any traffic. Instead, the attacker gets at the decrypted data as it passes between
38.
▲
by
adamtj
11y ago
I'm sure he's right, but I'm not so sure he actually proved it. The real question is what happens when you deference a null pointer with '->'. He doesn't show us what the spec says on that, meaning there&#
39.
▲
by
adamtj
11y ago
Music consumers won't catch up to the decay that mp3's cause, _by definition_. Consumers only listen to music. The most sensitive, highly trained ears listening to the absolute best equipment in a perfect environment cannot reli
40.
▲
by
adamtj
11y ago
Don't forget that the early encoders were pretty bad. It seems conceivable that a old encoders might have produced 320 kbit mp3s that were distinguishable from CDs in blind tests. Perhaps tempodox gave up on mp3s before they got good
41.
▲
by
adamtj
12y ago
Another way to look at it: A matrix is a linear transformation, and multiplying a vector by a matrix is how you apply the transformation. But linear transformations are really just changes of basis. How do you change your basis? You find
42.
▲
by
adamtj
12y ago
This looks vaguely like xpm, but monochrome and vectorized. xpm is an image format that is also valid C code, so you can #include "image.xpm" in your C source code. https://en.wikipedia.org/wiki/X_PixMap#Comp
43.
▲
by
adamtj
12y ago
This ugly hack is not useful in general and only looks interesting here because the original example query is in bad taste. Simplifying it removes the tedium motivating the use of window functions. For example, this is equivalent to the or
44.
▲
by
adamtj
12y ago
How about this: "Scientists couldn't see what was written on the scrolls until they turned on some lights." The connotation behind "photon beams" more accurately conveys the accomplishment than the roughly synonymo
45.
▲
by
adamtj
12y ago
I love SSH, but I don't want to actually use SSH for this. That's not the important part. All I want is key-based authentication, and that doesn't need SSH. I want to be able to plug a security token into a USB port and be
46.
▲
by
adamtj
12y ago
I disagree. When forecasters know with certainty that there will be 14 inches, that's what they should say. It's definitely more accurate. However, when they only know that it might go either way, they should say "2-16 inc
47.
▲
by
adamtj
12y ago
It sounds like maybe you don't understand the concepts. Of course you're right that most people don't need to know exactly how encryption algorithms work. But, everybody needs to know what they do -- and what they don'
48.
▲
by
adamtj
12y ago
I disagree. Leap seconds are no more synthetic than timezones. As I'll explain, they are used for very similar purposes. Recognizing that means we have only one problem, not two. We can solve that one problem with existing code and
49.
▲
by
adamtj
12y ago
> Now, instead, imagine things being only a few seconds off, instead of entire hours. No, and yes, and anyway it doesn't matter. No, that wouldn't be the case. If you mess up the local->global conversion, you'd still b
50.
▲
by
adamtj
12y ago
Why don't we just switch from UTC to TAI and put the leap seconds in our localtime offsets? It makes all the problems go away, or else reduces them to problems we've already solved for handling daylight saving time. If you think
51.
▲
by
adamtj
12y ago
This is very interesting, but not as a CPU saving optimization. I'm sure it does that very well, but that's not why it's Important. Rather, this seems to me like the next step toward the inevitable future of PostgreSQL as a
52.
▲
by
adamtj
12y ago
First they came for the dumb comedy movies, and I did not speak out...
53.
▲
by
adamtj
12y ago
It's only uncomplicated until it's not. The solution to avoiding unnecessary surgery is not to physically locate farther away from all surgery. Midwives can do their work in a hospital room down the hall from surgical facilitie
54.
▲
by
adamtj
12y ago
What about ARP spoofing? Have all wireless routers ever built somehow gotten this right? It's my understanding that unless the wireless access point is sufficiently smart, any device on the same network can claim to be the router and
55.
▲
by
adamtj
12y ago
Reference counted copy-on-write strings are little landmines just waiting to blow your leg off should you venture into multi-threaded territory. If you use copies of such a string in multiple different threads, you may find that simply crea
56.
▲
by
adamtj
12y ago
LATERAL allows a subquery or function to refer to the records that it's being joined to when computing results. WITH RECURSIVE allows a query to refer its own results when computing its results. That may sound mind-bending, but it
57.
▲
by
adamtj
12y ago
I think cbsmith's point is that a a good language makes it so easy to correctly unwind the stack that it's almost harder to not do it right. If we could go back in time and do it over using exceptions and a better language, this
58.
▲
by
adamtj
12y ago
edit: Well, aren't I a fool. I just read the article more carefully and realized that a string isn't a string when it's not a string -- that is, when it's not well-formed. Of course weird things happen given illegal in
59.
▲
by
adamtj
12y ago
How is this not really bad? Suppose I somehow get control of a machine on the same network as a server that doesn't use Let's Encrypt. I can probably ARP spoof it pretty easily. If it has a signed certificate from a different CA
60.
▲
by
adamtj
12y ago
Exceptions are not a silver bullet. One can't simply turn an assert into an exception and expect things to work. That's a great way to add new and tricky bugs unrelated to the original issue. If an exception crosses a stack fram
More ›