Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tylerhou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
391.
▲
by
tylerhou
5y ago
A little late, but yes, subscripting an array yields a gvalue of that type, but that is not an access unless you use the glvalue in some other computation (I assume). But even if you do access it (i.e. make a bitwise copy of the entire arra
392.
▲
by
tylerhou
5y ago
Using data from two years without accounting for any confounders (a pandemic??) has approximately zero statistical rigor. Have you: 1. Considered the prosecution rate in other cities? 2. Controlled for other independent variables that might
393.
▲
by
tylerhou
5y ago
Also worth noting that California's felony threshold is still much lower than most states (i.e. it's easier to get charged with a felony), including conservative ones that are usually "tough on crime." And the Bay Area&#
394.
▲
by
tylerhou
5y ago
Any data to back up your claim (that rate of theft is positively caused by "less" prosecution)? Would like to see an analysis that controls for confounders as well (like effects from a pandemic).
395.
▲
by
tylerhou
5y ago
The main slowdown in JavaScript is because it is inherently so dynamic — all function calls are "virtual," properties are string lookups, you need a lot of indirection (boxing) to store objects. Without actually running the progra
396.
▲
by
tylerhou
5y ago
You are not using rent in the conventional, economic sense. Rent is specifically a payment made to an manufacturer of goods or services that is higher than what is necessary for that manufacturer to bring those goods into existence; (i.e. h
397.
▲
by
tylerhou
5y ago
Unions in the US (with some small exceptions) have to negotiate better working conditions which benefit all workers, regardless of whether they are a part of the union or not [1]. If there was no mandatory fee, then unions would likely suff
398.
▲
by
tylerhou
5y ago
Not too terrible to create a private method that does the reinterpret_cast for you. I've had to use this technique in the past and therefore dived into the standard for quite a while. I don't recall encountering any UB concerns.
399.
▲
by
tylerhou
5y ago
> After that, it would be UB to peek at the bytes of the object via the array because of aliasing issues Do you have a source for this? IIRC char and std::byte have a specific aliasing exception. I.e. char* and std::byte are allowed to a
400.
▲
by
tylerhou
5y ago
This blog post is a huge overgeneralization of large tech companies. You can't extrapolate from one bad experience at one team at Apple to say that all teams at Apple are bad. And you definitely can't then also conclude that all o
401.
▲
by
tylerhou
5y ago
As other commentators have noted, it's quite a leap in logic to use reinfection data to make a mechanistic claim on how natural infection may or may not improve the immune response compared to vaccination. In addition, the naturally-in
402.
▲
by
tylerhou
5y ago
Saying carbon credits are a scam is like saying phones are a scam — they both come in different qualities. (If one phone model’s battery explodes, do all phones explode?) There are various ways of offsetting emissions that aren’t vulnerable
403.
▲
by
tylerhou
5y ago
I’ve been called an SJW for politely asking people to stop saying “retarded” or the n-word (or saying things that sound close to the n-word to allude to it). So even if you politely ask, some people will interpret it as an us-vs-them fight
404.
▲
by
tylerhou
5y ago
Objectively, they also charge much higher fees because of the high chargeback rates associated with porn. They also tend to process other unsavory transactions, which also have higher chargeback rates; hence they are "shady."
405.
▲
by
tylerhou
5y ago
> Any job a bright self-taught recent high school graduate can get is likely a job they should not take. Many bright young people turn bitter and disillusioned, because they made the easy choice when they got an offer for a real job. Any
406.
▲
by
tylerhou
5y ago
The datacenter cards (which are about half of their revenue) are running on TSMC.
407.
▲
by
tylerhou
5y ago
Practically, if that function is somewhat hot, I wouldn't be surprised if V8 omitted the allocation altogether when generating optimized bytecode — internally, properties on objects already have an "order," so V8 could push e
408.
▲
by
tylerhou
5y ago
Except it's not a government agency; it's a private non-profit with strong governmental ties. https://www.missingkids.org/blog/2020/four-ncmec-myths
409.
▲
by
tylerhou
5y ago
NCMEC is not exactly a normal NGO; it was opened with Reagan present and Congress frequently gives it funding. It also works with other government organizations on a frequent basis.
410.
▲
by
tylerhou
5y ago
Anecdote, but, my workstation is Linux, my work laptop is macOS, my personal computer is Windows where I run Linux VMs. I run 1Password across all these operating systems. Having a consistent interface is nice and it means I don't have
411.
▲
by
tylerhou
5y ago
You can hide latency with sufficient parallelism. Since read requests are trivially parallelizable, as long as your database queries are mostly reads the database latency is probably not the limiting factor for throughput. (Even if your C++
412.
▲
by
tylerhou
5y ago
> "This feature would take 1 day if we had database layer, but because of technical debt we own, it will take 4 days instead". In this case "3 days" is the "interest payment" Nit: Not the entire 3 days is in
413.
▲
by
tylerhou
5y ago
I'm not a biologist, so this is my rough understanding. ADE is antibody-dependent enhancement, a phenomenon that could occur when your body is exposed to a virus for a second time. Normally, your body has developed antibodies and there
414.
▲
by
tylerhou
5y ago
I think it depends on how large the change is. If the change is small — e.g. we need to slightly modify the signature of some function, then the library maintainer would be responsible as they can easily reason about the change (or automati
415.
▲
by
tylerhou
5y ago
> with the library vulnerability is probably safer than blindly updating it on code you know nothing about. This is what tests are for. > Are you proposing that a single developer/team clones the work of 100s or 1000s of differen
416.
▲
by
tylerhou
5y ago
Another advantage of a mono-repo is that it encourages everyone to use the same tooling & coding libraries. So (at least at Google) I can open another team's codebase (as long as it's in the main mono-repo) and understand it w
417.
▲
by
tylerhou
5y ago
As someone who has worked on large-scale refactorings at Google they usually do happen as the author describes: 1. Add the new interface (& deprecate the old one) 2. Migrate callers over (this can take a long time) 3. Remove the old int
418.
▲
by
tylerhou
5y ago
Would you claim that when Einstein developed his theories of relativity, they were invalid (from the point of view of physics) because their consequences were not yet observable? For example, Einstein used thought experiments to develop spe
419.
▲
by
tylerhou
5y ago
> By saying ahead of time, "one ball is red, the other is blue", you're describing a hidden-variables theory of entanglement. No, consider the case of neutral pion decay, which emits one spin up electron and one spin down
420.
▲
by
tylerhou
5y ago
> Entanglement is not a property about wave functions and really has nothing to do with waves. It's a logical consequence of the uncertainty principle... I don't follow, and I can't find anything online that makes this cla
More ›