Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
301.
▲
by
teo_zero
1y ago
Sorry but you didn't just reformatted it, you added new variables and return statements that were not in the original code (and even introduced bugs like row 41). As of short variable names, I'd argue that they are actually more r
302.
▲
by
teo_zero
1y ago
> Then for the white keys, [...] append some extra stuff on the sides of their fronts so the white keys' fronts' all have one same width as well. There's no way you can achieve that.
303.
▲
by
teo_zero
1y ago
What I don't like is that some functions take as arguments a mix of StringBuffer's and regular C strings. This is confusing. For example why this: void StringBuffer_replace(StringBuffer *buf, const char *original, cons
304.
▲
by
teo_zero
1y ago
Now I see it. Thank you. What I still don't understand is how this can be used to have the remote host give me responses that I couldn't have calculated myself locally, because all the data is stored in the cloud, not locally (tha
305.
▲
by
teo_zero
1y ago
> For space optimization an ideal growth factor is 1+1/√(length) > return length + approx_sqrt(length); They don't seem the same. Should one take the root or its reciprocal?
306.
▲
by
teo_zero
1y ago
And since you're asking, beware of "let's" too: the third one is wrong!
307.
▲
by
teo_zero
1y ago
> IsOdd(E(x)) = E(x) mod 2 I don't get this. Did you mean IsOdd(E(x)) = x mod 2 But who provides such function? In the case of a web search,the function is the search engine. I expect Google to provide it, not the user: the refineme
308.
▲
by
teo_zero
1y ago
I think the opening example involving Google is misleading. When I hear "Google" I think "search the web". The articles is about getting an input encrypted with key k, processing it without decrypting it, and sending bac
309.
▲
by
teo_zero
1y ago
Right. But if we replace 'paper' with 'webpage' the parent post is still relevant.
310.
▲
by
teo_zero
1y ago
I strongly agree. I have mixed feelings about Neovim adopting multicursor. Doesn't setting multiple cursors and then acting on them belong in the noun-verb camp? Unless you call it multivisual, of course!
311.
▲
by
teo_zero
1y ago
Does zed have anything like the 'locals' query that Helix has added in this version, according to TFA?
312.
▲
by
teo_zero
1y ago
But the compiler will always add the jump back to the top of the loop, so it's two jumps per cycle. Manual dispatch is one jump per cycle.
313.
▲
by
teo_zero
1y ago
> I like to have my lexers operate on `FILE*`, rather than string-views. [...] it does mean I can operate on streams. While I understand the desire to support one input interface for composability, reuse, etc. I can't help wondering
314.
▲
by
teo_zero
1y ago
On compilers that don't support musttail, won't this make the stack explode?
315.
▲
by
teo_zero
1y ago
parseEmail() should either return a valid email, or not return at all; whether that means panic, exit, or jump to an error handler... is left to the implementer
316.
▲
by
teo_zero
1y ago
I have memories of running BSD on my Amiga 1200. The 680ec30 had no MMU, so the kernel had to relocate all executables before running. Nothing more than a prompt, but what an achievement!
317.
▲
by
teo_zero
1y ago
Exactly, thank you. I've always called "tag" the id that optionally follows struct/union/enum. Is it the wrong word? Some specs call it "name", but "unnamed union" sounds dangerously similar to &
318.
▲
by
teo_zero
1y ago
> Structurally identical types will be considered the same type in GCC 15 and Clang later in 2025 thanks to a rule change Beware that only tagged unions are considered the same type under the new rule, provided they have the same struc
319.
▲
by
teo_zero
1y ago
> here are some of the most commonly used features of C language NOT supported by c4wa. > [...] Almost all new features introduced in C99 At least, it doesn't require K&R syntax for functions!
320.
▲
by
teo_zero
1y ago
While it always lands on its feet, a cat doesn't spontaneously roll over to stand on them. An external stimulus is required, opening a can of its favorite food will do.
321.
▲
by
teo_zero
1y ago
In bash, it's enough to remember that $? expands to the exit code of the previous command, and $((x)) evaluate x as an integer expression, including the ternary operator x?y:z. For example the following prints the exit code in green if
322.
▲
by
teo_zero
1y ago
> The pen at the back of your junk drawer from a hotel you don’t remember staying at will do just fine. Vehemently disagree! Few things hurt on my nerves more than a pen that leaves ink spots behind, or works intermittently, or needs exc
323.
▲
by
teo_zero
1y ago
If only it accepted POSIX syntax...
324.
▲
by
teo_zero
1y ago
> I get freaked out enough seeing devs that can't touch type. Do you get freaked out the same way seeing professional drivers that don't race? I've never related the speed of typing to the quality of coding (maybe to the
325.
▲
by
teo_zero
1y ago
> I'd be curious to know if anyone here actually uses the ctrl or alt keys that are located on the right. You must be located in the US, because the US is probably the only keyboard layout with a right Alt key. All the others have a
326.
▲
by
teo_zero
1y ago
What I miss is a compiler referencing the original lines in the lit file, instead of the tangled one. For example, if line 100 of my lit file is the piece of code that will eventually be line 1 of main.c, and it includes an error, how do I
327.
▲
by
teo_zero
1y ago
> how often is the English in literate programming repeating what's already written in the code? This had nothing to do with literate programming. I could as well ask "how often is the English in comments repeating what's
328.
▲
by
teo_zero
1y ago
I think the real reason this article keeps coming back is how good it is at teaching through examples and visualization, rather than the A* algorithm itself.
329.
▲
by
teo_zero
1y ago
Wait! What are == and != doing in a BASIC language? Heresy! :)
330.
▲
by
teo_zero
1y ago
> The lut is zeroed except for the indices corresponding to the vowels, which contain it self So in the comparison vs. the original str, vowels get a true and consonants get a false. Doesn't the "==" then returns true if a
More ›