Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
estebank
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
estebank
3mo ago
Yes, that would be one way of doing it. You can model off of the Typed Builder pattern: struct Builder<const A: bool, const B: bool> { a: Option<u32>, b: Option<u32>, } struct Val { a: u32, b: u32,
32.
▲
by
estebank
3mo ago
This is in effect a state machine, and when you have a type system more complex than C's you can encode state transitions in the type system (either by having state transitions explicitly return a new return type or by using sum types)
33.
▲
by
estebank
3mo ago
Like DVD before it, Blu-ray includes region locking as a feature (but apparently ~70% of disks don't bother with it, notably Paramount and Universal don't). Non-locked disks are marked as ABC (A is the Americas and Asia, B is Euro
34.
▲
by
estebank
3mo ago
The movie itself is generally encoded at a higher bitrate than what you can find in streaming or torrents. The media includes bonus features that generally aren't available in streaming or torrents. The media will not suddenly stop exi
35.
▲
by
estebank
3mo ago
A lot of people talking about how displaying the flag at all could get somebody in Russia in trouble. You could see the increasing of the likelihood as helpful then, because the flag could always appear. By making it come up more often it c
36.
▲
by
estebank
3mo ago
This is a problem I'm seeing a lot of countries rushing full steam ahead. The age of a single physical ID that's only rarely needed and ubiquitous cash payments seems to be coming to an end. For anyone who travels a lot, migrants
37.
▲
by
estebank
3mo ago
This kind of thing is one of the reasons crates.io distributes source only, and that published crate dependencies can't depend on other repositories (that might allow for that attack).
38.
▲
by
estebank
3mo ago
Feel free to point at 1 thing that the rust-lang didn't do because the Foundation blocked it.
39.
▲
by
estebank
3mo ago
Open source projects tend to be (and Rust certainly is) a showupocracy. Shit gets done when people that care about that shit does it. This means that important stuff that everyone agrees is important but not important enough for me to do,
40.
▲
by
estebank
3mo ago
1) Trawl registry for packages owned by domains. 2) Note expired domains and register them yourself. 3) Supply chain compromise. That, and not wanting people to fork out money for a domain as a requirement to participate in the ecosystem.
41.
▲
by
estebank
4mo ago
> Not only does that not have anything to do with texting, but it has nothing to do with the roads. From both the NYT video and their article: > And that increase is unique to the US. Most other wealthy countries haven't seen a s
42.
▲
by
estebank
4mo ago
Or, put another way, 1% of every traffic fatality, or 8% of every pedestrian killed by cars. Those are not a small number being affected by a single variable.
43.
▲
by
estebank
4mo ago
Because the effects are explicitly called out for US roads and not other locales. https://m.youtube.com/shorts/FDvTWy0LMt4
44.
▲
by
estebank
4mo ago
Could it be that the other differences are driven by differences in the built environment? Like narrower roads making people drive slower, or bollards, or alternatives to driving making it less likely to have people that shouldn't be d
45.
▲
by
estebank
4mo ago
What would make non-Americans text less?
46.
▲
by
estebank
4mo ago
> But everyone is building them not just American manufacturers But for, and driven by, the American market. I would hazard a guess that Silverados sold outside of US, Canada, Mexico and Australia can fit in a single parking lot.
47.
▲
by
estebank
4mo ago
I'm not a doctor and certainly not an oncologist. The CDC mentions that not smoking and wearing condoms also lower the risk. https://www.cdc.gov/cervical-cancer/prevention/index.html Anecdotally people smoke
48.
▲
by
estebank
4mo ago
The BBC article had that more comparable information: https://www.bbc.com/news/articles/c621z28z138o > Between 2020 and 2024, no cervical cancer deaths were recorded in women aged 20 to 24 - the first time that
49.
▲
by
estebank
4mo ago
The third option is to have a variable width length: the top most bit signals whether the next byte corresponds to the length or to the start of the string.
50.
▲
by
estebank
4mo ago
https://en.wikipedia.org/wiki/Schengen_Area
51.
▲
by
estebank
4mo ago
The things I've found: - RCS doesn't work at all on non-Owner accounts, switching to the owner account is necessary to receive them (I use a secondary account for my "main" account, the owner is left empty except for a G
52.
▲
by
estebank
4mo ago
Sufficiently advanced stupidity is indistinguishable from malice.
53.
▲
by
estebank
4mo ago
Has actual use increased or is it now just more visible to you?
54.
▲
by
estebank
4mo ago
YIMBYism is about relaxed zoning so that commerce and diverse types of housing aren't physically segregated, but even in the most "free" places industry is segregated because the needs of industry are incompatible with human
55.
▲
by
estebank
4mo ago
Nitpick: it's Colombia, not Columbia. And the last name is Garcia Marquez. Splitting half of the last name is not generally done. It sounds like calling somebody called McDonald just Mac.
56.
▲
by
estebank
4mo ago
I read books and watch movies to engage and be moved by stories I didn't know I wanted, that surprise me and/or leave me thinking for a while. I loved Annihilation and it's sequels, not knowing what I was getting into. I woul
57.
▲
by
estebank
4mo ago
Yes, but no, but also yes. Editions are for language evolution. Evolving the std does fit the bill. Edition aware path resolution isn't a thing. It will likely be a thing starting with Edition 2027. Range is likely to be the first ty
58.
▲
by
estebank
4mo ago
The full transition won't be completed until 2027 edition, when the meaning of the `..` operator is expected to swap to the new type.
59.
▲
by
estebank
5mo ago
I think you meant TokenStream. They are trees, behind the scenes, because matching delimiters happens early on between lexing and parsing. By the time the rustc_proc_macro::TokenStream is exposed, the rustc_ast::tokenstream::TokenTree is
60.
▲
by
estebank
5mo ago
There's work on edition aware name resolution so that a type with the "nice path" can change over an edition while still accessible through a longer path, but 1) it's not implemented yet, 2) it hasn't been used yet
More ›