HackerLangs
TopNewTrendsCommentsPastAskShowJobs

teo_zero

1,376 karmajoined 4 tahun yang lalu

comments

teo_zero
·23 jam yang lalu·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
·24 jam yang lalu·discuss
Put the "--" in the condition. It's less ugly.
teo_zero
·kemarin·discuss
Timer should be like in chess tournaments: an initial budget of X, increase by Y for each word you guess.
teo_zero
·3 hari yang lalu·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
·5 hari yang lalu·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
·9 hari yang lalu·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
·10 hari yang lalu·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
·12 hari yang lalu·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
·13 hari yang lalu·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
·14 hari yang lalu·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
·14 hari yang lalu·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
·14 hari yang lalu·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
·15 hari yang lalu·discuss
Or you could only flag the inconsistencies, for example if the same digit shows up twice in the same row.
teo_zero
·15 hari yang lalu·discuss
> I think you meant to use [400]u6

Of course! I guess it was too early to do the maths correctly... :)
teo_zero
·15 hari yang lalu·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
·17 hari yang lalu·discuss
Getting caught didn't make him a superstar. Telling his techniques in books and public speeches did.
teo_zero
·18 hari yang lalu·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
·20 hari yang lalu·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
·21 hari yang lalu·discuss
> Maybe I should consider myself as one

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