Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mattstir
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
mattstir
2y ago
Did you... read the article?
92.
▲
by
mattstir
2y ago
It is "erased" in this example in the sense that the hashes are just strings at runtime, and not other objects instead. That's because the `generateHash` function in the article's example uses `as Hash` to tell the compi
93.
▲
by
mattstir
2y ago
I'm legitimately confused about why so many people in this thread are showing off template literal types as if actual hash functions just prepend "hash_" onto strings and call it a day. There are a lot of different types of
94.
▲
by
mattstir
2y ago
> The other implementation is detailed in this article, and requires the addition of unique field value to objects. That's not quite what ends up happening in this article though. The actual objects themselves are left unchanged (no
95.
▲
by
mattstir
2y ago
> In this case where the wrong order of parameters was the issue, you can solve it with Template Literal Types You can solve the issue in this particular example because the "hashing" function happens to just append a prefix
96.
▲
by
mattstir
2y ago
I think what they meant is that at runtime, you don't end up with objects that look something like: { "brand": "Hash", "value": "..." } which would be the case if you used the mo
97.
▲
by
mattstir
2y ago
The publicly-available archives released by Stack Exchange are updated roughly quarterly and have the attribution requirements as specified by CC BY-SA + the Stack Exchange ToS. The article makes it sound like OpenAI is using the API though
98.
▲
by
mattstir
3y ago
Interestingly, GPT-4 also fails to correctly solve this prompt, choosing car A each time after multiple tries for me. I tend to find that models struggle with such logic puzzles when using less common phrasing (e.g., two cars "having&q
99.
▲
by
mattstir
3y ago
I noticed similar behaviour in an older model (Skywork 13B) a few months back. When asked in Chinese, it would politely say that nothing of note occurred when responding to queries about Tiananmen Square, etc. In English, it would usually r
100.
▲
by
mattstir
3y ago
Not a dumb question at all. Yeah, in the process of finding you within a data brokers system and sending a removal request, they need to send that broker your personal data... it's a bit awkward. Optery, another PII removal service has
101.
▲
by
mattstir
3y ago
To be fair, that alone doesn't account for it, since 90m only ~25% of the total population, so it's still skewed. Probably attributable to density and cost of living etc though.
102.
▲
by
mattstir
3y ago
Email is a fantastic example of something that's technically capable of being decentralized but in practice has something like 70%+ of all traffic handled by three major companies (Google, Microsoft, and Apple). No one can stop you fro
103.
▲
by
mattstir
3y ago
Welp, everyone pack up. This one person has decided that there's nothing to mind here.
104.
▲
by
mattstir
3y ago
If it's free, then you are the product. That's an adage that holds true in most cases, and in this case, your code is being used to train Copilot, among other things. Even if that weren't the case though, and the service real
105.
▲
by
mattstir
3y ago
I mean, surely you can just apply your very own experience to the matter, right? Try this: remember what you were doing at this time last week, down to the minute, as though you were currently experiencing it. Every sight, every sound, ever
106.
▲
by
mattstir
3y ago
Popular chat-bot LLMs weren't trained to do math, they were trained to predict the next token in a conversational setting. The fact that they can do any math at all is a miracle considering that they have absolutely no thought process;
107.
▲
by
mattstir
3y ago
I mean... yeah, that's exactly why Rust has tagged unions as well... both are useful in the right contexts, but tagged unions are easier to work with in general. That doesn't mean that (untagged) unions should be safe to work with
108.
▲
by
mattstir
3y ago
Rust already has things called unions, which are C-style unions. Using the same word for two different things would definitely have been more confusing, not less...
109.
▲
by
mattstir
3y ago
The thing is that accessing an untagged union's data is just inherently unsafe. Say you made a union with a `u8` field and a `bool` field. If you had an instance of it and set its value to `5`, that's just not a valid `bool`. Henc
110.
▲
by
mattstir
3y ago
This really reads like someone who's never touched Rust outside of a 15-minute intro or something. The aversion to `unsafe` doesn't really make a whole lot of sense if your main focus is raw performance... that's why there&#x
111.
▲
by
mattstir
3y ago
So how do retinal scans protect against Sybil attacks exactly?
112.
▲
by
mattstir
3y ago
This sort of willful ignorance is disparaging to see. Surely you must see a difference between an ad block that's clearly differentiated from the main program (ads before a movie plays, ad breaks during TV) and an endless feed of cont
113.
▲
by
mattstir
3y ago
Genuine question: do you think that the police do absolutely nothing but make their communities worse? Like I get the attempt at a parallel but it's just weirdly forced.
114.
▲
by
mattstir
3y ago
There are certainly things that may be worth trying to protect children from online, like extremely targeted advertising that gets presented like legitimate content. Kids won't necessarily be able to differentiate between the two, and
115.
▲
by
mattstir
3y ago
> It's called empathy. I suppose it's just hard for many to feel empathy for someone who would go to such great lengths to avoid the consequences of their own actions. The timeline of events is just insane: Dr. Duffy consults w
116.
▲
by
mattstir
3y ago
> she won and did a great service to her fellow human beings She didn't win, they settled out of court. The article definitely does its best to avoid mentioning even a single detail about the case beyond the outcome, and even that i
117.
▲
by
mattstir
3y ago
This may just be my inexperience with the intricacies of C++, but it seems like a decent number of the problems raised here could be fixed by allowing one to name default args like proper keyword arguments. Consider the first issue discusse
118.
▲
by
mattstir
3y ago
I mean yeah, in a language without default arguments, it certainly is typical to use the only other way (overloading) to easily emulate that behaviour.
119.
▲
by
mattstir
3y ago
It truly does seem like a misinformed take on security, believing that being actively tracked is better than the possibility of being tracked if uBlock Origin were ever to be compromised.
120.
▲
by
mattstir
3y ago
Who's banning linking? The new law tried to get tech companies to pay to show the links with previews (similar to Australia and France, etc). To be clear, the bill is fundamentally broken. It would require Google or Facebook to pay sim
More ›