Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kibwen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
751.
▲
by
kibwen
10mo ago
Sure, but let's be clear: it's a tradeoff. If every program reserved as much memory at startup as needed to service 100% of its theoretically-anticipated usage, the amount of programs we could run in parallel would be drastically
752.
▲
by
kibwen
10mo ago
> On modern OSes, you probably aren't "taking it away from other processes" until you actually use it. But if you're assuming that overcommit is what will save you from wasting memory in this way, then that sabotage
753.
▲
by
kibwen
10mo ago
> It’s the only kind of program that can be actually reasoned about. Theoretically infinite memory isn't really the problem with reasoning about Turing-complete programs. In practice, the inability to guarantee that any program wi
754.
▲
by
kibwen
10mo ago
Yes, thanks to a trillion-dollar digital advertising and propaganda industry strip-mining our attention spans for profit.
755.
▲
by
kibwen
10mo ago
> What I find interesting with these transition delimiters is their frequent pairing with an adjective that characterizes the speaker [...] That would explain why he continuously and repeatedly uses them across both poems. You don'
756.
▲
by
kibwen
10mo ago
To be fair, that's just an artifact Python's chosen design. A different language could make it so that acquiring the object whose context is being managed could require one to use the context manager. For example, in Python terms,
757.
▲
by
kibwen
10mo ago
Nope, it's Venus that we're racing towards.
758.
▲
by
kibwen
10mo ago
Windows is horrible, yes. But Linux definitely isn't "just as bad" as MacOS, it's already better, and it keeps getting better every year while MacOS keeps getting worse.
759.
▲
by
kibwen
10mo ago
Using Dye as a scapegoat feels like cope. The rest of the executives were fully content with this effort, and in the end he wasn't even forced out. There's no evidence that Apple will correct its course without him.
760.
▲
by
kibwen
10mo ago
I'll disagree here. I'd much rather have a Python-style context manager, even if it introduces a level of indentation, rather than have the sort of munged-up control flow that `defer` introduces.
761.
▲
by
kibwen
10mo ago
Don't get me started on colour , caused by the English aristocracy distorting the Latin/Old French color just to look fancy.
762.
▲
by
kibwen
10mo ago
This control flow is wacky. Please never do this.
763.
▲
by
kibwen
10mo ago
It's easy to demonstrate that destructors run after evaluating `return` in Rust: struct PrintOnDrop; impl Drop for PrintOnDrop { fn drop(&mut self) { println!("dropped"); } }
764.
▲
by
kibwen
10mo ago
It's worth emphasizing this: without the US Navy, the remaining European powers don't have the naval force to stop Russia from blockading the Baltics. And without the ability to break such a blockade, there's little hope in a
765.
▲
by
kibwen
10mo ago
It's worse than having to parse a matching bracket, because any context where you have an item defined via nested brackets is going to be a subset of this use case. But yes, that doesn't mean you couldn't do some theoretical
766.
▲
by
kibwen
10mo ago
Cargo is fantastic... for building Rust code. Once you start trying to also use it to build C code, you're moving outside of Cargo's wheelhouse, using features that Cargo only supports begrudgingly (like build scripts). Cargo is d
767.
▲
by
kibwen
10mo ago
I mean, it's sort of the other way around. Cargo was built to be able to natively understand git-based dependencies, in the sense that you can bypass a crate registry and instead just point it directly at a git repo. That means that Ca
768.
▲
by
kibwen
10mo ago
No, crates.io isn't locked to Github. crates.io uses Github as an identity provider, but there's nothing stopping them from adding more. Furthermore, they've avoided tying themselves to Github in other ways, for example, by r
769.
▲
by
kibwen
10mo ago
I'm not sure if it even makes sense for a TOML file to be "read incrementally", because of the weird feature of TOML (inherited from INI conventions) that allow tables to be defined in a piecemeal, out-of-order fashion. Here&
770.
▲
by
kibwen
10mo ago
> This is interesting in that I wouldn't expect that the typical resolution involves a particularly large quantity of TOML. I don't know the details of Python's resolution algorithm, but for Cargo (which is where epage i
771.
▲
by
kibwen
10mo ago
Appears to mostly work in Firefox, including in the browser tab title, which is funny.
772.
▲
by
kibwen
10mo ago
> They’re not the ones bearing the cost. Customers are. I think this is uncharitably erasing the context here. AFAICT, the reason that Helldivers 2 was larger on disk is because they were following the standard industry practice of del
773.
▲
by
kibwen
10mo ago
Learning to read Roman numerals is secretly an exercise in mental arithmetic. You're summing numbers in your head as you go, and occasionally you'll need to keep that sum off to the side while you subtract a second number from a t
774.
▲
by
kibwen
10mo ago
Can you be more specific? What language complexity are you referring to? Plenty of things in this post are hypothetical, not actual features being surfaced by the language.
775.
▲
by
kibwen
10mo ago
I'm hoping that languages move away from the sigil-ified legacy of C treating pointers as special syntax and just start calling these `Ref<T>`, `PtrConst<T>`, etc.
776.
▲
by
kibwen
10mo ago
For the purposes of the article, git isn't just being used as a database, it's being used as a protocol to replicate the database to the client to allow for offline operation and then keep those distributed copies in sync. And eve
777.
▲
by
kibwen
10mo ago
I think there's a form of survivorship bias at work here. To use the example of Cargo, if Rust had never caught on, and thereby gotten popular enough to inflate the git-based index beyond reason, then it would never have been a problem
778.
▲
by
kibwen
10mo ago
> Why isn’t there a variant of &mut that doesn’t allow swapping the value? This is a very insightful observation, and Niko Matsakis (leading influence of Rust's borrow checker) would likely agree with you that this is an insta
779.
▲
by
kibwen
10mo ago
> Incidentally, I recently posted in another thread here how I just discovered the 'named loop/scope feature, and how I thought it was great, but took a while to discover. A reply was along the effect of "That's not
780.
▲
by
kibwen
10mo ago
I'm not sure what this is arguing against here. Anyone who follows Rust knows that it's relatively modest when it comes to adding new features; most of the "features" that get added to Rust are either new stdlib APIs or
More ›