Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tylerhou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
241.
▲
by
tylerhou
4y ago
Wouldn't the normal implementation for == check lengths? Edit: Never mind, it doesn't: https://github.com/golang/go/blob/d28bf6c9a2ea9b992796738d03... But checking lengths doesn't really help y
242.
▲
by
tylerhou
4y ago
I don't mean the cmov code, I mean the normal naive testl + sete code. The CPU can do all testl's in parallel and all sete's in parallel. I think this should be faster than branches if you ever have a 0. I'm assuming you
243.
▲
by
tylerhou
4y ago
I would expect a small number of variables to fit in cache or registers, so the small extra OOO/data dependency penalty should be much smaller than the cost of a mispredict, no?
244.
▲
by
tylerhou
4y ago
In the US, it depends on whether Hans is a public figure. If he is, generally the standard is you have to know your statements are false.
245.
▲
by
tylerhou
4y ago
(Note: "inheritable" here is not exclusive to inherited genetics; it also refers to upbringing.)
246.
▲
by
tylerhou
4y ago
I’m Asian-American, if you can’t tell by my username. My point is that very often the success of Asian-Americans even though they are a disadvantaged class has been used to justify anti-Black rhetoric. In the context of this HN thread, whic
247.
▲
by
tylerhou
4y ago
Please don’t reduce Asian-Americans to the myth of the model minority. The truth is more nuanced. The income gap between poor and rich Asians in the US is the highest out of any ethnic group. One reason for this is that recent Asian immigra
248.
▲
by
tylerhou
4y ago
I'm pretty sure I have ads on my LG C1 on my input switch screen. Maybe there is a way to turn it off, but I tried (for all of two minutes) and couldn't find one.
249.
▲
by
tylerhou
4y ago
Watches can have cellular service.
250.
▲
by
tylerhou
4y ago
Also, we would like a phase transition slightly below freezing so that it's easier to keep a stable temperature.
251.
▲
by
tylerhou
4y ago
Here is another way that I thought of it. 1. To make ice cream, we need to cool milk/cream below the freezing point of water (because milk/cream contains water). 2. To cool things, liquids have good thermal conductivity properties
252.
▲
by
tylerhou
4y ago
IIRC Cloudflare has page rules, which makes this possible? In fact, with page rules, Cloudflare can proxy a subpath (like /api) to a completely different domain.
253.
▲
by
tylerhou
4y ago
Backup key on your keychain.
254.
▲
by
tylerhou
4y ago
To be clear, do you mean no additional benefit for booster vaccines (not the original series)?
255.
▲
by
tylerhou
4y ago
The linked article says > Incoming FaceTime calls are blocked unless you have previously called that person or contact. So you may have to call them first, even if they are a favorited contact.
256.
▲
by
tylerhou
4y ago
https://tvtropes.org/pmwiki/pmwiki.php/Main/Flanderization
257.
▲
by
tylerhou
4y ago
Maybe once they got your card details, they also signed you up to support that person on Patreon to throw you off the scent?
258.
▲
by
tylerhou
4y ago
If Microsoft wanted to extinguish self-hosted servers, all they would have to do is stop releasing the server jars and/or turn off authentication for non-Microsoft servers. They wouldn't spend so much time and energy pushing a con
259.
▲
by
tylerhou
4y ago
> It literally is as easy as fill out the form, user is automatically banned, no verification required. Source? https://help.minecraft.net/hc/en-us/articles/7317376541197-M... says otherwise.
260.
▲
by
tylerhou
4y ago
One mistake is assuming that the additions take constant time, but really they take ~n time each because you're adding up n-bit integers. If you accumulate your results from left to right you're adding an n-bit integer with a (~n-
261.
▲
by
tylerhou
4y ago
This takes (worse than) quadratic time.
262.
▲
by
tylerhou
4y ago
There is no practical linear time algorithm for multiplication; should Python disable multiplication for numbers greater than 10^4301? Even a naive divide and conquer decimal to binary algorithm is only logarithmically slower than multiplic
263.
▲
by
tylerhou
4y ago
My guess is that they may have forgotten to backfill old data (because probably whether a commit is verified is not computed on the fly), but I don't see why it can't apply retroactively. Maybe try removing and adding the public k
264.
▲
by
tylerhou
4y ago
This already exists for AirPods/Beats under Settings > Accessibility > Audio/Visual > Headphone Audio. https://support.apple.com/en-us/HT211218 Not sure if you can punch in a custom audiogram, but th
265.
▲
by
tylerhou
4y ago
Live Listen with AirPods: https://support.apple.com/en-us/HT209082
266.
▲
by
tylerhou
4y ago
I think they want a hearing aid that could selectively amplify just one voice. Maybe the loudest voice in the vicinity, for example, while muting the others. Not sure how feasible it would be to do this in real time, though.
267.
▲
by
tylerhou
4y ago
Would the dependency linter catch this? I assume yes?
268.
▲
by
tylerhou
4y ago
A big new concept in Go is that methods can have value receivers or pointer receivers. In C++ and Java, there is no distinction. Plus, method calls automatically deref pointers. I think it took me a day to realize this when my code wasn
269.
▲
by
tylerhou
4y ago
I use / to search by a string (or press * while my cursor is on a word to search for that word), then press n or p to go to the next or previous. cgn changes the matched text, and you use . to repeat the change, so to change a word ove
270.
▲
by
tylerhou
4y ago
Is your first example really equivalent to Box<str>? I would have expected something like using BoxStr = std::unique_ptr<Str>; where Str is defined as struct Str { size_t len; char data[]; }; Th
More ›