Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Zamicol
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
Zamicol
2y ago
WebAuthn and passkeys are a disaster. Much of the specs were created behind closed doors and never done in a way where we could have had outside input. They're completely corporate driven and designed to control users not empower them.
32.
▲
by
Zamicol
2y ago
Interesting!
33.
▲
by
Zamicol
2y ago
Or maybe extend this with types for the timestamp, `@ms:1623132000` or `@unix:1623132000`, so in a value: `{"now":@unix:1623132000}` Mongo types the field name, `{"$date":1623132000}`, if I'm not mistaken. Rust sty
34.
▲
by
Zamicol
2y ago
That's a reasonable approach, however I would argue it's incomplete without acknowledging the historical context. How could the specification explicitly acknowledge this as technical debt from the original design rather than lett
35.
▲
by
Zamicol
2y ago
Software developers very much so care about best practices. All that needed to be said was, "Using comment programmatically is bad practice. Don't do it."
36.
▲
by
Zamicol
2y ago
Hijacking for a random concern: I love JSON, but one of the technical problems we've ran into with JSON is that the spec forgot about all special characters. I actually noticed it when reading Douglas Crockford's 2018 book, "
37.
▲
by
Zamicol
2y ago
We use JSON5 for two reasons: 1. Comments 2. Trailing commas We don't use any other JSON5 features, which are primarily just that numbers may be encoded in hexadecimal and field names may have quotes elided. We typically encode values
38.
▲
by
Zamicol
2y ago
Why is it not? My understanding is that it is a valid ES5 and forward object.
39.
▲
by
Zamicol
2y ago
JSON5 is from ECMAScript 5.1, which is called ES5. As an (unfortunate) JavaScript developer, it was clear to me the intent was to "update" JSON with ES5 features, and not say ES4 or ES6. Why ES5? ES5 is when trailing commas wer
40.
▲
by
Zamicol
2y ago
Yes, that is where the name comes from.
41.
▲
by
Zamicol
2y ago
I'm a huge fan. We use it for all our configs.
42.
▲
by
Zamicol
2y ago
What's wrong with Unix? Or is the complaint that there's no data type for time stamps specifically? I agree it would be nice to have something with more data types. Binary b64/hex would be nice.
43.
▲
by
Zamicol
2y ago
The title is misleading. This is not true in more complex animals like humans. https://x.com/cremieuxrecueil/status/1844282914521096501
44.
▲
by
Zamicol
2y ago
Cosmic inflation is a large difficulty for the big bang as there is no mechanics explaining its process.
45.
▲
by
Zamicol
2y ago
Black holes also frequently send ambassadors to the White House so they can comply with US law. Human leadership in physical law is well respected universally.
46.
▲
by
Zamicol
2y ago
I'm confused by this sentiment I've seen repeated by some. AI/LLMs are radically expanding my abilities, and as I adapt to this new power, I'm using it more frequently in everyday life. Sure, Nvidia stock may be overpric
47.
▲
by
Zamicol
2y ago
Signal's larger problem is the lack of a web client. Telegram (like everyone else) has a great, responsive web client. What's even more frustrating is that Signals desktop app is just an electron app, meaning it's generally d
48.
▲
by
Zamicol
2y ago
Well said. Bearing that in mind, we've found that JSDoc is a reasonable substitution for some TypeScript applications; however, JSDoc has limitations that we've ran into frequently as well.
49.
▲
by
Zamicol
2y ago
Pedantically, UTF-16 has some code points out of order. The way I've always seen it implemented results in more operations spent on some points than others. See this example C code: https://icu-project.org/docs/
50.
▲
by
Zamicol
2y ago
As someone who lives in Colorado I avoid Denver because of its traffic. Denver isn't the only city on I-25. Forget Denver, I-25 is increasingly more congested because the population and trade in Colorado is increasing. Politicians myo
51.
▲
by
Zamicol
2y ago
It's been years since I've had to work on a Windows system, but I'm suspicious of that. Days of my career at the State of Colorado has been spent fixing / problems. Is this something on newer Windows systems?
52.
▲
by
Zamicol
3y ago
Or just go directly to 2^256 and have enough links for every atom in the observable universe. More importantly, it's enough links that at the Landauer limit a collision can't happen without consuming ~300,000 solar systems of ener
53.
▲
by
Zamicol
3y ago
I'm not following as Base85 isn't JSON safe. For example, { and } carry meaning in JSON.
54.
▲
by
Zamicol
3y ago
I'm not confident of the math there. https://i.imgur.com/cAVbqka.png Because of quirks, in edge cases decimal is more efficient, but overall alphanumeric is better in QR code.
55.
▲
by
Zamicol
3y ago
RFC 3986 says that * is a sub-delim. It cannot be assumed to be URI safe. A base 38 alphabet is the maximal possible URI unreserved alphabet.
56.
▲
by
Zamicol
3y ago
https://i.imgur.com/cAVbqka.png Of course, pure binary (byte) encoding is best, but many systems have the constraint of text characters or non-control characters. With that constraint, alphanumeric encoding is best. https
57.
▲
by
Zamicol
3y ago
I built an open source tool to specifically work on this problem: https://convert.zamicol.com We know only two open source JS projects that even support alphanumeric, Nayuki and Paul’s. https://github.com/Cyphrme
58.
▲
by
Zamicol
3y ago
Klebb3: https://news.ycombinator.com/user?id=klabb3 Quantum computers are like fusion in the 1940's, "it's only going to take 20 more years". Using arguments in line with klebb, if quantum is linearly di
59.
▲
by
Zamicol
3y ago
Hear, hear! Larger signatures, ES384 instead of ES256, are significantly harder to break.
60.
▲
by
Zamicol
3y ago
> The new version of libjxl brings a very substantial reduction in memory consumption, by an order of magnitude, for both lossy and lossless compression. Also the speed is improved, especially for multi-threaded lossless encoding where t
More ›