Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zeeboo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
zeeboo
11y ago
My criticism is that the design limits the places where they are valid. I'm not trying to use a hammer where a screwdriver is required, I'm saying that if the hammer was designed differently, we'd be able to use it in more si
92.
▲
by
zeeboo
11y ago
It's great that panics happen when you violate those contracts. That is a deliberate design decision and I agree with it. However, the contracts that they enforce cause real problems evidenced by the article. Small additions might make
93.
▲
by
zeeboo
11y ago
The api definitely is badly implemented and makes them hard to use. That's the point of the post. There are design decisions around channels (sends panicing, close panicing, nil channels blocking) that make them hard to understand, fol
94.
▲
by
zeeboo
11y ago
That's not a T piece. It has 5 blocks. The subtlety is about a board like .XXXXXXXXX ..XXXXXXXX .XXXXXXXXX and if you can put a T piece inside of the gap on the left.
95.
▲
by
zeeboo
11y ago
Nobody has a problem with encode/decode when talking about, say, json. You have some semantic object that you want to encode to some bytes representation, and some bytes representation that you want to decode into some semantic object.
96.
▲
by
zeeboo
11y ago
I don't have an article but my intuition is that it reduces variance. It smears the probability of getting "unlucky" with the hashes across all of the buckets.
97.
▲
by
zeeboo
11y ago
Neither did the people writing it, or merging it. Security isn't an obvious property of code or there would be no security bugs. You have to rely on heuristics, and in this case the heuristics were right.
98.
▲
by
zeeboo
11y ago
In math a field is a structure with enough properties to be able to do polyoninals, meaning addition and multiplication. If you pick a field appropriately, you end up with some properties that guarantee that this interpolation trick works.
99.
▲
by
zeeboo
12y ago
Then it doesn't do it in constant space. Constant space is the property that makes it not a true inverse bloom filter, and instead is just a cache with an interesting hashed based eviction method. That said, this is just a silly defini
100.
▲
by
zeeboo
12y ago
Update the hash when the user logs in because you have the password. You can tell if it's been applied by having another column, or prepending/suffixing the output with something that scrypt can't output.
101.
▲
by
zeeboo
12y ago
But the super Turing machines busy beaver numbers vastly outgrow your iterated busy beaver very quickly. It doesn't take that many states to write a program that can do an iterated function application, and to a super Turing machine, i
102.
▲
by
zeeboo
12y ago
Actually, that Go bug is the scanning code getting confused about an incorrectly stored stack pointer value during a very small race between returning from a FFI call into Go and generating a traceback for scanning. I'm not familiar en
103.
▲
by
zeeboo
12y ago
I made this Go one that might be cheating because instead of the ("al") call returning a string, you get a value that implements the String method. Works with fmt.Println :) http://play.golang.org/p/zrp2sO6ZLU
104.
▲
by
zeeboo
12y ago
It appears to apply the interest rate monthly. I'd love to have a 5.75% interest every month. Here's the calculation. It's a little high because we should be getting 1/12th of the 50k per month and compounding, but I
105.
▲
by
zeeboo
13y ago
Since the channels are unbuffered, theres no way to read from the error channel until the loop has accepted your request for the transaction. Also, since it won't accept another transaction request until it has sent an error (it always
106.
▲
by
zeeboo
13y ago
Space Monkey said they would give refunds with shipment at their cost to anyone who requests them.
107.
▲
by
zeeboo
13y ago
Of course it's not unreasonable. Space Monkey said many times that they are unhappy about the clarity of the issue and thus offered a full refund with shipment at their cost to anyone who wanted it.
108.
▲
by
zeeboo
13y ago
Under the lease model ($10/mo) or under the 1yr warranty for the ownership model, yes.
109.
▲
by
zeeboo
13y ago
But they offered to give the money back and he didn't take it.
110.
▲
by
zeeboo
13y ago
When you lease the device if the hardware fails then Space Monkey replaces it. If you own the device and it fails outside of the 1yr warranty, then you have to replace it. The difference is about recouping hardware costs over the lifetime o
111.
▲
by
zeeboo
13y ago
You'll either be paying $10/month or $49/year. Those are the only two subscription models the company has ever offered for a 1TB device.
112.
▲
by
zeeboo
13y ago
His page numbers are zero indexed. Cute. I would have loved to take his proposal for an introduction to computer science course.
113.
▲
by
zeeboo
13y ago
Note these tests were run on Python 2.2 which makes the results old enough to almost certainly be invalid. Last time I checked, straight string concatenation was faster than everything else for the types of inputs I was dealing with.
114.
▲
by
zeeboo
13y ago
You can have multiple packages in one repo. All of our code consisting of dozens of packages is in one repo.
115.
▲
by
zeeboo
13y ago
Less than 5% of your coworkers understand decorators? I don't want to sound snooty but this is a pretty trivial application of higher order functions.
116.
▲
by
zeeboo
13y ago
The problem is that even those are boring. I've used Go for an extended period of time on a large project and there's nothing to report. It works just like what everyone else already says.
117.
▲
by
zeeboo
14y ago
Everything in Go is passed by value, even the "reference types". Those types are called reference types because they hold a reference to some value in memory, exactly like a pointer. If they were passed by reference, then we would expect th
118.
▲
by
zeeboo
14y ago
Nope, looks like you don't understand pointers. You're still modifying the passed-by-value pointer to a pointer, and not the thing that it points to.
119.
▲
by
zeeboo
14y ago
It's not my fault the definition of average is very narrow.
120.
▲
by
zeeboo
14y ago
> A tautology if I ever heard one. Consider this set of programmer "skill levels" where most (80%!) are above average: {10, 10, 10, 10, 1}
More ›