Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sirclueless
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
sirclueless
10y ago
Unless I'm misreading things, the reason they only lost 6 hours of data instead of 24 hours was a chance backup, but there was never an existential crisis here. Downtime happens to pretty much every service out there. In this case the
92.
▲
by
sirclueless
10y ago
Ahh yes, the advisory board with other fringe right-wingers such as Elon Musk, Satya Nadella, Larry Page, Eric Schmidt, Tim Cook, Jeff Bezos, and Sheryl Sandberg. How could he possibly be so two-faced as to throw his hat in with these margi
93.
▲
by
sirclueless
10y ago
It's actually a pretty rational response for someone who is only moderately aware of what is going on in their computer. If they are aware that malware and adware can cause unwanted changes on their computer, perhaps because they'
94.
▲
by
sirclueless
10y ago
The audio thing works because there is an obvious icon in the tab bar that shows the source of audio, so if developers use it in an annoying way the user can easily respond appropriately.
95.
▲
by
sirclueless
10y ago
I wonder if you could run a paid study with a proper control group. Perhaps have everyone pay to participate, administer the treatment to half of them, and at the end of the study refund some amount of money (all? all + interest?) to the on
96.
▲
by
sirclueless
10y ago
It's not necessarily as arbitrary as you're making it out. For businesses, the cost of failure is low and the potential upside is enormous. As a result, risk-seeking behavior makes sense, and people generally respect that. For hum
97.
▲
by
sirclueless
10y ago
I notice that this news piece is headlined "Alphabet's Waymo" thus avoiding mention of Google. I wonder whether this is good or bad for Waymo. I assume they're intentionally distancing themselves from Google and this is
98.
▲
by
sirclueless
10y ago
Affiliates work fine for E-commerce and performance advertisers that can track conversions. They work considerably less well for cost-per-click advertisers and brand advertisers because the advertisers can't trust the publishers either
99.
▲
by
sirclueless
10y ago
See steveklabnik's detailed answers elsewhere in this thread, but the short answer is that you can't write this data type in Rust.
100.
▲
by
sirclueless
10y ago
Thanks for all the responses, I'm learning a lot. This explains to me why iterators and other references to the internals of a data type have to take ownership of the whole data type, which is something I ran into several times during
101.
▲
by
sirclueless
10y ago
Interesting. How does Rust handle types that want to do interesting things when copied, like bookkeeping or updating internal pointers? Maybe you just can't, which would preclude some kinds of intrusive data structures, or owning non-c
102.
▲
by
sirclueless
10y ago
Well, for trivially copyable types[1] the reallocation can be a straight memcpy. For the rest, I don't know that having or not having a move constructor is the important distinction; it will be preferred over the copy constructor if it
103.
▲
by
sirclueless
10y ago
> Neither C nor C++ knows, at the language level, the size of an array, unless that size is fixed. Neither does Rust. > The subscript checking variants of C and C++ have to use "fat pointers" which carry along size informati
104.
▲
by
sirclueless
10y ago
The basic argument made by the "random chance" commenter was not that evolution is a random process, but that it favors organisms with complex and interdependent gene expression, because this increases the rate at which random mut
105.
▲
by
sirclueless
10y ago
> Nobody is suggesting AI will replace salespeople in the near future. They aren't? Because I see this happening all the time. Automated checkout lines, E-Trade and online brokerages, etc. Low-value transactions are handled more and
106.
▲
by
sirclueless
10y ago
This is true for the toy example. In the actual problem, the loop guards are quadratic equations or even higher order, and his first method generalizes better (and for small ranges is hardly slower).
107.
▲
by
sirclueless
10y ago
The assumption behind string.format and friends is that people who override __getattr__ and __getitem__ know what they're doing. Which is probably a reasonably safe tradeoff in order to allow attribute access. I'm not worried abou
108.
▲
by
sirclueless
10y ago
At the risk of introducing a contentious topic into polite discussion: there's an obvious parallel with abortion. It's seen as pragmatic, and maybe even kind, to terminate an entity's existence before it can achieve the intel
109.
▲
by
sirclueless
10y ago
You can define a pointer of type `int (*)[5]` and assign `(&arr)[1]` to it. That's fine, it's a pointer to the 5-element array just after the one we're sure is valid. Dereferencing the pointer is UB, but you can create th
110.
▲
by
sirclueless
10y ago
Well, I think like every other loosely federated communication system from the 90s (except email), the scene has moved on to a couple proprietary platforms providing a better user experience. lichess.org and chess.com have pretty good scene
111.
▲
by
sirclueless
10y ago
What to do with commits that touch both back-end and front-end code in step 2.? This amounts to manual run of git-filter-branch, which is a feature the author was unaware of. Without that tool this task is daunting. If the author is willing
112.
▲
by
sirclueless
10y ago
Speaking from experience, I've had to worry about what implementation of sort is being used in many languages, from Java to C++, even Go and Python. There are a lot of details to get right: how are elements compared? Is the sort stable
113.
▲
by
sirclueless
10y ago
If your project cares at all about security you should at least be using some form of query builder. The bare minimum is a system that binds parameters of a query to user data without manual escaping. From there the distinction between ORMs
114.
▲
by
sirclueless
10y ago
Re: your nitpick. It's true that TLS as implemented on the internet encrypts with a private key and decrypts with a public key, but this is not universal. Encrypted PGP communications, for example, work the opposite way. Encrypting wit
115.
▲
by
sirclueless
10y ago
If "Foo" represents anything at all complex or stateful (e.g. a database connection, a model of some data, an HTTP server, etc.), and you might want to extend it later, it's going to be messy. If you assume there is only ever
116.
▲
by
sirclueless
10y ago
Accepting interfaces is an implicit commitment to support external implementations of the interface. You can't add a method to an interface without breaking clients who do this. This makes interfaces more fragile than structs. A concre
117.
▲
by
sirclueless
10y ago
So, to follow the diplomatic approach here: Client: "Encrypt our data using the md5 cipher." Consultant: "I will investigate the feasibility of this." ... two days pass ... Consultant: "I have considered your propos
118.
▲
by
sirclueless
10y ago
> the text model of Python 2 is a giant mess and makes it very hard to correctly deal with non-ascii text for any non-trivial software There are counter-arguments to this. Armin Ronacher, author of (among other software) the excellent Fl
119.
▲
by
sirclueless
10y ago
If you can do it convincingly, you can probably play games involving some skill if you adopt a consistent and beatable strategy. Like Uno by playing the oldest legal card in your hand and choosing a color you hold randomly for wilds, or Gue
120.
▲
by
sirclueless
10y ago
No, that would also qualify as "AI algorithm wizardry" as dheera puts it. Instead it's just a hardware sensor that measures the time at which light arrives at each pixel. Knowing the speed of light you can calculate the depth
More ›