HN user

prvt

550 karma

https://priyavr.at

Posts27
Comments31
View on HN
priyavr.at 6mo ago

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

prvt
87pts22
priyavr.at 6mo ago

Reversing YouTube's "Most Replayed" Graph

prvt
1pts1
priyavr.at 6mo ago

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

prvt
2pts2
priyavr.at 10mo ago

Three Years and 100 Commits Later: A Reflection

prvt
1pts1
priyavr.at 1y ago

Counting at Scale

prvt
3pts1
priyavr.at 1y ago

A Voyage to Structs

prvt
1pts0
www.windowslatest.com 1y ago

Microsoft begins auto updating PCs to Windows 11 24H2 (forced download phase)

prvt
1pts0
privtracker.com 1y ago

PrivTracker – Private BitTorrent tracker for everyone

prvt
190pts37
github.com 1y ago

Topaz/paste: A no-datastore, client-side paste service

prvt
1pts1
www.theverge.com 1y ago

Casio has released a ring in the form of its iconic watch

prvt
190pts83
content.neuralink.com 2y ago

Neuralink Compression Challenge

prvt
4pts1
graphics.stanford.edu 2y ago

Bit Twiddling Hacks

prvt
3pts0
imgur.com 2y ago

GitHub started advertising on file preview screens

prvt
2pts2
github.com 3y ago

Neo-Desktop/WindowsXPKg: Keygen for Windows XP

prvt
89pts31
anvaka.github.io 3y ago

Map of GitHub

prvt
6pts0
github.com 3y ago

Notekit: A GTK3 hierarchical Markdown notetaking application with tablet support

prvt
2pts0
pokeapi.co 3y ago

PokéAPI – The RESTful Pokémon API

prvt
1pts0
community-imdb.sprinklr.com 3y ago

IMDB not showing up on Google Search any more?

prvt
4pts0
earth.google.com 3y ago

Land Art from Above – Google Earth

prvt
1pts0
en.wikipedia.org 3y ago

Streisand Effect

prvt
2pts0
github.com 3y ago

CS quotes found while browsing Notepad++'s code

prvt
284pts168
github.com 3y ago

Rainmeter: Desktop Customization Tool for Windows

prvt
2pts0
github.com 3y ago

A simple web-based tool for Spriting and Pixel art

prvt
2pts0
github.com 3y ago

Windows10Debloater: Script to remove Windows 10 bloatware (2021)

prvt
237pts269
github.com 4y ago

Lawnchair: No Clever Tagline Needed

prvt
2pts0
p-v.pages.dev 4y ago

My First Blog Post

prvt
2pts0
news.ycombinator.com 4y ago

Ask HN: How did you discover HN?

prvt
6pts4
Agentic Mfw 2 months ago

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.

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!

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.

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.

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.

[dead] 6 months ago

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/

[dead] 6 months ago

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...

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/

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.

Last weekend, I dove into CMU’s [15-445/645](https://15445.courses.cs.cmu.edu/) database course and got hit with a deceptively simple problem: count the number of unique users visiting a website per day. Easy, right? Just throw user IDs into an unordered_set and return its size—classic LeetCode.

But what happens when you’re at Facebook scale? Tracking a billion unique users means burning through GBs of memory just to count. And in the real world, users are streaming in constantly, not sitting in a neat, static list. Storing every ID? Not happening.

I explored practical workarounds (like “last seen” timestamps and full table scans), but they’re either inefficient or put massive strain on your DB. Then the assignment introduces HyperLogLog: a probabilistic algorithm that estimates cardinality with just 1.5KB of memory—accurate to within 2% for billions of users.

The magic? Pure mathematics. It’s distributable, and powers real-world systems like Redis and Google Analytics. I break down how it works (with illustrations!), check out my deep dive.

Curious to hear from HN: Who’s using HyperLogLog in production? And have you run into accuracy issues, and how did you handle them?