Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
pcwalton
2y ago
> Even before getting into SIMD, try using Rust for concurrent, succinct, or external-memory data structures. It quickly becomes clear where the friction is. It's the exact opposite for me: I use concurrent data structures more ofte
92.
▲
by
pcwalton
2y ago
> I can't comment on DB because that is quite far out of my wheelhouse but regarding game engines, I've almost universally seen people revert to storing objects in arrays and passing around "handles" which is literall
93.
▲
by
pcwalton
2y ago
> Musk has made no attempt to suppress speech on Bluesky, Facebook, Reddit, Tiktok, etc. This is false if "etc." includes Wikipedia, on which Musk has attempted to suppress speech critical of him [1]. [1]: https://
94.
▲
by
pcwalton
2y ago
Huh, California's bar exam has a 54% pass rate, while Indiana's has a 73% pass rate. TIL!
95.
▲
by
pcwalton
2y ago
> Someone willing to operate a motor vehicle without a license is one step away from manslaughter. I suspect there are plenty of undocumented immigrants in states that don't have the equivalent of AB 60 licenses who are perfectly sa
96.
▲
by
pcwalton
2y ago
They have some kind of safe dialect of C that they use for iBoot. Also they're increasingly using Swift for things.
97.
▲
by
pcwalton
2y ago
> Unlike XML or JSON, there isn't a document defining the grammar of well-formed or valid CSV files There is such a document: RFC 4180. It may not be a good document, but it does exist.
98.
▲
by
pcwalton
2y ago
The emphasis on filial piety in east Asian cultures is undeniable, but I think this thread is overlooking the significant complication that east Asian countries also have some of the lowest birth rates in the world. Americans have more ki
99.
▲
by
pcwalton
2y ago
San Diego County was D+17 at the presidential level in 2024, not exactly right-leaning in national terms. It's slightly right of California (D+20) as a whole, I suppose.
100.
▲
by
pcwalton
2y ago
Oh, I see, it's actually on Wikipedia [1]. I figured I wasn't the first one to invent the idea :) [1]: https://en.wikipedia.org/wiki/Circular_buffer#Optimization
101.
▲
by
pcwalton
2y ago
Interesting alternative idea I thought of just now: a data structure that works like VecDeque (a circular buffer) but uses mmap to map two views onto the same pages right after one another. That would ensure that the entire array can be acc
102.
▲
by
pcwalton
2y ago
The point I'm making is that I don't believe Zig can be made meaningfully memory safe without breaking compatibility to the extent that memory-safe Zig would effectively be a different language, any more than C can.
103.
▲
by
pcwalton
2y ago
Assuming by "non-Rust types" you mean "those that the bevy_reflect crate doesn't know about", it's indeed limited by the orphan rule. That being said, bevy_reflect offers many workarounds for this problem. Beca
104.
▲
by
pcwalton
2y ago
We Bevy users use Rust reflection on a daily basis, and are very happy with it :) I agree it'd be nice if it weren't confined to our community, though.
105.
▲
by
pcwalton
2y ago
I have seen projects like that, and they're a prime example of what I mean when I want to see arguments in favor of Zig that rely on what Zig can do now , and not what it could potentially do in the future. Ten years ago, C++ folks we
106.
▲
by
pcwalton
2y ago
> The challenge is balancing the value of features with their complexity. Even those who prefer Rust's aesthetics to Zig would admit that Zig's novel approach to power/simplicity balance is something we have not seen in pr
107.
▲
by
pcwalton
2y ago
Such as the one Rust provides, and that Zig cannot, due to not being memory safe.
108.
▲
by
pcwalton
2y ago
There are various reflection crates available on crates.io, as you know.
109.
▲
by
pcwalton
2y ago
It's interesting that so many replies in this thread (and indeed, most Zig threads) are along the lines of "yes, it doesn't do X today, but Zig could just add X". I'd really like to see arguments in favor of Zig tha
110.
▲
by
pcwalton
2y ago
How do you typecheck generics, with type inference, with comptime? Or, more generally, address all the issues raised in [1]. You're saying that comptime can fully replicate all the features that a proper generics system has, which is p
111.
▲
by
pcwalton
2y ago
I’m nostalgic about old Unix too, but it’s just that: nostalgia. In reality, Unix was the system that brought us such elegant well-designed APIs as gets(3) and strtok(3).
112.
▲
by
pcwalton
2y ago
What POSIX systems in actual use (not historical Unixes) don't have the long options? macOS' BSD utilities I guess?
113.
▲
by
pcwalton
2y ago
You should visit Canada sometime. It's quite a nice country. British Columbia in particular is gorgeous.
114.
▲
by
pcwalton
2y ago
Java only has tearing for double and long, which are POD types and so are irrelevant to memory safety. Go has tearing for pointer-like objects (interfaces, slices), which causes the memory safety problems. Data races on those pointer-like o
115.
▲
by
pcwalton
2y ago
Because the article isn't about the identity of Asahi Lina. That may or may not be an interesting article (I'm deliberately being neutral so as not to spark off-topic discussion), but it isn't the topic of this article.
116.
▲
by
pcwalton
2y ago
> Presumably with inline assembly both languages can emit what is effectively the same machine code. Is the Rust compiler a better optimizing compiler than C compilers? rustc uses LLVM just as clang does, so to a first approximation they
117.
▲
by
pcwalton
2y ago
Ghidra is a fine example from the US government.
118.
▲
by
pcwalton
2y ago
Chrome does prohibit ad blockers on mobile.
119.
▲
by
pcwalton
2y ago
Arguably, Stack Clash is just a compiler bug--recursive code shouldn't be able to jump the guard pages. This was fixed in Clang in 2021 [1], in GCC even earlier, and in MSVC earlier than that. [1]: https://blog.llvm.org/
120.
▲
by
pcwalton
2y ago
That warning doesn't ensure that there's no recursion, as the caveats point out. Indeed, it's trivial to show that ensuring there's no recursion is impossible as long as you have function pointers. (This is also why lang
More ›