Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
anyfoo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
451.
▲
by
anyfoo
2y ago
Well, some of these processes did a lot , didn’t they? Sadly, Windows also does or did a lot in the kernel that should actually happen as a process in userspace.
452.
▲
by
anyfoo
2y ago
> When dedup is enabled [...] every single write and free operation requires a lookup and a then a write to the dedup table, regardless of whether or not the write or free proper was actually done by the pool. Linked clones shouldn’t nee
453.
▲
by
anyfoo
2y ago
Did the POSIX security model (users, file permissions) also impact your “computing freedom”? Is your CPU constantly running in kernel mode? Do you have all physical memory mapped into all address spaces, and as read/write/executab
454.
▲
by
anyfoo
2y ago
I mean, you still can shut it off, but it’s really pretty unnecessary nowadays. Sleep mode has gotten very reliable and efficient. In deeper power states devices don’t draw much current at all, and still wake up transparently instantly. Peo
455.
▲
by
anyfoo
2y ago
I find their point pedantic, but I tend to think it is correct. The "standard library" of a language is the library that comes with the language itself, usually across all platforms, and that rarely contains anything UI-wise bey
456.
▲
by
anyfoo
2y ago
Then give that piece of code extra-special permissions. As I’ve said in another comment, the days where you downloaded your software from the sunsite or tsx11.ai.mit.edu FTP servers and could be confident that it and all its dependencies we
457.
▲
by
anyfoo
2y ago
Pretty sure this specific thing is under similar restrictions on macOS.
458.
▲
by
anyfoo
2y ago
xz wasn’t “user hostile”, and so weren’t countless other pieces of software affected by supply chain attacks. Nothing is hobbled if you can give it explicit permission (which you may well do on xeyes). The days where you downloaded your sof
459.
▲
by
anyfoo
2y ago
Hopefully only if the given app has focus.
460.
▲
by
anyfoo
2y ago
That’s actually something you don’t want nowadays. A random app like xeyes should not be able to know mouse position at all times, for privacy reasons. (Unless you very explicitly gave xeyes super-extra permission to do that.) We’ve long st
461.
▲
by
anyfoo
2y ago
Oh yeah, I didn’t mean to imply that the pops are a necessary consequence of buffer overruns. But as you say, gracefully mitigating the symptom requires non-negligible engineering effort (and potentially resources), when the actual problem,
462.
▲
by
anyfoo
2y ago
Even if the buffer is large enough, at some point (i.e. a long enough meeting in this case), it will fill up. > (Now, why does it produce a pop as opposed to silence/hiccup/stretched sound? probably because it was easiest to co
463.
▲
by
anyfoo
2y ago
> What I don't understand, is why the upstream audio doesn't just buffer while the downstream thing processing it is blocked. Why should that result in audible artifacts, can't it just catch up with the rest of the buffer
464.
▲
by
anyfoo
2y ago
I love APL. For a somewhat more modern, smaller take, try this: https://mlochbaum.github.io/BQN/
465.
▲
by
anyfoo
2y ago
There is (fortunately) no rule that replies have to be explicit responses to anything in the article. Tangents are welcome in my mind.
466.
▲
by
anyfoo
2y ago
I just wanted to point out that some unixoid systems (even some who are actually UNIX certified, but that's not really relevant to the issue) employ protection of temporary files stronger than what was suggested in TFA. The container
467.
▲
by
anyfoo
2y ago
On my phone? Tons. My phone has a boatload of data, and I readily install apps. I don't want one rogue update of a rarely used app (supply chain attacks are very real as we know) to get access to all my text messages and email, or to w
468.
▲
by
anyfoo
2y ago
Yeah, that's why I think the prime feature of tmpfs is more ephemerality than anything else.
469.
▲
by
anyfoo
2y ago
How much is 1 GB*0 bytes? Better serve 1GB of /dev/zero instead! (Or even better, /dev/urandom, because zeroes compress very well and are easy to spot.)
470.
▲
by
anyfoo
2y ago
True overall, but I think it makes a lot of sense to evict rarely used data in tmpfs to swap, so that the DRAM it occupied can be used for valuable caches instead of holding some obscure temporary data that will be rarely or ever accessed.
471.
▲
by
anyfoo
2y ago
Ideally you have swap, so that stuff that's not actually in use ends up in swap instead of occupying physical memory. That's why you still usually see machines with unreasonable amounts of GB of RAM having swap partitions: Instead
472.
▲
by
anyfoo
2y ago
This has been iOS's (and macOS's, for native apps) model for a long time, yeah. "Multiuser" computers are not common anymore, but computers with a bunch of apps/code that you put different levels of trust in (especi
473.
▲
by
anyfoo
2y ago
iOS and macOS go further and separate their (native) apps almost entirely, including temporary files. That way, if you download "Super Free VPN Pro!!", it at least doesn't get access to, say, photos, temporary data or not.
474.
▲
by
anyfoo
2y ago
> Yes, /tmp/ is a security nightmare on multi-user systems, but those are a rarity nowadays. What's not a rarity though is apps (or code in general) that you don't fully trust, and that you don't want to give a c
475.
▲
by
anyfoo
2y ago
The implicit coercion and its weird behavior is absolutely a major footgun, not just fodder for the “wat” video. It’s something that can get you into serious trouble quite easily if left unchecked, for example by just looking at a list wron
476.
▲
by
anyfoo
2y ago
Okay, I stand corrected. So this prototype didn’t ship, or did it ship and evolve? Brendan Eich himself calls JS a “rush job” and with many warts though, having had to add aspects that in retrospect he wouldn’t have. This snippet from your
477.
▲
by
anyfoo
2y ago
I’d normally agree with you, but JS is more or less designed to be terrible. It was hacked together by Brendan Eich in literally 10 days, who originally wanted to do something more Scheme-like. It was a quick and dirty hack that got stretch
478.
▲
by
anyfoo
2y ago
You optimize the constant factors, e.g. the runtime of the inner loops. But this requires you to choose a sane algorithm in the first place. Some problems are much more complicated, where you have to take, for example, locality (cache hiera
479.
▲
by
anyfoo
2y ago
I don't feel it's so much typing. Especially for the clarity and, most importantly, safety and correctness I get back. I'd rather type 3 1/2 seconds more than debug a dumb type issue for half an hour. It gets really ol
480.
▲
by
anyfoo
2y ago
What makes you think they're not? I don't know why these tools are sluggish, but I disagree with the notion that algorithms don't matter for "real-world software engineering". The world is full of slow software beca
More ›