Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
estebank
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
331.
▲
by
estebank
1y ago
What you call "baffling", I call "different". Being different doesn't mean it's "complex" or even "hard" (in isolation), but it can be baffling, in the same way that driving on the other sid
332.
▲
by
estebank
1y ago
https://doc.rust-lang.org/std/env/fn.set_var.html#safety
333.
▲
by
estebank
1y ago
Equating having access to public transport with lack of running water is wild to me. A rich country is not one where poor people drive but rather one where rich people take public transport.
334.
▲
by
estebank
1y ago
For things like this I find that ? still works well enough, but I tend to write code like match x(y) { Ok(None) => "not found".into(), Ok(Some(x)) => x, Err(e) => handle_error(e), } Be
335.
▲
by
estebank
1y ago
In order to have true ergonomic no_panic code in Rust you'd need to be able to have parametricity on the panic behavior: have a single Box::new that can be context determined to be panicky or Result based. It has to be context determin
336.
▲
by
estebank
1y ago
1) every dependency comes from crates.io, not straight from GitHub 2) the dependency list is tiny 3) it uses a cargo lock, so even if it were using a GitHub dependency, that file keeps a hash of the dependency and points at the specific com
337.
▲
by
estebank
1y ago
If someone doesn't care one way or another, the label is useless. If someone has a positive opinion, the label helps the consumer seek it out. If someone has a negative opinion, the label helps the consumer avoid the product. If they f
338.
▲
by
estebank
1y ago
IMO the best chance Java has to close the gap on memory utilisation is Project Valhalla[1] which brings value types to the JVM, but the specifics will matter. If it requires backwards incompatible opt-in ceremony, the adoption in the Java e
339.
▲
by
estebank
1y ago
It's not "just pointers", because they can have additional semantics and assurances beyond "give me the bits at this address". The index value can be tied to a specific container (using new types for indexing so tha
340.
▲
by
estebank
1y ago
> it is possible to store index to some object only for that object to be replaced with something else entirely later. That's what generational arenas are for, at the cost of having to check for index validity on every access. But t
341.
▲
by
estebank
1y ago
There's a school of thought that correctly states that in that case it is very easy to cause expensive drop behavior to be ran for each element in the vector where a faster batch approach could instead be done, which is doable if not e
342.
▲
by
estebank
1y ago
> Don’t be put off by the memelord persona One can be put off by whatever one is put off by. I've gotten to the point where I realized that I don't need to listen to everyone's opinion. Everyone's got some. If one opi
343.
▲
by
estebank
2y ago
There's already no path to citizenship for anyone that entered the US without a visa or parole, and if deported it already eliminates the eligibility for a visa for 5 to 20 years.
344.
▲
by
estebank
2y ago
https://rust-lang.github.io/rustup/installation/windows.html > When targeting the MSVC ABI, Rust additionally requires an installation of Visual Studio so rustc can use its linker and libraries. > When targe
345.
▲
by
estebank
2y ago
Part of the thinking behind the "My *" naming for those directories was forcing applications to handle spaces in paths properly.
346.
▲
by
estebank
2y ago
There's a huge difference between "no longer as necessary" and "let's ban it".
347.
▲
by
estebank
2y ago
Whenever I ask myself "should I use YAML?" I answer myself "Norway".
348.
▲
by
estebank
2y ago
The "cool kids talking about memory safety" are indeed standing on the shoulders of giants, to allow for others to stand even taller.
349.
▲
by
estebank
2y ago
But it makes it free to use public transport on top of that: it encourages people to use it for more than commutes (improving traffic in turn), which makes sense because commutes are peak utilisation time, the rolling stock is under utilize
350.
▲
by
estebank
2y ago
I explicitly call out how the reduced traffic benefits tradespeople driving their van: every minute they are not stuck in gridlock is a minute they can either bill for or a minute they can get home earlier. We're talking about the pric
351.
▲
by
estebank
2y ago
It can provide the first 3 of those. And conflating "privacy" with "not being around people" is IMO inaccurate. Not learning how to be around people is also I think a driver of some larger societal issues.
352.
▲
by
estebank
2y ago
Had you looked into the effects of similar policies elsewhere? The effect have universally been the same shown in the post.
353.
▲
by
estebank
2y ago
Poor people are not driving into Manhattan. Tradespeople who do, enjoy either more paying work during the day or faster commutes. As you point out, extremely wealthy people won't notice. The only people negatively affected are those mo
354.
▲
by
estebank
2y ago
The thing I don't get is that there are plenty of Googlers traveling internationally. They've been aware of the problem for over a decade now, yet it persists. If I'm traveling from Spain to Poland with a browser set to use U
355.
▲
by
estebank
2y ago
Which also doesn't preclude someone else writing an abstraction on top that provides an API using references.
356.
▲
by
estebank
2y ago
Note that that is a doubly linked list, because it is a "soup of ownership" data structure. A singly linked list has clear ownership so it can be modelled in safe Rust. On modern aschitectures you shouldn't use either unles
357.
▲
by
estebank
2y ago
To add to this, this should give you an idea of what this looks like to use: https://serde.rs/derive.html
358.
▲
by
estebank
2y ago
Iirc when I checked there were about ~25 if checks per edition on the compiler. I feel like we can go for a while at that rate without it being a big maintenance burden.
359.
▲
by
estebank
2y ago
> Now he can push for more inflation, bitcoin will be the only hedge against it, boom, trillionaire. That's assuming that Bitcoin gains value disconnected from the US dollar/economy. That's not a given.
360.
▲
by
estebank
2y ago
Having ripgrep installed by default doesn't preclude grep also being installed.
More ›