Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
181.
▲
by
simonask
5mo ago
I’m writing some C# code at the moment, and the fact that `ObjectDisposedException` exists should give you a clue that “consume” semantics are desirable in all languages. It opens up entirely new avenues for statically error-free programmin
182.
▲
by
simonask
5mo ago
It bothers me too, maybe for different reasons, as an experienced rustacean. Code like this is a world of pain (in any language, might I add, even though Rust is the only one that shows you why with the syntax). Internally shared ownership
183.
▲
by
simonask
5mo ago
There isn’t any operating system or compiler that does this today, and it probably isn’t worth it to pursue. Enlarging the stack via page fault is really expensive, so you would need really advanced heuristics to prevent repeatedly unmappin
184.
▲
by
simonask
5mo ago
I'm so tired of this, it's such a lazy take. "The West" is a giant, incongruous collection of wildly disparate nations and cultures with wildly different circumstances, policies, histories, and cultures. It feels a lot l
185.
▲
by
simonask
5mo ago
Stack memory is never unmapped until the thread terminates as far as I know. I don’t know of any kernel that does this, for precisely the reason you arrive at by the very last sentence.
186.
▲
by
simonask
5mo ago
I agree with you, but the big difference between function arguments and effect systems is that the tools we have for composing functions with arguments are a lot simpler to deal with than the tools we have for composing effects. You could i
187.
▲
by
simonask
5mo ago
The amount of stack you pay for on a thread is proportional to the maximum depth that the stack ever reached on the thread. Operating systems can grow the amount of real memory allocated to a thread, but never shrink it. It’s a programming
188.
▲
by
simonask
6mo ago
I really like Ruby. It had a formative impact on my young programmer self, particularly the culture. So much joyful whimsy. But like... something like a font renderer in Ruby? The thing that is incredibly cache sensitive and gets run millio
189.
▲
by
simonask
6mo ago
I don’t use any KDE apps, but the Plasma desktop has been absolutely rock solid and super performant for me. I do think that the idea that each toolkit has its own native app for each thing you might want to do with a computer is a recipe f
190.
▲
by
simonask
6mo ago
The author's name is Kamilla. She was born in 2004 (according to the article).
191.
▲
by
simonask
6mo ago
The idea that something can simultaneously be "woke [and] leftist" and somehow still defined by its attachments to corporations is a baffling expression of how detached from reality the US political discourse is. The rest of the w
192.
▲
by
simonask
6mo ago
Please tell me this also means that they are redirecting the expenses currently going to Microsoft into funding open source development?
193.
▲
by
simonask
6mo ago
Yeah, coming to C# from Rust (in a project using both), I’ve been extremely impressed by the capabilities of Span<T> and friends. I’m finding that a lot of code that would traditionally need to be implemented in C++ or Rust can now be
194.
▲
by
simonask
6mo ago
C# has a unique powerful position in the video game space. In almost every other niche, there are better (or just trendier) solutions, but C# is the only major language that actually gives you a combination of features that are important in
195.
▲
by
simonask
6mo ago
The .NET JIT compiler absolutely does query CPUID flags and generates different optimized code depending on available features, as well as the performance profile of each CPU model. This is similar to always passing `-march=native` to GCC.
196.
▲
by
simonask
6mo ago
The inconvenient truth here is also that following the system theme is an anti-feature for most apps. On the desktop, you want your app window to be recognizable at a glance, meaning the primary color should be the brand color, etc. I curre
197.
▲
by
simonask
6mo ago
How is bad UX in the YouTube app Apple's fault? You can mess up Android's back button as well.
198.
▲
by
simonask
6mo ago
FWIW, x86 has always been a pretty moving target with many instruction set extensions, especially for various SIMD features. But even something fundamental like `popcnt` has a separate CPUID flag, even though Intel considers it part of SSE4
199.
▲
by
simonask
6mo ago
I think this just says that TypeScript and C# are more similar languages than either is to Rust, which I would agree with. Rust's learning curve is not steep at all if you're coming from C or C++. C# also has a pretty steep learni
200.
▲
by
simonask
6mo ago
I mean, these are in the same file almost all the time anyway, and in that case all it gives you is an extra level of indentation. I don't think it's nicer at all.
201.
▲
by
simonask
6mo ago
C# is nice, but it is nowhere near Rust in terms of safety or expressiveness. Thankfully they are finally adding discriminated unions (sum types) and other sorely missing features. Unsafe in C# is much more dangerous than unsafe in Rust, pr
202.
▲
by
simonask
6mo ago
There are several reasons. 1. Struct fields are really important in Rust because of auto-traits. Your life as a Rust programmer is easier if all fields fit on the screen, because one of them may be the reason your struct is `!Sync` or whate
203.
▲
by
simonask
6mo ago
Or they can be a nice person and pay me for the work I do that only benefits them?
204.
▲
by
simonask
6mo ago
I've also never had any trouble with NVIDIA on the desktop. I think most issues people have are on laptops, which have odd hybrid/dual GPU setups, and which exercise suspend/hibernate much more aggressively.
205.
▲
by
simonask
7mo ago
Interesting, thanks for explaining. > (although not an immediate memory corruption issue the way it could be in Rust) Just to note, all of Rust's standard container types are designed such that they guarantee that buggy implementati
206.
▲
by
simonask
7mo ago
It’s not really about OS differences - as the GP said, games don’t typically use a lot of OS features. What they do tend to really put a strain on is GPU drivers. Many games and engines have workarounds and optimizations for specific vendor
207.
▲
by
simonask
7mo ago
Glad to hear you came out alright. I’ll offer this argument: Society aggressively tells overweight people that it is bad to be overweight, in no uncertain terms, and with significant repercussions. Yet overweight people exist. Hence, the st
208.
▲
by
simonask
7mo ago
No, I used it as a euphemism for “fascist”, which is a somewhat stronger descriptor than simply “wrong”. The notion that the deeply oppressive status quo is somehow fair and just is one of the worst post-hoc rationalizations that purportedl
209.
▲
by
simonask
7mo ago
One strategy I like is to declare “view” types for serialization and deserialization, because you’re going to be doing that anyway if your serialized format is meant to be compatible across versions anyway. Serde also comes with a bunch of
210.
▲
by
simonask
7mo ago
I bow to them and thank them for their service!
More ›