Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pegasuscollins
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Here Are the Signs the Bitcoin Bubble Is About to Burst
(fortune.com)
4 points
by
pegasuscollins
9y ago
|
1 comments
2.
▲
by
pegasuscollins
9y ago
> In Rust, there is exactly one way to create an instance of a struct: you provide a value for each of its fields. As a user of both rust and and C++, I certainly wouldn't consider the the lack of default constructors in rust to be
3.
▲
by
pegasuscollins
9y ago
Have you actually checked the link? This seems to be a reasonable advanced clone of photoshop in JS; all the basic stuff that you would expect to be there seems to work. Pretty impressive stuff considering its one guy.
4.
▲
by
pegasuscollins
9y ago
Have you seen the relevant reference in RFC3629, page 2? It's explicitly listed there as a feature: "The byte-value lexicographic sorting order of UTF-8 strings is the same as if ordered by character numbers" Agree that speci
5.
▲
by
pegasuscollins
9y ago
> Protobuffers can handle that with a lot less muss and fuss than JSON can. Are you speaking from personal experience? FWIW it doesn't match mine.
6.
▲
by
pegasuscollins
9y ago
What do you mean by ordering? This is easy to miss in the linked "spec" (I did too at first) but there is a sentence: "Object members must be sorted by ascending lexicographic order of their keys."
7.
▲
by
pegasuscollins
9y ago
You could either stipulate (as you suggested) to always use the smallest width that still fits a number and then prefix with a length byte but that would be wasteful. Ideally something like LEB128 would be used. At any rate, it's not a
8.
▲
by
pegasuscollins
9y ago
> The only problem that I can see with this is that Son wants to ensure deterministic encoding, but in my example, 0 could be encoded as an integer of any size or signedness. To be pedantic: Not really. Assuming your example uses twos co
9.
▲
by
pegasuscollins
9y ago
> Yeah right, because there is only one lexicographic order in the world. The specification tells you all strings (keys) must be UTF8. There is only one lexicographic ordering of UTF8 strings (RFC3629, page 2). This should probably be
10.
▲
by
pegasuscollins
9y ago
Pretty much every binary format will encode integers using a fixed width or varlen scheme in "base 2". This generally is done for two major reasons: First of all, such an encoding is significantly easier and cheaper to parse tha
11.
▲
by
pegasuscollins
9y ago
When comparing the two, keep in mind that JSON is a self-descriptive format while protobuf is not.
12.
▲
by
pegasuscollins
9y ago
Less taxes in the UK means higher take home from the 55k than you would have in germany. And you have to factor in that the 55 figure is probably from a time where GBP to EUR was still 1.4:1. Consider that 55k GBP might have been ~4.5k EUR&
13.
▲
One of Asia's largest banks says Bitcoin is 'a ponzi scheme'
(cnbc.com)
1 points
by
pegasuscollins
9y ago
|
0 comments
14.
▲
by
pegasuscollins
9y ago
So what happens when Karpeles needs to sell all of those bitcoins to make the creditors whole in yen? And also: when will this happen?