Better HN
topnewbestaskshowjobs
Log inSign up

returningfory2

2,464 karma · joined Jun 25, 2020 (6y ago) · 493 submissions

Submissions

comment 1y ago · link · parent

The main reason is that the government isn't funding it, like in other countries. I do agree the healthcare system in the US should be reformed. But the cost isn't going to go all away - it's just going to be shifted to higher taxes. Which is fine.

comment 1y ago · link · parent

> Alberta was created within Canada by subdividing what was then the Northwest Territories, already part of Canada.

The same is true of the majority of the US states. The original 13 colonies and Texas and Florida (and maybe a few more?) had some preexisting status, but the rest were created out of Federal territories.

comment 1y ago · link · parent

Or is it possible the LLM did try to run `DELETE FROM hackernews.full`, was denied, and then is prompted to return the response you saw?

comment 1y ago · link · parent

The LLM likely does not have write access to the database, so even if wanted to run that query it couldn't.

comment 1y ago · link · parent

That sounds reasonable, though I’ve read online that Mexico generally refuses to take them back.

comment 1y ago · link · parent

What process would you design for handling people who are denied entry at a land port of entry?

comment 1y ago · link · parent

The German person you link to was attempting to enter the US to work as a tattoo artist which is not allowed under tourist visa programs. I actually think the law should be more flexible and this kind of casual work should be allowed. However the law as it currently stands doesn't allow it and they were "correctly" denied entry.

The reason this person wasn't put on a "quick flight home" is because they (along with the British person) were detained at a land port of entry so there's no option to send them straight back.

In general, I think two things are simultaneously true. One is that Trump is cracking down on immigration. The second is that the media are suddenly reporting on a lot of cases -- like the German and British women -- that aren't actually new but were happening under Biden. It's just now the media has an angle and narrative such that these cases are deemed report worthy.

comment 1y ago · link · parent

nit: USBP (US Border Patrol) is not at the ports of entry. Border Patrol is for the land border _between_ ports of entry. CBP (customs and border protection) is the organization that does immigration control at the ports of entry.

comment 1y ago · link · parent

They've already started doing this in NYC - the new 10th ave bike lane is double the width of normal bike lanes.

comment 1y ago · link · parent

Perks have gotten better in some dimensions - for example, parental leave is much more generous than it was even 5 years ago. And that’s probably a more important perk than free backpacks tbh.

comment 1y ago · link · parent

This is the benchmark they wrote: https://github.com/eliben/code-for-blog/blob/7278526923168d2...

The benchmark alternates between ~1 million different keys to check in the filter, explicitly to account for cache effects.

comment 1y ago · link · parent

Tens of thousands of Americas are killed every year in car crashes. The existence of a case or some cases where a self-driving car caused injury has zero value. What matters is the rate of cases per mile driven.

comment 1y ago · link · parent

Good point!

comment 1y ago · link · parent

Indeed, the formula is correct. Wikipedia maintains a list of historic Forever pricing: https://en.wikipedia.org/wiki/History_of_United_States_posta...

From the blog, the letter from California was dated April 2022, at which point the rates were domestic = $0.58 and global = $1.30. So the California sender correctly attached two domestics valued at $1.16 total plus an additional $0.14 to make $1.30.

comment 1y ago · link · parent

I don't understand the satire, can you explain?

We can't see the full set of "lower denomination" stamps on the letter, but I'm not 100% sure it's actually lower denomination. The sender of the stamps seems to be using the "2 domestic forevers + some amount of cents = 1 global forever" formula. I think the UK sender didn't need to include _two_ global forevers.

comment 1y ago · link · parent

The idea that Murdoch and Musk are not really American and are instead foreigners is a disgusting anti-immigrant sentiment.

comment 1y ago · link · parent

It's always the outsider who's to blame!

comment 1y ago · link · parent

I think it's a very different situation:

- Israel is composed of people from different parts of the world with different languages so as a matter of practical policy they had to standardize on some uniform language for the country. Scotland doesn't have this problem: English is already the uniform standardized language.

- Israel exists in a more "existential" position than Scotland - there is more of a sense that their country and culture could be lost. Thus there is a bigger motivation to preserve what makes them different. I think you see this play out in Ireland, actually: there seems to be more of an interest in the Irish language in Northern Ireland, where the Irish identify is seen as more under threat, than in the Republic, where it is safe.

comment 1y ago · link · parent

> It's possible that this is a compiler bug. It's also possible that there's some fringe case where the reference actually can escape via that method call, and the compiler doesn't have enough context to rule it out.

Here's an example, I think: suppose the method spawns a new goroutine that contains a reference to `chunkStore`. This goroutine can outlive the `ReadBytes` function call, and thus Go has to heap allocate the thing being referenced.

In general, this kind of example makes me suspect that Go's escape analysis algorithm treats any method call as a black box and heap allocates anything being passed to it by reference.

comment 1y ago · link · parent

Many years ago I think, here: https://github.com/rust-lang/rust/issues/46213. (Found this via https://lobste.rs/s/w3jjb2/surprising_enum_size_optimization...)

comment 1y ago · link · parent

In the strictly technical sense I agree, however in the Rust community when people say "the niche optimization" they usually are referring only to the simplest case. For example in the book Rust For Rustaceans (written by a pretty serious Rust expert and aimed at intermediate-level Rust programmers) the nice optimization is described as "the Rust compiler using invalid bit patterns to represent enum variants that hold no data". Note the "hold no data" part - it doesn't incorporate the case in the blog.

In any case, the definition of what is exactly niche optimization is besides the point. The point of the post is: the literature gives you the impression that there's one limited form of enum size optimization in the Rust compiler, but in fact there are other optimizations too. And knowing this is useful!

112.

A surprising enum size optimization in the Rust compiler(jpfennell.com ↗)

148 points · by returningfory2 · 1y ago · 70 comments

comment 1y ago · link · parent

Really interesting technique. I guess one of the (theoretical?) drawbacks is the memory usage is not ideal? In a traditional bytecode compiler the result of compilation is a very-cache-friendly binary array, whereas here it looks like a vector of pointers to heap allocated closures.

comment 1y ago · link · parent

I think that a significant cause of homelessness is unaffordable housing. In 2025 housing affordability is better in Republican-run states like Texas because the state governments allow more housing to be constructed. Because housing is more abundant and cheaper, the population is growing faster. (This is why the Electoral College is on track to become more biased in favor of Republicans after the 2030 Census: the US population is disproportionately growing in Republican states.)

For context I'm a center-left person, but at this point I'm pretty fed up with the standard California Democrat stance of simultaneously saying that housing affordability is really important but also using many tools of government to actually block housing construction.

comment 1y ago · link · parent

The main reason they can't get housing though is that the government of California, which is dominated by Democrats, refuses to allow sufficient housing construction to make housing affordable.

comment 1y ago · link · parent

Maybe you could build a domain-specific language.

comment 1y ago · link · parent

If anyone from Framework is reading, I've noticed something weird about your website which I think would be worth fixing. When I go to the Framework Laptop 13 page [1] the only buttons I see are "pre-order now" which makes me think I can't buy one today. But when I click "pre-order now" and go to the shop, I can choose older version of the 13 and buy them today.

Context is I've a friend who told me last night he wants one of these laptops but that they're not currently available...overall seems the website is a bit misleading on current availability.

[1] https://frame.work/laptop13

comment 1y ago · link · parent

Yes. At these latitudes there are times of the year when it's always night or always day. This messes with the math such that the graphs look weird.

comment 1y ago · link · parent

Rust has this, and it just makes so much sense. Especially when you write a library in which the basic demo is also the basic unit test you want to make. Instead of writing a specific unit test that's hidden in source code, you just embed it in the docs and then you (a) don't have code duplication and (b) have verification your documentation's code samples are actually correct.

comment 1y ago · link · parent

The person behind Zest runs an interesting blog/work journal, I recommend subscribing [1]. I could be wrong, but my understanding is that they don't have a full-time job. Instead they do some amount of consulting, and then spend most of their time and intellectual energy working on their projects. Which is pretty cool I think.

[1] https://www.scattered-thoughts.net

12345
17