HackerLangs
TopNewTrendsCommentsPastAskShowJobs

teo_zero

1,376 karmajoined hace 4 años

comments

teo_zero
·hace 23 horas·discuss
I don't get it. If the ring structure has 4 field (excluding the cold ones), and all 4 have alignment constraints, doesn't it define 4 zones in 4 cache lines, and not 2?

I expected head and cached_tail, for example, to share the same line, but since they are both 128-byte aligned, they end up in separate lines. Granted, both lines are dedicated to only one side of the producer-consumer pipe, but we're wasting cache lines for nothing.
teo_zero
·hace 24 horas·discuss
Put the "--" in the condition. It's less ugly.
teo_zero
·ayer·discuss
Timer should be like in chess tournaments: an initial budget of X, increase by Y for each word you guess.
teo_zero
·hace 3 días·discuss
I don't know... I prefer unobfuscated text that you can immediately grok. The other day I saw this on a T-shirt:

> May the m×s/t² be with you
teo_zero
·hace 5 días·discuss
> You do seem to get more | shaped pieces when you leave those spaces open on the board.

I don't think this is correct, nor that it can be evinced from the article. What it does say is that the sequences that led them to achieve their target show a higher incidence of I shapes. This is because all the ones that show less I shapes have been "pruned away" by the cost function, which favors I shapes.

This has some relationship with the anthropic principle: isn't it strange that, of all the possible universes, we ended up in the one that seems fine-tuned exactly for life as we know it?
teo_zero
·hace 9 días·discuss
> What a ridiculous comment

I wonder if starting a comment by despising the parent is just being gruff or it leans on personal attack...
teo_zero
·hace 10 días·discuss
What if I omit the "uniq" keyword? Is it still valid code, just not protected by the compiler from union types changing underneath?
teo_zero
·hace 12 días·discuss
> More Authors with DRM-Free Books

> On Amazon, look for books that offer EPUB and PDF downloads.

Isn't this like saying "to find a needle in a haystack, just look for anything that's metallic"? Technically correct, but not really helping...
teo_zero
·hace 13 días·discuss
I can't speak for others, but I downvote to recommend other readers that the post is not worth reading. Not because I disagree with it, but because it's off topic in a way or another.

If TFA is about a tool, I tend to downvote comments that don't talk about the merits of tool but rather about the hosting website, the language it's written in, whether or not it "smells AI", English mistakes in the readme, and so on.

On the other side, if I reply to a comment I always upvote it, even if my reply is to refute it. In fact if I felt the need to add anything to it, it was by definition worth dealing with it!
teo_zero
·hace 14 días·discuss
Nice idea. I'm just wondering how to debug code written in fusion... probably you must focus on one of outputs, debug that one, and then back-fit the changes to the fusion source. :/
teo_zero
·hace 14 días·discuss
The concept is very similar to robin hood. In fact most of the performance charts show that the curves of hopscotch and robin hood are very close. I think I'd prefer robin hood as it's well known.
teo_zero
·hace 14 días·discuss
> it's definitely infinite if you play perfectly.

Considering that 2 new pieces are spawned for each captured one, if you keep progressing you will exhaust the real estate, sooner or later. The only way to go on infinitely is not capturing, but that means not scoring points. Hardly satisfying, though.

For example today's board can be played infinitely by moving between a8 and b7. Zero points, infinite game!
teo_zero
·hace 15 días·discuss
Or you could only flag the inconsistencies, for example if the same digit shows up twice in the same row.
teo_zero
·hace 15 días·discuss
> I think you meant to use [400]u6

Of course! I guess it was too early to do the maths correctly... :)
teo_zero
·hace 15 días·discuss
Can I convert a 300-byte message to Base64 with a single instruction? Like:

  in: [300]u8;
  out: [800]u3;
  out = @bitCast(in);
teo_zero
·hace 17 días·discuss
Getting caught didn't make him a superstar. Telling his techniques in books and public speeches did.
teo_zero
·hace 18 días·discuss
I hate that it immediately flags your errors. First, because it doesn't forgive the casual finger slipping or forgetting if you are in pen or pencil mode. And then because it partially gives away the solution.
teo_zero
·hace 20 días·discuss
> A lot of pain and suffering to avoid having a string datatype

No, a lot of pain and suffering to work around the lack of a string datatype in C.
teo_zero
·hace 21 días·discuss
> Maybe I should consider myself as one

It depends: do you get its and it's right? :)
teo_zero
·hace 21 días·discuss
Oops! I had better revise my theory, then!