Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
teo_zero
6d ago
> Why use a for loop with a bound as an example instead of while loops with linked lists? I'm the author of the example. I wanted to keep it as simple as possible, and this is the most common form of for loop. I was sure that HN rea
2.
▲
by
teo_zero
6d ago
Whenever you write a succinct example or a metaphor to try to explain in a few words a complicated concept, someone will nitpick small details of your construction, thus focusing on the form and missing the spirit! Forget if "i<n&qu
3.
▲
by
teo_zero
7d ago
> I'm not sure what this has to do with my comment Because you explicitly mentioned details that belong in the implementation, not in the semantic: > A halt/abort instruction that trashes [the] state would be undesirable If
4.
▲
by
teo_zero
7d ago
Take this example: for (i=0;i<n;i++) A[i]=0; for (i=0;i<n;i++) B[i]=0; It can be conveniently transformed into this: for (i=0;i<n;i++) A[i]=B[i]=0; They are exactly equivalent except if the first loop
5.
▲
by
teo_zero
7d ago
Expecting a piece of code to be compiled to a precise sequence of machine instructions is exactly what you should not do with high-level languages like C++. Their task is exactly to abstract the machine away. They give you the guarantee tha
6.
▲
by
teo_zero
12d ago
> How about case-insensitive filesystems? [...] Negligible. I don't buy this. Finding collisions is pretty easy. In one repository I have these files: rank2.cpp rank4.cpp rankN.cpp The last two have the same case-insensit
7.
▲
by
teo_zero
14d ago
> I really like this website design Reading it on my phone, I beg to differ.
8.
▲
by
teo_zero
19d ago
Doesn't pressing "back" in the browser repost the same message?
9.
▲
by
teo_zero
22d ago
How do you decide who is going to pull the tokens?
10.
▲
by
teo_zero
22d ago
And how do you decide who is going to throw that one die?
11.
▲
by
teo_zero
26d ago
> this is just structs. Yes. And structs are just bytes. Levels of abstractions don't do anything the underlying levels don't already do, they just give you means to express your intent in a clearer form.
12.
▲
by
teo_zero
27d ago
But there are "cubic bazillions" of possible URLs that are being requested. Even if they boil down to "only" some millions actual commits, their rendered HTMLs are all different.
13.
▲
by
teo_zero
27d ago
Tangent question: what about NPU performance? I always read about CPU vs GPU, but nobody talks about NPUs; I don't even know if llama supports them. Why do phones and laptops get equipped with NPUs if there's no use for them?
14.
▲
by
teo_zero
28d ago
This is for iPhones only. Do I assume correctly that the issue is solved for Android, instead?
15.
▲
by
teo_zero
1mo ago
> count undo as a partial game over Not at all. Contrary to other games where undos are cheating, here they are part of the game. Without them it would be 80% luck and only 20% strategy. > which is heavily implied I can't find an
16.
▲
by
teo_zero
1mo ago
If your first word is four greens it's actually pretty good: you get to know four letters to avoid with just one undo!
17.
▲
by
teo_zero
1mo ago
You might have misunderstood TFA. No push for trig reform, just a consideration on what internal representation is optimal in code. Imagine it like someone suggesting (understandably) that you express memory sizes in hex: no push to make ev
18.
▲
by
teo_zero
1mo ago
The C standard defines the functions sinpi(), cospi(), etc. that act on half-turns. If you have a modern compiler, all you have to do is to include math.h
19.
▲
by
teo_zero
1mo ago
Sure, it's your choice where to put your precious time. Exactly like Sheldon, you prefer not to dedicate any energy to question a judgment you have decided a priori . And like him, you might be missing out on some good stuff.
20.
▲
by
teo_zero
1mo ago
While you went this road of the medical metaphor, taking antibiotics at the first suspect of sickness without checking what's really going on, is a sure way to help develop antibiotic-resistant viruses. Please note the key item is wit
21.
▲
by
teo_zero
1mo ago
Whenever I'm tempted to base my judgment on how something's been created rather than what the end result is, I think about the scene where Sheldon throws away the french toast Penny made for him, despite smelling good, just be
22.
▲
by
teo_zero
1mo ago
Even worse: cover letters, presentation letters, even CVs themselves are routinely read by AI, at least in the screening phase.
23.
▲
by
teo_zero
1mo ago
> using AI as an editor vs letting it write a whole essay for you. AI;DR is about the latter I'm sure that's the intention, but the alarming trend, at least here on HN, is crying wolf at the first em-dash.
24.
▲
by
teo_zero
1mo ago
> the difference in positions is "this could be made better" vs. "but this is already so much better than before" I would say "this could be technically better" vs. "this is already economically better
25.
▲
by
teo_zero
1mo ago
> As for 3 instructions for array access, in a simple loop a compiler can convert index access to pointer increment. In such a simple loop where you access one field in each iteration, yes. If you happen to access more fields, or the sam
26.
▲
by
teo_zero
1mo ago
I can't help wondering why so many new languages provide two separate mechanisms to define mutable and immutable variables. I see a value in defaulting to immutable unless explicitly stated, like in Rust. But having to choose between t
27.
▲
by
teo_zero
1mo ago
Sometimes yes, sometimes an equilibrium is finally reached. The fact that we see more equilibrium than extinction is purely "survivor's bias".
28.
▲
by
teo_zero
2mo ago
> An unclosed tag occurs when an opening HTML tag like <div>, <p>, or <span> is missing its corresponding closing tag. Since when does <p> requires a closing tag? Note that TFA lists this among "spec violatio
29.
▲
by
teo_zero
2mo ago
> This is worthy feedback to the author You can say the same about detecting grammatical mistakes: it's nice to warn the author, but please send them a private message, don't pollute the comments section.
30.
▲
by
teo_zero
2mo ago
The topic is the expression "itadakimasu". What the blog purports to be, belongs in the boundary. Who wrote it belongs in the boundary. Whether the syntax is correct, contains em-dashes, uses nice colors and fonts, belong in the b
More ›