Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
541.
▲
by
Joker_vD
9mo ago
Regular expressions as we basically now them today were made for ed. In that context, '$' absolutely had to match the terminating newline or it would've been completely useless.
542.
▲
by
Joker_vD
9mo ago
Which is why I personally filed off the VIN from my car's engine.
543.
▲
by
Joker_vD
9mo ago
Well, if you're fine with using 3-year old versions of those libraries packaged by severely overworked maintainers who at one point seriously considered blindly converting everything into Flatpaks and shipping those simply because th
544.
▲
by
Joker_vD
9mo ago
Like, seriously. It's impossible to run Erlang/OTP 21.0 on a modern Ubuntu/Debian because of libssl/glibc shenanigans so your best bet is to take a container with the userspace of Ubuntu 16 (which somehow works just fine
545.
▲
by
Joker_vD
9mo ago
No you can't. If a user can read something, it can execute it. The only thing where it matters is setuid applications where the setuid bit allows the user to run an application as someone else . But it's already a separate permis
546.
▲
by
Joker_vD
9mo ago
Honestly, sometimes I just want to mark all files on a Linux system as executable and see what would even break and why. Seriously, why is there a whole bit for something that's essentially an 'read permission, but you can also di
547.
▲
by
Joker_vD
9mo ago
It's small, but not unnoticeable... depending on the exact size of the workload and the amount of computation per element. In fact, for huge arrays it may be beneficial to have structs packed if that leads to less memory traffic. [0]
548.
▲
by
Joker_vD
9mo ago
Do I understand it correctly that the logic is that if timestamp B is above timestamp A, but the difference is more than half of the unsigned range, B is considered to happen before A?
549.
▲
by
Joker_vD
9mo ago
They've meant something like "arbitrary", in its "without any good/justifiable reason" sense. The word "random" is also used in this sense, especially when talking about human-made decisions.
550.
▲
by
Joker_vD
9mo ago
Every time I see yet another dotfile-management solution I just can't help but wonder: maybe it's the dotfiles that are the problem?
551.
▲
by
Joker_vD
9mo ago
That ship has sailed 30 years ago.
552.
▲
by
Joker_vD
9mo ago
There are still I/O libraries that play with read/write buffers really fast & dirty, which C standard explicitly allows for with its "However, output shall not be directly followed by input without an intervening call t
553.
▲
by
Joker_vD
9mo ago
There is. For example, four months ago [0] they've accidentally stumbled upon about an explicitly documented quirk of SQLite file format. [0] https://news.ycombinator.com/item?id=45101854
554.
▲
by
Joker_vD
9mo ago
> I don't know how it works today, but IIRC colorization by GNU ls(1) used to require an explicit option, --color, typically added through an alias in default interactive shell configs, rather than ls automatically enabling it by de
555.
▲
by
Joker_vD
9mo ago
> programs could have their output connected to all sorts of sinks (terminal, file, GUI, web content) without carrying baggage related to those sinks' behaviors. We already have this. The TTY itself is not very special at all. It&#x
556.
▲
by
Joker_vD
9mo ago
> markets have successfully run the entire global economy for thousands of years Markets, as they are understood today, are more like about 300 years old, even less in some places. The bulk of world economy has been sustenance farming fo
557.
▲
by
Joker_vD
9mo ago
Well, we didn't, for obvious reasons, patch JVM to manually finagle with physical memory allocation — which it probably wouldn't be able to do anyway, being run in a container.
558.
▲
by
Joker_vD
9mo ago
> I am not sure if there is a better way to find the fastest code path besides "measure on the target system", which of course comes with its own challenges. Yeah, and it's incredibly frustrating because there is almost z
559.
▲
by
Joker_vD
9mo ago
> Enough "Market for all the things" already.. See, there are two major flavours of pro-market attitudes. The first one is "if we allow many independent individuals to try their own approaches to a problem and let the pe
560.
▲
by
Joker_vD
10mo ago
Just as any "plain blob storage" eventually evolves a hierarchical filesystem (but with silly quirks!) on top of it.
561.
▲
by
Joker_vD
10mo ago
Yes, actually: $ cat kekw.zc include <stdio.h> fn main() { var f = fopen("file.txt", "r"); defer fclose(f); var ch: byte; if fread(&ch, 1, 1, f) <= 0 {
562.
▲
by
Joker_vD
10mo ago
From what I can see in the codegen, defer is not implemented "properly": the deferred statements are only executed when the block exits normally; leaving the block via "return", "break", "continue" (i
563.
▲
by
Joker_vD
10mo ago
> Someone has to build those. Well, yes? That means those "someones" are not building something else instead.
564.
▲
by
Joker_vD
10mo ago
Some architectures had CALL that was just "STR [SP], IP" without anything else, and it was up to the called procedure to adjust the stack pointer further to allocate for its local variables and the return slot for further calls.
565.
▲
by
Joker_vD
10mo ago
> There is no reason why the C/C++ stack can't grow up rather than down. Historical accident. Imagine if PDP-7/PDP-11 easily allowed for the following memory layout: FFFF +---------------+ | text |
566.
▲
by
Joker_vD
10mo ago
There is also a problem of nested virtualization. If the VM has its own "imaginary" page tables on top of the hypervisor's page tables, then the number of actual physical memory reads goes from 4–6 to 16–36.
567.
▲
by
Joker_vD
10mo ago
I mean, if the stacks grew upwards, that alone would nip 90% of buffer overflow attacks in the bud. Moving the return address from the activation frame into a separate stack would help as well, but I understand that having an activation fra
568.
▲
by
Joker_vD
10mo ago
Regions, like [0], for example? Multi-level page tables kinda suck. [0] https://web.archive.org/web/20250321211345/https://www.secur...
569.
▲
by
Joker_vD
10mo ago
const int backupIntervalHours = 24 const int approxBackupDurationHours = 2 const int wiggleRoomHours = 2 const int ageAlertThresholdHours = backupIntervalHours + approxBackupDurationHours + wiggleRoomHours; static_as
570.
▲
by
Joker_vD
10mo ago
The USA does not have jurisdiction outside the US borders. Shocking, I know. But it doesn't, so the charges of "possession of machineguns" [0] is an utter bullshit. Talk about kangaroo courts... [0] https://xcancel
More ›