Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cakoose
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
cakoose
10y ago
Is the wire format roughly isomorphic to the structure above? Or does the Scala library convert this code-like structure into something simpler/flatter? (BTW, would be nice if I could read your API docs without signing up for an accou
182.
▲
by
cakoose
10y ago
Just to be fair, this is an instance of pro-actively communicating good(ish) news. Not everyone does this, so of course it's good to encourage more of it, but it's much easier than pro-actively communicating bad news.
183.
▲
by
cakoose
10y ago
How would you perform the classic "transfer money from one account to another" operation? Would you create a single operation that reads one record, checks that it's enough, then adds the amount to another record? Or maybe yo
184.
▲
by
cakoose
10y ago
Oh, interesting. Is that the only difference? How often people actually do a hard refresh? I would guess most people don't know about that key combination.
185.
▲
by
cakoose
10y ago
> As an aside, if ESR couldn't get Rust's ownership model, I wonder how long it took him to internalize how not to write memory bugs in C? Rust's type system, like any type system, is limited. It enforces a certain style
186.
▲
by
cakoose
10y ago
I'm not against remote work, but one thing I notice is that it's more efficient to hash out ideas with someone in person. Why do you categorically say that something is broken if it requires personal presence?
187.
▲
by
cakoose
10y ago
Provisioning for the worst possible case is sometimes necessary (e.g. hard real-time use cases), but can also be very expensive. Since HTTP connections are typically kept alive between requests, it's very common for them to be idle. I
188.
▲
by
cakoose
10y ago
And the analogy is a bad one, too. I think it's trying to make the task sound more difficult than it is. If we stick with the airplane analogy, maybe this is better: it's like incrementally converting an older model jet engine to
189.
▲
by
cakoose
10y ago
More importantly, the comparison is useless. The odds of running into issues with SHA-1 collisions in Git is a very different question from just the odds of two random SHA-1 hashes colliding.
190.
▲
by
cakoose
10y ago
> I'll never join a company that uses TypeScript unless I get to see the code base first. That seems reasonable. But wouldn't the same thing apply to Javascript? Terrible Javascript code bases are very common.
191.
▲
by
cakoose
10y ago
Sometimes you try and make one feature work a certain way and that decision has unintended consequences. Most languages have surprises like this. In this case, it's an implicit conversion from "nil" to the "nil value&qu
192.
▲
by
cakoose
10y ago
> We do not place SSH certificates on laptops because it is difficult to control everything that individual employees run on them. Even though they are centrally managed, laptops are more prone to vulnerabilities than the bastion server
193.
▲
by
cakoose
10y ago
A primary feature of OTR-style communication protocols is deniable authentication. If Alice and Bob communicate via OTR, Alice can't can prove (cryptographically) to anyone else that the messages she received were actually from Bob. W
194.
▲
by
cakoose
10y ago
The fact that the flag is global could actually slow down adoption of the new type system. Let's say I want to use the new type system, but some library I depend on hasn't been updated. If I enable the new type system, I'll
195.
▲
by
cakoose
10y ago
Both Swagger and Goa can generate API client code from their respective spec languages. Goa additionally has the ability to generate a Swagger spec from a Goa spec. This makes me wonder why Goa just doesn't rely on the Swagger code ge
196.
▲
by
cakoose
10y ago
This comment was marked 'dead', but I think it was a useful question (though maybe a little aggressive in its wording): > So what's the point ? Linux is a niche market. Mac & Windows will be the vast majority of your u
197.
▲
by
cakoose
10y ago
(I don't know much about networking.) What are the advantages of doing UDP instead of IP? It seems like, all else being equal, doing IP has the advantage of working with UDP and TCP out of the box.
198.
▲
by
cakoose
10y ago
Right. But just to be clear, C++ was an implementation detail. You could treat the entire toolchain as a black box that read in PHP code and produced a single executable binary.
199.
▲
by
cakoose
10y ago
I think the fact that the original is kept around (and asked a question) might be complicating things. For example, what if you were taken apart, your molecules were sent to Mars, and then you were reassembled exactly as they were? Would t
200.
▲
by
cakoose
10y ago
There are two things here -- how fast can a language be in theory vs how fast a particular implementation is. Interpreters are typically slower (though simple to write and portable). The standard Python/Ruby/PHP implementations a
201.
▲
by
cakoose
10y ago
I think "responsive" is a useful modifier (even though most CSS frameworks nowadays are responsive). "Light" is definitely relative but at least they list the exact size pretty early on. "Modern", however, is s
202.
▲
by
cakoose
10y ago
Two things: 1. Why not just add client-side certificates to an OAuth-based API? 2. Client certificates do not prevent an attacker from pretending to the be server. Let's say your API server followed the standard OAuth 2.0 protocol exce
203.
▲
by
cakoose
10y ago
oAuth 1.0 supports both PLAINTEXT and HMAC-based signature schemes. I assume the article is assuming HMAC-based signatures (the PLAINTEXT option seems to be less well-known). With an HMAC-based signature, the token will not be leaked. But
204.
▲
by
cakoose
11y ago
> For example, in Java you can't write a generic method that instantiates an object based on the type of the generic. The workaround is typically to pass in the Class type as an additional parameter to the method, which in theory sh
205.
▲
by
cakoose
11y ago
"Given [a well-designed/balanced system], the processing power of the application cluster is arguably the most important factor." That doesn't follow. You can have a well-designed system where the PHP code only contribu
206.
▲
by
cakoose
11y ago
What's if the device's local storage experiences hardware failure? 1. Can you configure it to make backups? 2. Can you configure it to replace data with low latency? 3. If you have multiple, can they work together to increase avai
207.
▲
by
cakoose
11y ago
Maybe it was a typo and they meant "minutes" instead of "seconds"? Later in the article they say: > Downloading a typical app with 20 MB APK can take more than 30 minutes on a 2G network Then again overstating accomp
208.
▲
by
cakoose
11y ago
A lot of the generics/covariance complaints seem to be rooted in a misunderstanding of covariance. class Fruit {} class Peach: Fruit {} protocol FruitHolder { var fruits: [Fruit] { get } } class PeachBasket: FruitHo
209.
▲
by
cakoose
11y ago
I don't think "not getting a server" is enough justification. With Gmail I don't get a server, but nobody calls it "serverless email". A server is still involved. It seems like an ill-fitting adjective even i
210.
▲
by
cakoose
11y ago
I have no knowledge of what happened at Parse but based on other experiences I've had, a "sudden" shutdown could be a sign of things being done correctly. Too often, products are in an extended state of limbo. Internally, th
More ›