Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
931.
▲
by
Joker_vD
2y ago
> I prefer "ought to" I too like when others use it, since a very easy and pretty universal retort against "you ought to..." is "No, I don't owe you anything".
932.
▲
by
Joker_vD
2y ago
Pfft, you know how tests for functions like this: func MonthToString(month int) string { switch month { case 1: return "January" case 2: return "February" ... case 10: return
933.
▲
by
Joker_vD
2y ago
> no one calls it x64 except for Microsoft. And even though it is fairly prevalent on Windows, I absolutely give my gamedev friends a hard time when they write x64. So, it turns out, actually a lot of people call it x64 — including aut
934.
▲
by
Joker_vD
2y ago
> IO can’t be unit tested hence why you mock it. Say, I have this module that uses a private MongoDB as a cache. Its unit tests spin up a standard MongoDB container and use it (and then tear it down). Are they still unit tests or should
935.
▲
by
Joker_vD
2y ago
It seems "vibe electronics" have arrived way earlier than "vibe coding" did.
936.
▲
by
Joker_vD
2y ago
Always was puzzled by this "use present/imperative" prescription, to be fair. Shouldn't the messages about the past work be preterite/simple past? "Added support for OpenFizz 3.1", "Fixed FOO-2123 wit
937.
▲
by
Joker_vD
2y ago
I am fine with compiler pointing out broken code. I am not fine with people saying "The code with side effects must be segregated from the pure code, with the typechecker in place to maintain this separation, and we must also keep CONS
938.
▲
by
Joker_vD
2y ago
> The idea here is not that side effects are bad, but that we want to know where they happen and combine them safely. Yeah, the idea is not that people gathering together in groups more than two and/or past the 21:00 is bad, but tha
939.
▲
by
Joker_vD
2y ago
Well. To repurpose you knife analogy, they (we?) duct-taped a knife on an erratic, PRNG-controlled roomba and now discover that people are getting their Achilles tendons sliced. Technically, it's all functioning exactly as intended, bu
940.
▲
by
Joker_vD
2y ago
Well, "trusted" in the strict CompSec sense: "a trusted system is one whose failure would break a security policy (if a policy exists that the system is trusted to enforce)".
941.
▲
by
Joker_vD
2y ago
It's not unusual at all, it's just... should it be exposed? I personally prefer having "Node struct with next pointer + inlined generic data" design when it can be encapsulated away since, well, it can be encapsulated aw
942.
▲
by
Joker_vD
2y ago
And haven't people actually rewritten Kubernetes in Go? I vaguely recall it was originally written in Java.
943.
▲
by
Joker_vD
2y ago
Now, my toy programming languages all share the same "ensureCharLegal" function in their lexers that's called on every single character in the input (including those inside the literal strings) that filters out all those ch
944.
▲
by
Joker_vD
2y ago
Yeah, there are all sorts of nifty little tricks about compressing the enums, Appel dedicates a huge chunk of section "4.1. Data representation" on it in his "Compiling with Continuations" book about the internals of the
945.
▲
by
Joker_vD
2y ago
Ah, don't you just like it when projects that use hashsums, calculate them in such a way that you can't actually recalculate them on your own? And when you start digging, you find not only that it uses the same basic design of XML
946.
▲
by
Joker_vD
2y ago
Sorry, my comment was intended to be reply to the one of yours that said I/O is done piecewise, a line at a time. The file is never "loaded up". Again you're applying an intuition about how parsers are presente
947.
▲
by
Joker_vD
2y ago
The SSHD internally has a config structure. Initially, it's all initialized with -1 for flags/numbers/timeouts, and with NULL for strings. When an option is parsed, there is a check whether the config structure's corresp
948.
▲
by
Joker_vD
2y ago
Nope, the actual ssh implementation parses all the config files once, at the startup, using buffered file I/O and getline(). That means that on systems with modern libc, the whole config file (if it's small enough, less than 4 KiB
949.
▲
by
Joker_vD
2y ago
But shouldn't the planet start with a small, solid core (which would have always been solid due to the immense pressure), surrounded by the liquid magma, which is then in turn surrounded by the solid layer of crust (which solidified du
950.
▲
by
Joker_vD
2y ago
Besides, there is another way, which is just as stupid: just ban everyone. No more video games, ever. And there you go: no more cheating in video games.
951.
▲
by
Joker_vD
2y ago
But... humans kinda behave the same? Your FPS is 50/60 Hz and your reactions are pretty much tied to it; and human behaviour is a pretty lousy RNG, that's been known for ages. > A bot running on random pixel events with perfect
952.
▲
by
Joker_vD
2y ago
Go's behaviour never made much sense because, unlike JS/C#/Java, Go has pointers. So if you really want to capture the variable itself and not its current value at the specific iteration, you can (and should) just capture t
953.
▲
by
Joker_vD
2y ago
A program invoking some other the program that the user themself consciously have installed on their system (and put into the PATH) is not a security risk per se, it's literally UNIX Way™ working as intended.
954.
▲
by
Joker_vD
2y ago
But the sl is not invoked by you . It is invoked by some npm module (a 5-times-removed dependency from any side) which hopes that either there is "sl" in the $PATH and it is the Sapling CLI, or there is no "sl" in the $
955.
▲
by
Joker_vD
2y ago
Completely understandable, it's just... it's just not in the cards. A large part of UNIX ecosystem has not, historically, been kind to this view. Remember autotools/autoconf, makefiles with DESTDIR, and all that similar jazz?
956.
▲
by
Joker_vD
2y ago
How would knowing the full path help you anyway? It's either in "/usr/bin/sl", or "/usr/local/bin", or "~/.local/bin", now what? By the way, believe it or not, POSIX
957.
▲
by
Joker_vD
2y ago
"That's just, like, your opinion, man". There is another school of thought that postulates that an app should use whatever tools that exist in the ambient environment that the user has provided the app with, instead of pullin
958.
▲
by
Joker_vD
2y ago
> And if instead you’re one of those people who constitutionally hates everything, then you spend eternity writing thinkpieces with titles like “Can We As A Society Finally Shut Up About Golden Mountains?” or “Do The Wrong Type Of People
959.
▲
by
Joker_vD
2y ago
Just yesterday saw this great example: [0]. [0] https://grumpy.website/1642
960.
▲
by
Joker_vD
2y ago
> Traditional economics might predict that AI-boosted productivity would reduce working hours, a four-day weekend for tasks that once took five days. The funny thing is, there have been precedents: invention of typewriters/telephone
More ›