Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
simonask
2mo ago
> and is a major source why people dislike Rust's async It's worth mentioning that there is, in fact, no language out there other than Rust that can even do this in the first place. Some languages give the illusion that they su
62.
▲
by
simonask
2mo ago
The naïve idea would be to just say that all generic parameters have an implicit `where T: Move` bound, and you have to explicitly opt out of it with `where T: ?Move`, just like with `?Sized`. In fact, that's exactly how I would expect
63.
▲
by
simonask
2mo ago
None. The question is more what happens when you put a `!Move` type into, say, `Vec<T>`, because that's a collection type that regularly moves its elements to a new allocation when it grows or shrinks. Should it be possible to co
64.
▲
by
simonask
2mo ago
For context, the reason this would be really nice is that it would enable API designs that catch certain kinds of errors. let txn = create_transaction(); // do something with the transaction txn.commit(); //
65.
▲
by
simonask
2mo ago
The big one is scoped tasks, or structured concurrency. Currently, Rust has scoped threads: Threads that are guaranteed to terminate before the function that spawned them returns. This is powerful because it allows you to pass references to
66.
▲
by
simonask
2mo ago
The older I get, the more critical I become of the culture of anonymity in OSS. The obvious-but-hard solution to this, as well as certain other attacks like the xz incident, is a chain of trust. Every line of code in every package should be
67.
▲
by
simonask
2mo ago
The post I replied to criticized people’s choice to have “random sex”, i.e. they suggest a behavioral change. Getting tested is great practice, but you can’t rely on partners being diligent or consistent with that for your own safety.
68.
▲
by
simonask
2mo ago
Every analysis of the problem I've seen has concluded that the main problem is that rustc generates a lot of input to LLVM. Efforts to reduce compilation times are currently focused on doing more to the IR before converting it to LLVM
69.
▲
by
simonask
2mo ago
Abstinence has been shown to be an extremely, hilariously, stupidly ineffective strategy in all questions of human sexual health. The HIV/AIDS epidemic would not have been nearly as serious as it was if people like you and the Catholic
70.
▲
by
simonask
2mo ago
As we all hopefully learnt from COVID-19, slowing sufficiently is the same as stopping. It’s a numbers game. Slowing transmission below some threshold will eventually mean that there are no new transmissions.
71.
▲
by
simonask
2mo ago
All sex is risky by this measure. Condoms break. Partners lie. Shit happens. It doesn’t take a lot for the risks to far outweigh any potential side effects. As far as I’m aware, every healthcare system in the developed world either recommen
72.
▲
by
simonask
2mo ago
Ad-hoc use of PrEP just requires that you take a double dose 1 hour prior to potential exposure, and follow up with another double dose 24 hours later, at least with the versions commonly prescribed to sexually active groups in my area. I a
73.
▲
by
simonask
3mo ago
We managed without smartphones before smartphones were a requirement for participating in society. That is, if you’re a millennial or older. We can’t just pretend that it’s possible to live an adult life without one in 2026. In 2008, certai
74.
▲
by
simonask
3mo ago
It certainly doesn't say that there is any less love among members of that community. It would be more correct to say that there is no direct translation for the English word "love". Lots of languages fall in that category. L
75.
▲
by
simonask
3mo ago
"Vibrant" is certainly one way to describe it...
76.
▲
by
simonask
3mo ago
"Why cook food in 2026 [while McDonald's exists]?"
77.
▲
by
simonask
3mo ago
None of Human civilization would exist if the norm was to share your unfiltered opinions about other people. It has nothing to do with “corporate”. It’s just so unbelievably immature, and I know of no other industry where this is common.
78.
▲
by
simonask
3mo ago
There is no “authoritarian left” anywhere in the West, outside of a few vestigial Communist parties with close to zero influence. This can change in the future, as it has before, but in 2026, even libertarians only care about personal freed
79.
▲
by
simonask
3mo ago
> I think there were enough attacks already for cargo that one can not call this FUD. What attacks are you referring to specifically? > It is also obvious that this way to distribute software is susceptible to supply chain attacks. ca
80.
▲
by
simonask
3mo ago
> On the other hand, systems like cargo a clearly a supply chain disaster. I don't think that has been shown to be true. There's a lot of FUD, though. Tools like `cargo vet` and `cargo audit` seem to be pretty good. > I also
81.
▲
by
simonask
3mo ago
Security is not, and in fact can never be, all-or-nothing. An imperfect solution is better than no solution. Developers have the reasonable expectation that opening a project in VS Code does not upload their home directory to a remote serve
82.
▲
by
simonask
3mo ago
I don't think masochism is a reliable or sound security strategy.
83.
▲
by
simonask
3mo ago
I think it's pretty obvious they are referring to package management functionality as the radiator fluid in this analogy, and the compiler is the fuel tank.
84.
▲
by
simonask
3mo ago
I'm sorry, I have to address this take every time someone brings it up. The lack of a modern, ubiquitous, cross-platform packaging system is an absolutely terrible thing for C++. I've worked on many large projects in C++, and ever
85.
▲
by
simonask
3mo ago
I think "build systems" is a too broad category in that argument. Language-specific build facilities, like Cargo's build.rs and Zig's build scripts, typically have a limited scope - generating a bit of source code, disco
86.
▲
by
simonask
3mo ago
This approach is harder than you might imagine. LLVM can do a lot of things that don't map to C language constructs. You cannot generally roundtrip arbitrary LLVM IR through some C representation. You can emulate most things, but you w
87.
▲
by
simonask
3mo ago
Interesting read, even as someone who isn't using Zig. I wonder, these arbitrary-width integers... Is it actually even really worth it? My intuition is to prefer manually packing/unpacking things instead (in any language, even C t
88.
▲
by
simonask
3mo ago
It's weird because... I'm not the customer on either Reddit or HN. I'm the product.
89.
▲
by
simonask
3mo ago
Ruby has both kinds of operators as well, and it's fine. The thing in Ruby, though, is that the English logical operators have lower precedence than the symbolic logical operators, so you can use them in place of parentheses. Sometimes
90.
▲
by
simonask
3mo ago
Driving in Europe would be completely impossible without them. I have no idea what the Greek word for "no parking or stopping between 09 and 15" is, or the Croatian word for "left".
More ›