Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
661.
▲
by
Joker_vD
1y ago
The first compilers were called "translators". The first linker/loader (kinda, A-0 was a... strange tool, by modern standards) was actually called "compiler", precisely because of the generic meaning of the word &qu
662.
▲
by
Joker_vD
1y ago
Honestly, that's been the standard form of FOR loops since Fortran and Algol-60 until C decided to spice things up.
663.
▲
by
Joker_vD
1y ago
Mo, we were talking about what would be reasonable semantics for the interaction of two features in a high-level programming language Java; the semantics of bytecode doesn't really matter in this case. The precedent for that would be t
664.
▲
by
Joker_vD
1y ago
> Zig does not have a way to iterate through a slice or similar in any way except one-at-a-time forwards. Anything else? You're using a while loop, and you'll enjoy it. INCR[U] i FROM 0 TO len(arr) [BY 1] DO ... DECR
665.
▲
by
Joker_vD
1y ago
> return is not a single statement. It is a single statement. It's just that executing it contains of two parts: evaluating the expression, and the non-local transfer of control ― and the weird part is that this control transfer ca
666.
▲
by
Joker_vD
1y ago
> It is part of similar conventional thinking that "a method call must return back to the caller on termination". No, it's a part of a conventional thinking that "if a return statement executes without any exceptions
667.
▲
by
Joker_vD
1y ago
No, it's not executed before the return, it's executed in the middle of it, so to speak: class Main { static int f() { System.out.println("f()"); return 1; } static int g() { System.out.println(&quo
668.
▲
by
Joker_vD
1y ago
It messes with the semantics of "return" statement. The conventional intuition is that right after a "return" statement completes, the current method's invocation ends and the control returns to the caller. Unfortun
669.
▲
by
Joker_vD
1y ago
> We’ll go into the SysV recommendation of “double forking” SysV init can not handle daemons that double-fork. Neither could BSDs up until somewhat recently. Just let your systems "service manager" deal with that on your own, s
670.
▲
by
Joker_vD
1y ago
Doesn't JRE has some limited form of decompilation in its JIT, as a pre-pass? IIRC, it reconstructs the basic blocks and CFG from the bytecode and does some minor optimizations before going on to regalloc and codegen.
671.
▲
by
Joker_vD
1y ago
> However, there’s still one issue: Backup only calls Save, yet the Storage interface includes both Save and Load. If Storage later gains more methods, every fake must grow too, even if those methods aren’t used. First, why would you eve
672.
▲
by
Joker_vD
1y ago
The word "Providence" means "an influence that is not human in origin and is thought to control people's lives", or "God conceived as the power sustaining and guiding human destiny", or something like that
673.
▲
by
Joker_vD
1y ago
Shouldn't having a freelist and pushing and popping blocks of memory to and from it for re-use count as a form of memory allocation?
674.
▲
by
Joker_vD
1y ago
#define _H4X0R_CONVERT_ONE(arg) \ ((union { unsigned long long u; void *v; }){ \ .u = (unsigned long long)arg, \ }).v Couldn't this be just #define _H4X0R_CONVERT_ONE(a
675.
▲
by
Joker_vD
1y ago
Honestly, it feels like something like this should have been put in the standard instead of all the English prose that ended in the section about the preprocessor expansion. Yeah, it's not pretty, but at least it requires way less skil
676.
▲
by
Joker_vD
1y ago
Well, it does what it does because it's shaped like itself.
677.
▲
by
Joker_vD
1y ago
How about asking Las Vegas instead? It's pretty close to Nevada Test Site, isn't it?
678.
▲
by
Joker_vD
1y ago
> Kitty and Ghostty are the only terminals that correctly support Variation Selector 15, Really? Because IIRC they "support" it by treating the preceding emoji character as being Narrow instead of Wide. This is completely unsup
679.
▲
by
Joker_vD
1y ago
Well, have you been on, I don't know, TV Tropes? They have those long lists, that are separated into "folders" on a single page. You can click on those "folders" to expand/collapse them, and it's implement
680.
▲
by
Joker_vD
1y ago
> 1. This element does not announce itself as an interactive element to screen reader users. It has the "onclick" property set though. The other two points are pretty valid, however. It's a shame we don't have a prope
681.
▲
by
Joker_vD
1y ago
Somewhat interesting, 123456789 * 8 is 987654312 (the last two digits are swapped). This holds for other bases as well: 0x123456789ABCDEF * 14 is 0xFEDCBA987654312. Also, adding 123456789 to itself eight times on an abacus is a nice exercis
682.
▲
by
Joker_vD
1y ago
> Leaving the handling of the loop to the method allows us to add behaviour to loops that are controlled by the object and not by the user. This is a nice way to add side-effects. No, it's an absolutely horrible way to "add sid
683.
▲
by
Joker_vD
1y ago
The high-end CPU designs, be it ARMv7, AArch64, RISC-V or x86(-64), have parallelized pre-decoding hardware and buffers for decoded microinstruction because it too, apparently, speeds the execution. From what I understand, the differences i
684.
▲
by
Joker_vD
1y ago
Hey, if you can't write "ADD [r0], r1" but have instead to do "LDR r2, [r0]; ADD r2, r1; STR [r0], r2", it means it's still RISC.
685.
▲
by
Joker_vD
1y ago
Yeah, you can do all of that. But normally, you can (in fact, have to ) chose a much more pragmatic computing substrate instead of graph-rewriting, so unless you're trying to poke at the theoretical limits of what is computability, it
686.
▲
by
Joker_vD
1y ago
Basically Algol, but with gratuitous "SET" to simplify parsing assignment statements, and without generic "BEGIN" braces: those are baked into "DO"/"THEN"/"ELSE". You can probably
687.
▲
by
Joker_vD
1y ago
It's always amusing to see takes like perpetuating the self-serving myth that “open source” software can privilege one party over anyone else and still be called open source. from someone who is absolutely okay with doing exac
688.
▲
by
Joker_vD
1y ago
Nah, it's fine . It's Open Source, you can document it yourself if you need to! But there is no obligation from the MinIO authors to provide it, you're not entitled to it.
689.
▲
by
Joker_vD
1y ago
From [0]: Like, I have been transformed into ChatGPT. I can't go back to college because all of my writing comes back as flagged by AI because I've written so much and it's in so many different data sets that it just ke
690.
▲
by
Joker_vD
1y ago
I imagine a bidet would be able to provide enough water for a tiny hydro turbine to sustain the battery charge.
More ›