Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
841.
▲
by
pcwalton
5y ago
It's not that simple. Otherwise it would be legal to shoot someone for walking on your lawn (also a violation of property rights).
842.
▲
by
pcwalton
5y ago
My trust in Chrome dropped a lot when they started implementing things like Native Client allowlisted to only work on google.com subdomains (giving Google properties a competitive advantage that nobody else had) and Dartium (an internal-pol
843.
▲
by
pcwalton
5y ago
You could probably layer a software implementation of the rasterization pipeline on top of a compute-focused open-source GPU architecture like Nyuzi [1]. NVIDIA has a paper showing how to do this [2]. I would expect a 2x slowdown over hardw
844.
▲
by
pcwalton
5y ago
I've never had that happen in Rust because multiple versions of a crate effectively live in completely separate worlds: they have their own copies of globals, for example. Can you name an example of multiple versions conflicting at run
845.
▲
by
pcwalton
5y ago
Personally, I still haven't really found a better tool for little one-off throwaway scripts than Ruby. Python's always been verbose for me and lacks the awk heritage that makes text processing tasks so easy. Node forces me to deal
846.
▲
by
pcwalton
5y ago
Why are multiple package versions a problem? In Rust they Just Work.
847.
▲
by
pcwalton
5y ago
Ruby and Perl have awk modes, activated with command-line switches, that are strictly more powerful than awk. I tried using awk recently for a text-processing task and it was a fun learning experience, but I ended up rewriting in Ruby. Ther
848.
▲
by
pcwalton
5y ago
It's easy to forget, but housing is affordable for most people in most parts of the US. Here on HN it seems otherwise because we disproportionately live in California and other expensive metropolitan areas along the coasts. Rising pric
849.
▲
by
pcwalton
5y ago
Yeah, the standard solution is to create a newtype for each such variant. I believe this is the preferred idiom in languages like TypeScript that have union types but not discriminated union types.
850.
▲
by
pcwalton
5y ago
That looks like a great feature to add to Go! It seems to make the original article (which is from 2018) obsolete.
851.
▲
by
pcwalton
5y ago
> The market is essentially stalled. It doesn't 'clear'. People would rather keep it idle out of the market than rent or sell under price. This theory fails to explain why housing prices in San Francisco fell during the do
852.
▲
by
pcwalton
5y ago
Assuming you mean seL4, that was formally verified by taking a manual specification of the L4 kernel and laboriously proving that the C code implements that specification. That is not at all what the compiler's lifetime/borrow che
853.
▲
by
pcwalton
5y ago
I don't think it's possible for a future to enumerate all the references that belong to it. At the very least it's not obvious to me how that's possible to implement, due to the way lifetime subtyping works.
854.
▲
by
pcwalton
5y ago
That's a form of garbage collection. :)
855.
▲
by
pcwalton
5y ago
Not possible for the same reasons why just adding a borrow checker to C++ isn't possible. Mostly this comes down to incompatibility with existing code. Zig is just not memory safe, and the only solution would be to add a GC.
856.
▲
by
pcwalton
5y ago
Having a global switch to switch the program over to async only works if all your concurrency primitives are aware of it: e.g. mutexes. Otherwise you get deadlocks. But Rust is designed to work with raw OS concurrency primitives. So that so
857.
▲
by
pcwalton
5y ago
I don't think base + offset would have worked because then references would have to be codegen'd differently depending on whether they're in a future or not; this would have impacted separate compilation as you can pass refer
858.
▲
by
pcwalton
5y ago
I don't want cryptocurrency mining to be banned, since it's essentially impossible to do that, but I wish people would stop mining cryptocurrency as I don't see benefits that outweigh the costs. There's nothing wrong wit
859.
▲
by
pcwalton
5y ago
The difference is that CPU cycles that go to CI have value in that they expose defects in software before users run into them, where they would cause more economic damage. If CI didn't exist, then the overall utility of software would
860.
▲
by
pcwalton
5y ago
Law enforcement absolutely does care about scams via wire transfers, as a search for mail and wire fraud on justice.gov will confirm.
861.
▲
by
pcwalton
5y ago
That wouldn't be practical. C math library performance really matters for numerical-intensive apps like games.
862.
▲
by
pcwalton
5y ago
I don't think it's helpful for us cyclists to be turning against each other. We ought to be unified in advocating for better bike infrastructure. (Personally, I use an electric bike because I'm still recovering from a broken
863.
▲
by
pcwalton
5y ago
I know, I'm just clarifying for readers who are.
864.
▲
by
pcwalton
5y ago
> There are people that cheat and that install throttles so they can move without pedaling but that's a great way to get your vehicle confiscated. Note that this varies from jurisdiction to jurisdiction. In the US e-bikes with throt
865.
▲
by
pcwalton
5y ago
> It knows nothing about what other Futures' poll()s the top-level Future's poll() calls in turn. That's why calling poll would be marked unsafe. When you call poll() manually it's on you to uphold the invariants. >
866.
▲
by
pcwalton
5y ago
The way to make that work would be to make poll() unsafe and require async runtimes to uphold the invariant that poll() must be called until completion if Pending is ever returned. That way, runtimes would ensure memory safety. This doesn&#
867.
▲
by
pcwalton
5y ago
I actually support the idea of adopting Rust's ideas in a memory-safe, garbage collected language. I like garbage collection—it's not always the right tool, but it's a great tool in the proper domains. Modern GC builds upon d
868.
▲
by
pcwalton
5y ago
That's an excellent document, thanks for writing it up! One motivation for completion futures that either wasn't mentioned or is an unexpected side effect of point #1 (compatibility with C++) is that async code in C/C++ can t
869.
▲
by
pcwalton
5y ago
TGA is easier because the rows go top-to-bottom, you don't have the RIFF header, and you don't have to pad each row to 4 bytes. I still copy and paste a little TGA encoder into my graphics code when I need to dump something out fo
870.
▲
by
pcwalton
5y ago
> What does that even mean? What makes you think saying yes to vaccine but no to vaccine mandates means they don't "accept the vaccine"? Most videos about the COVID vaccine that we're talking about are simply stating
More ›