Earlier quoted context omitted.
So what's the christmas theme? Unless I'm blind, it looks the same as always, except the header color seems to have changed... slightly?
Perhaps you've looked at the site so much that you're blind to the numbers at the start of each item.
Tell HN: Merry Christmas
141–150 of 478 posts
Re: Tell HN: Merry Christmas
#142Answer: Here’s an ASCII Christmas tree that is also a Merkle tree (Each parent node is the hash of its two children; leaves are the “data blocks”.)
MERKLE TREE
H(ROOT)
/ \
H(0-1) H(2-3)
/ \ / \
H(0) H(1) H(2) H(3)
/ \ / \ / \ / \
D0 D0 D1 D1 D2 D2 D3 D3
But that's a little too tidy to be a proper Christmas tree — so here’s a more “tree-like” version with ornaments, while still preserving the Merkle structure: H(ROOT)
/ \
H(0-1) H(2-3)
/ \ / \
H(0) H(1) H(2) H(3)
/ \ / \ / \ / \
D0 D0 D1 D1 D2 D2 D3 D3
(leaf)(leaf)(leaf) (leaf)(leaf)(leaf)
Notes (so it’s actually Merkle-y)D0–D3 = data blocks (your “presents” )
H(0) = hash(D0 || D0) (duplicated leaf for balance, common in Merkle trees)
H(0-1) = hash(H(0) || H(1))
H(ROOT) = hash(H(0-1) || H(2-3))
If you want, I can:
generate a bigger tree (8, 16, 32 leaves),
make the hashes look like real hash strings,
or format it like a perfect triangular Christmas tree silhouette while keeping the Merkle parent/child layout.
-- Prompt: format it like a perfect triangular Christmas tree silhouette while keeping the Merkle parent/child layout.
Answer: You got it — here’s a perfect triangular Christmas tree silhouette that still preserves the Merkle parent/child layout (parents directly above their two children, leaves at the base).
H(ROOT)
/ \
┌────────H(0-3)────────┐
/ \
┌────H(0-1)────┐ ┌────H(2-3)────┐
/ \ / \
┌─H(0)─┐ ┌─H(1)─┐ ┌─H(2)─┐ ┌─H(3)─┐
/ \ / \ / \ / \
D0 D1 D2 D3 D4 D5 D6 D7
If you want it even more like a Christmas tree (full silhouette + ornaments)Here’s a slightly more “filled” version while keeping the structure valid:
H(ROOT)
/ \
──────H(0-3)──────
/ \
─────H(0-1)───── ─────H(2-3)─────
/ \ / \
───H(0)─── ───H(1)─── ───H(2)─── ───H(3)───
/ \ / \ / \ / \
D0 D1 D2 D3 D4 D5 D6 D7
Edit: Note the emoji ornaments did not come through.Re: Tell HN: Merry Christmas
#143Just noticed that color of the HN top bar is more red which I never noticed in previous years. Merry Christmas to everyone.
(this is an old pg tradition btw)
Re: Tell HN: Merry Christmas
#144Earlier quoted context omitted.
> Sometimes after Christmas, I avoid refreshing an HN tab, so I get to see the theme just a little bit longer :) There's always browser extensions/scripts.
Indeed, I needed it longer than one day so wrote myself an extension. HN didn't seem to care but I still love it :-) https://news.ycombinator.com/item?id=46266496 https://github.com/FreedomBen/hacker-news-christmas-colors-b...
Re: Tell HN: Merry Christmas
#145Re: Tell HN: Merry Christmas
#146My first Christmas with mom gone was really tough. Stuck alone during COVID in 2021 in a really bad place. I couldn't sleep. And I happened to turn on the radio in the middle of the night and there was an Amy Grant interview. I almost turned it off, oh no, christian stuff I thought. But she talked about her first Christmas without her mom. Then they played her song about it. If I had been 5 minutes more trying to sle…
Re: Tell HN: Merry Christmas
#147Re: Tell HN: Merry Christmas
#148Re: Tell HN: Merry Christmas
#149Re: Tell HN: Merry Christmas
#150Shall we showcase our trees? * | /.\ /o..\ /..O\ /.o..o\ /...o.\ /..O..o.\ ^^^[_]^^^
*
/|\
[ROOT]
n=25000
/ | \
[N] [I] [C]
.33 .51 .94
Merry Xmas Nerds!