Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cormacrelf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
cormacrelf
4y ago
I think you have failed spectacularly at understanding fascism. It was not only racial purity that they went for. That wasn’t even a thing in Italian fascism, it simply did conformity and allegiance to the state and took that to an extreme.
92.
▲
by
cormacrelf
4y ago
I’m not sure it’s a smiley face moment for all of us, more just another day on the internet, but thinking about this on your own is good. One more point to consider is that you might have a mistaken impression of how important idea (2) is i
93.
▲
by
cormacrelf
4y ago
You are thinking very, very shallowly about this. Diversity has become a goal in many organisations because primarily (1) too much cohesion entails out-groups and that often means racism or other illegal and immoral attitudes and practices
94.
▲
by
cormacrelf
4y ago
Eh, that can be good still. Terminator 1 has the shitty stop motion fully metal terminator at the end, but if you consider the impact that the poor technology had on the movie as a whole, they were essentially forced to leave it to the end
95.
▲
by
cormacrelf
4y ago
Basic answer is no because Mr Van Gogh is long dead and any copyright he ever had is now expired. But let’s say he only died a few weeks ago. Otherwise, it depends what the sunflowers you painted look like. You’ve seen the work that it is a
96.
▲
by
cormacrelf
4y ago
For your a mere 10x the price of a container ship, you can get a container across the Atlantic in 3 days instead of a week. At the level of demand for fast transatlantic shipping we see at the moment, I think you could do better than the ai
97.
▲
by
cormacrelf
4y ago
See also Löb’s theorem: https://en.wikipedia.org/wiki/L%C3%B6b%27s_theorem Compare Löb’s theorem with the signature of `loeb` with some renaming to make them match up: > in any formal system F, for any formula P,
98.
▲
by
cormacrelf
4y ago
If I’m reading it right, reabstraction is about allowing you to make a protocol implementation more generic in future. If it’s implemented for String today, then if you change it to be implemented for all T in future then the dylib is still
99.
▲
by
cormacrelf
4y ago
IIRC there’s a nice abstraction in .NET Core for caching, which has a swappable backend that means you can upgrade from MemoryCache to Redis if you ever need it. If only all software was this good. One of the least-leaky abstractions of all
100.
▲
by
cormacrelf
4y ago
It’s right there in the name TDD. You write a test and then you change the code to make the test pass. There are no secrets, that’s all there is to it. If you can do that you can do TDD. That’s why everyone else is putting it on their CV an
101.
▲
by
cormacrelf
4y ago
If anyone is looking at this stuff and thinking it’s intimidating then think again: Redis is mostly a lot of fuss around a hash map. There are cool features sure but the idea is mainly “what if a hash map were accessible from two or more se
102.
▲
by
cormacrelf
4y ago
kWh does not measure max power, it measures capacity. A kWh is a constant factor multiple of Joules. I’d think you could absolutely make the capacity larger (ie store more energy) by just making the tanks larger. The flow rate is the thing
103.
▲
by
cormacrelf
4y ago
I’m glad to hear it. I’ll be watching out for updates, it’s very interesting stuff!
104.
▲
by
cormacrelf
4y ago
As far as you can see from the outside there is zero correlation in either internal direction/editorial control or readership
105.
▲
by
cormacrelf
4y ago
It does have connection pooling for clients: https://blog.cloudflare.com/whats-inside-net-http-socket-lat... . The pools naturally clear themselves though, because they observe the keep-alive timeouts. As long as your server
106.
▲
by
cormacrelf
4y ago
If you make a one shot request to an HTTP server, and the system creates a connection pool for that hostname:port, and you never need it ever again, should the connection pool survive until the program terminates? What if you make hundreds
107.
▲
by
cormacrelf
4y ago
They do. At least Apple implements WebAuthn for Touch ID and Face ID on both its mobile and laptop platforms, using Safari.
108.
▲
by
cormacrelf
4y ago
You can have a PhantomData without a bar field. You could have baz and qux fields as well. The compiler does not know the lifetime in the phantom data is connected to any other field whatsoever. It doesn’t look through the other fields sear
109.
▲
by
cormacrelf
4y ago
Not quite, it doesn’t tell the compiler much about how Foo relates to its bar field unless you also constrain the public API for creating a Foo. If Foo is constructed out of a ‘new’ method with this signature: impl<'a, T> F
110.
▲
by
cormacrelf
4y ago
Have you heard about let-else? It’s a recent syntax addition. That example translates as let Some(min_id) = foo() else { return }; // continue coding at same indent
111.
▲
by
cormacrelf
4y ago
“Fed up with the borrow checker? Try writing your own immutable linked list.” Yeah, that’ll help!
112.
▲
by
cormacrelf
4y ago
Quoting the docs: it’s “WebAuthn - without reading the w3c spec”. So apparently yes. It does seem very silly that this has to be a third party service instead of open source code you just plug in to Rails or whatever. I guess they had to fi
113.
▲
by
cormacrelf
4y ago
New programmers can have their dark background when they’ve coded for long enough hours at night with a light background. It’s earned.
114.
▲
by
cormacrelf
4y ago
> If you use only a very small amount of an arena chunk and free it, it goes back on a reuse list as an optimization. Accessing that chunk's memory, despite the fact that the arena was freed, is entirely memory safe: nothing else w
115.
▲
by
cormacrelf
4y ago
> and goes on to explain that each arena has its own unique/distinct address space That does not seem to be how it is implemented now. Try the example use-after-free on https://uptrace.dev/blog/posts/go-mem
116.
▲
by
cormacrelf
4y ago
Of course. The reason expect-testing is good is that you need significantly less vigilance writing/maintaining the tests than when you do them with assertions for everything you care about, in exchange for slightly more vigilance requi
117.
▲
by
cormacrelf
4y ago
Why do people use C11’s atomic operations without a specified memory order? The qsbr.c doesn’t appear to explain why it has chosen the default order (sequentially consistent) for all of its operations. I don’t see any arguments about the re
118.
▲
by
cormacrelf
4y ago
> It requires you to write tests and also blindly accept that your program is correct. No. You can say no. Just don’t accept it. You’re a human and it asks. Even if you do accept it you can modify it because you have eyes and a keyboard
119.
▲
by
cormacrelf
4y ago
Any programmer dumb enough to just blindly accept that their program is correct is also a dumb enough programmer not to have begun writing a test in the first place. If this gets the friction of writing a test at all so close to zero that t
120.
▲
by
cormacrelf
4y ago
Close, but I didn’t say a device has to be either patented or not, only an idea. Again, there is absolutely no such thing as a “patented trade secret”. Just call it an idea.
More ›