Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ben509
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
ben509
6y ago
Everyone is stuck on the 3.2 BSD version of bash. T_T
182.
▲
by
ben509
6y ago
Shiterator requires your system is able to consume fibers, though, or it'll dump all your kernels, which is not a pretty sight.
183.
▲
by
ben509
6y ago
I think if warnings can't do the job, you'd have to go the route of writing a test that greps the codebase for usages. Maybe a custom linter could also do the trick. The ability to grandfather in existing violations, though, is so
184.
▲
by
ben509
6y ago
It's really nuts trying to implement something like SAML in XML. The standard is a security minefield.
185.
▲
by
ben509
6y ago
If it's too cold for you, it's too cold for your smart pointers. Bring your smart pointers inside during the winter months.
186.
▲
by
ben509
6y ago
I didn't. The pictures show one meal, and then the plastic consumed over a week. They could have shown the amount of plastic likely to be in a single meal, but it wouldn't have been as dramatic. And I know that they explain it in
187.
▲
by
ben509
6y ago
If you wrote a browser client in Javascript / Typescript, then it makes sense to write a backend in it as well since it's easy to share code and data between them. Now you can also write CLI tools that are trivial to deploy and ca
188.
▲
by
ben509
6y ago
I think a great use case for this is for working with files locally. I had to change the script tag to use a relative link, but then it opens up fine as a local file. Now I can share those files via DropBox or the like, so it's very en
189.
▲
by
ben509
6y ago
I agree it is well-written overall and should have been clearer about that; in my defense, my conclusion was simply that an editor would cut the intro. The intro is both highly visible, and, because of how writing and thinking work, it'
190.
▲
by
ben509
6y ago
Fair enough. If it's bugged you enough to think through what you're looking for in a README, that'd be a good post for HN.
191.
▲
by
ben509
6y ago
You don't need to hold the transaction open the entire time, you just need the inventory count to be correct. You track the inventory and reservations. Taking a reservation checks that inventory is available. With row-level locking, on
192.
▲
by
ben509
6y ago
I wasn't clear what's changing that is so problematic, so to summarize this post[1] and various comments: CentOS Stream will track ahead of RHEL and thus will be more like a beta channel, losing the stability guarantees that Cen
193.
▲
by
ben509
6y ago
The ACID system can guarantee nobody is billed for an item that you can't deliver. If you want a more user-friendly guarantee, you can reserve it when it's added to the cart.
194.
▲
by
ben509
6y ago
Apparently C# 7 can match discriminated unions quite well[1], with the caveats being: 1. you need a dummy type[2] for empty parts of the union. 2. it still can't enforce exhaustive matching. [1]: https://stu.dev/pattern
195.
▲
by
ben509
6y ago
> The secret of democracy is that, even when there are no good options to choose from, people agreed on the solution. No, a plurality of people agreed on the solution, and everyone else disagreed with it but was stuck with it. > There
196.
▲
by
ben509
6y ago
Generally so you don't have to update the README every time you update the source.
197.
▲
by
ben509
6y ago
Very cool. I've seen some libraries around for continued fractions, but this is the only one that's reasonably complete.
198.
▲
by
ben509
6y ago
If you ran a webserver hosting Great Cat Pictures on some Macs, for instance, your customers might pay a subscription fee to access your site, meaning they are paying for you to do processing and storage on their behalf. So that's an e
199.
▲
by
ben509
6y ago
All modern software applications have an undo option. Windows Explorer has had a recycle bin since the '90s, the MacOS Finder has had a trash can since the '80s, and various Unix equivalents have the same. Those are interesting be
200.
▲
by
ben509
6y ago
Yes, to "give a shit" or a "damn" means to care marginally more than not caring at all. He's using it in an ironic[1] sense to mean that they really do care. This is similar to BBEdit's tagline[2], "it doe
201.
▲
by
ben509
6y ago
> The support for datetimes is irrelevant if the protocol spec specifies how to serialize a date. Consider JSON and how numbers are handled right now. Per the spec, it's an arbitrarily long decimal, and some libraries do deseriali
202.
▲
by
ben509
6y ago
And I think nobody does that in a protocol because you're adding extra complexity to get you little more than transmitting a number.
203.
▲
by
ben509
6y ago
He also brings up 2020 because OMG, it's worst year EVAR. It's not a tech bubble as much as it's a journo bubble. People are reading before they're writing, so he's seeing trendy topics like 2020 and the virus. He f
204.
▲
by
ben509
6y ago
Because people think they want "time since epoch" but they really want ISO8601 because they'd like it to be readable, and oh, btw, durations would be nice, too. That spec is quite large, and everyone wants different parts of
205.
▲
by
ben509
6y ago
Yeah, the cascading failure of all the other services is a deep architectural issue. Having lots of services that do one thing and one thing well makes a lot of sense. Breaking them out into separate components brings a level of visibility
206.
▲
by
ben509
6y ago
I fully admit, with no reservations at all, that you're getting tired of that bullshit.
207.
▲
by
ben509
6y ago
That's true of virtually all criminal laws, though. If you're beat up and your assailant is charged with assault, you've already been beat up.
208.
▲
by
ben509
6y ago
> What has been puzzling me ever since is that these OCSP checks have been well-known for a couple of years, and only now have attracted attention. It's not much of a puzzle. Everyone's Mac essentially froze simultaneously, and
209.
▲
by
ben509
6y ago
> This statement makes me think... how come the TS compiler is not using something like a hash/map (object) of union members to basically ignore redundancy? The trouble is the operation isn't "is X a member of Y", rat
210.
▲
by
ben509
6y ago
Managed to sleep once on a flight. I was fairly drunk and exhausted boarding, put some Mack's earplugs in and passed out. That was magical.
More ›