Viewing profile — pegasuscollins
pegasuscollins
HN member- Joined
- Tue, Nov 14, 2017, 6:08 PM UTC
- HN karma
- 16
- Public activity
- 14 items
- HN profile
- View on Hacker News ↗
About pegasuscollins
No profile information was provided.
Recent public activity
- story
-
comment
Comment #16275159
> 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…
-
comment
Comment #15926158
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 imp…
-
comment
Comment #15892176
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 o…
-
comment
Comment #15891787
> 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.
-
comment
Comment #15891773
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 orde…
-
comment
Comment #15891653
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 somet…
-
comment
Comment #15891604
> 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…
-
comment
Comment #15891545
> 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 U…
-
comment
Comment #15891372
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 …
-
comment
Comment #15891350
When comparing the two, keep in mind that JSON is a self-descriptive format while protobuf is not.
-
comment
Comment #15768642
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 s…
- story
-
comment
Comment #15697553
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?