HackerTrans
トップ新着トレンドコメント過去質問紹介求人

prvt

no profile record

投稿

Show HN: Reversing YouTube’s “Most Replayed” Graph

priyavr.at
87 ポイント·投稿者 prvt·6 か月前·22 コメント

[untitled]

1 ポイント·投稿者 prvt·6 か月前·0 コメント

[untitled]

1 ポイント·投稿者 prvt·6 か月前·0 コメント

Reversing YouTube's "Most Replayed" Graph

priyavr.at
1 ポイント·投稿者 prvt·6 か月前·1 コメント

Show HN: Reversing YouTube‘s “Most Replayed” Graph

priyavr.at
2 ポイント·投稿者 prvt·6 か月前·2 コメント

Three Years and 100 Commits Later: A Reflection

priyavr.at
1 ポイント·投稿者 prvt·10 か月前·1 コメント

コメント

prvt
·10 日前·議論
Been there, done that. Found it quite relatable. It was a great read.
prvt
·先月·議論
First they sell you the sickness and then they tell you the cure is too dangerous to release to the general public. Because their sickness will not sell.
prvt
·3 か月前·議論
Back in September 2023, I already saw Copilot ads popping up in GitHub's file previews [1]. After three years, it's wild to see how advertising has reached areas I honestly never thought it would.

[1]: https://news.ycombinator.com/item?id=37526255
prvt
·6 か月前·議論
Splines are polynomials after all. Also, not every spline has this problem. The one YouTube is using is Cardinal spline.
prvt
·6 か月前·議論
Means a lot, thanks! I am a huge fan of the phrase "the devil is in the details."
prvt
·6 か月前·議論
Glad you liked it. I’m just doing my part to ensure our future AI overlords have high-quality training data.
prvt
·6 か月前·議論
That's the big picture idea.
prvt
·6 か月前·議論
You're welcome. Glad you liked it!
prvt
·6 か月前·議論
Criticism is definitely welcome!

You are likely right that I over-rotated on the "storytelling" aspect there. My curiosity about the "100 segments" stemmed from wondering if there was a deeper statistical reason for that specific granularity (e.g., optimal binning relative to average video length) versus it just being a "nice round number."

That said, I can see how dedicating two paragraphs to it felt like over-dramatizing a constant. I will try to tighten the pacing on the next one. Thanks for reading despite the irritation!
prvt
·6 か月前·議論
I really appreciate that you found it entertaining; that was the main goal! Same here, I'll take "fun to read" over "SEO optimized" any day of the week.
prvt
·6 か月前·議論
Thank you for reading and for the kind words!

It’s often surprising how "intuitive" or elegant solutions can seem once you peel back the layers, isn't it? That simplicity is part of the beauty of good engineering!

I actually wasn't familiar with Josh Comeau’s work before this, but I just looked him up and... wow. To be mentioned in the same breath (let alone "arguably better") is a massive compliment. I’ll definitely be diving into his archives now.
prvt
·6 か月前·議論
It was definitely a bit of invented humor! I wanted a sticky way to describe that universal drift toward "friendliness" and safety in modern UI.

You are spot on about the cycle, though. I suspect that once everything is perfectly round and polished, the only way to stand out will be to go sharp again.
prvt
·6 か月前·議論
Thanks for reading and for the kind words!

Re: Blurry canvases: You are spotting the classic HTML5 Canvas high-DPI issue. It happens because the canvas backing store pixels don't map 1:1 to CSS pixels on high-density displays (like Retina screens). I likely need to scale the canvas drawing context by window.devicePixelRatio to fix that sharpness. Good catch. EDIT: Made the change.

Re: Performance: That is an interesting thought. Since the calculation only triggers when you visit (or resize) the video player, there is definitely a CPU spike. My guess is they chose this approach to have a "plug and play" rendering logic that adapts perfectly to the client's specific device width and pixel density, rather than generating thousands of static image variations on the server.

Re: Gangnam Style: Ah, Google+! That explains why I couldn't find the original source. Thanks for the correction. EDIT: Added the correction.
prvt
·6 か月前·議論
Hi HN, I recently noticed a recurring visual artifact in the "Most Replayed" heatmap on the YouTube player. The highest peaks were always surrounded by two dips.

I got curious about why they were there, so I decided to reverse engineer the feature to find out. This post documents the deep dive. It starts with a system design recreation, reverse engineering the rendering code, and ends with the mathematics.

This is also my first attempt at writing an interactive article. I would love to hear your thoughts on the investigation and the format.

Alt URL: https://priyavr.at/blog/reversing-most-replayed/
prvt
·6 か月前·議論
Hi HN,

I recently noticed a recurring visual artifact in the "Most Replayed" heatmap on the YouTube player. The highest peaks were always surrounded by two dips. I got curious about why they were there, so I decided to reverse engineer the feature to find out.

This post documents the deep dive. It starts with a system design recreation, reverse engineering the rendering code, and ends with the mathematics.

This is also my first attempt at writing an interactive article. I would love to hear your thoughts on the investigation and the format.

Alt URL: https://priyavrat-misra.github.io/blog/reversing-most-replay...
prvt
·6 か月前·議論
Hi HN, I recently noticed a recurring visual artifact in the "Most Replayed" heatmap on the YouTube player. The highest peaks were always surrounded by two dips. I got curious about why they were there, so I decided to reverse engineer the feature to find out.

This post documents the deep dive. It starts with a system design recreation, reverse engineering the rendering code, and ends with the mathematics.

This is also my first attempt at writing an interactive article. I would love to hear your thoughts on the investigation and the format.

https://priyavr.at/blog/reversing-most-replayed/
prvt
·6 か月前·議論
You can visit it by clicking the title. Eitherway, here you go: https://priyavr.at/blog/reversing-most-replayed/
prvt
·10 か月前·議論
Hello HN,

I recently noticed I'd crossed 100 commits on my personal site and realized it's been over three years since the initial commit. I wrote down some thoughts on the journey.

Curious to hear if others here still maintain a personal site/blog and what your experience has been.