frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://priyavr.at/blog/reversing-most-replayed/
8•prvt•1h 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.

Comments

plastic041•48m ago
Great article! I've always wondered how youtube implemented it. Love the interactive canvases too. But maybe it's just me, the canvases look blurry?

Rendering bezier curves on the client side seems reasonable. Calculating ~400 points and rendering 100 curves would not impact performance, but I wonder if these little interactions would impact performance if added up.

About YouTube's comment about Gangnam Style, it wasn't a tweet. You can't find the original post because it was google+, which is dead. Google said it was a joke shortly afterwards: https://www.cnet.com/tech/services-and-software/gangnam-styl...

prvt•31m ago
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.

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; I will add an EDIT note below the image in the article to clarify.

Show HN: Local-Data-Platform – Manage HDFS, Hive, and Spark on macOS

https://github.com/danieljhkim/local-data-platform
1•danieljhkim•10s ago•0 comments

Integration tests are best tests

https://jayconrod.com/posts/133/integration-tests-are-best-tests
2•todsacerdoti•1m ago•0 comments

Work time reduction via 4-day workweek finds improvements in workers' well-being

https://www.nature.com/articles/s41562-025-02259-6
1•rustoo•5m ago•0 comments

Opera GX is finally making its to way to Linux

https://www.neowin.net/news/opera-gx-is-finally-making-its-to-way-to-linux/
1•bundie•6m ago•0 comments

Why swearing makes you stronger

https://www.apa.org/news/press/releases/2025/12/swearing-makes-you-stronger
1•rustoo•13m ago•0 comments

You are not crazy – Douglas Rushkoff

https://rushkoff.substack.com/p/you-are-not-crazy
1•OgsyedIE•13m ago•0 comments

Ask HN: What weird GitHub Copilot behavior are you seeing?

3•stikit•15m ago•0 comments

Show HN: Tureff – Search a keyword to create a chatroom instantly

https://tureff.com
1•bugon•20m ago•1 comments

OpenBSD-current now runs as guest under Apple Hypervisor

https://www.undeadly.org/cgi?action=article;sid=20260115203619
11•gpi•22m ago•0 comments

Happy Birthday, Wikipedia: We need you now more

https://www.salon.com/2026/01/15/happy-birthday-wikipedia-we-need-you-now-more-than-ever/
2•hkhn•24m ago•0 comments

Show HN: Vibe Coded Text Categorizer

https://github.com/tadasv/vibed-categorizer
1•tadasv•31m ago•0 comments

Cloudflare threatens Italy exit over €14M fine

https://ioplus.nl/en/posts/cloudflare-threatens-italy-exit-over-14m-fine
13•soheilpro•32m ago•3 comments

Renewable-powered system uses calcium to reduce emissions and scale for farmers

https://phys.org/news/2026-01-ammonia-production-renewable-powered-calcium.html
1•wglb•34m ago•1 comments

Show HN: Aventos – An experiment in cheap AI SEO

https://www.aventos.dev/
1•JimsonYang•35m ago•0 comments

IPFS OCI Registry

https://github.com/fbongiovanni29/ipfs-oci-registry
3•noobernetes•38m ago•1 comments

The most unhinged (recent) computer science discoveries [video]

https://www.youtube.com/watch?v=wgJojeXcuc4
1•surprisetalk•39m ago•0 comments

British redcoat's lost memoir reveals harsh realities of life as a disabled vet

https://phys.org/news/2026-01-british-redcoat-lost-memoir-reveals.html
2•wglb•39m ago•1 comments

The Great Filter (Or Why High Performance Eludes Most Dev Teams, Even with AI)

https://codemanship.wordpress.com/2026/01/12/the-great-filter-or-why-high-performance-still-elude...
2•gmays•43m ago•0 comments

Emoji Design Convergence Review: 2018 – 2026

https://blog.emojipedia.org/emoji-design-convergence-review-2018-2026/
1•jumpocelot•46m ago•0 comments

SETI Home Flags 100 Signals After Sorting 12B Others

https://news.berkeley.edu/2026/01/12/for-21-years-enthusiasts-used-their-home-computers-to-search...
24•TMEHpodcast•47m ago•2 comments

OpenAI and Gabe Newell Back a Bold New Take on Fusing Humans and Machines

https://www.corememory.com/p/exclusive-openai-and-sam-altman-back-merge-labs-bci
4•ossa-ma•49m ago•0 comments

Antarctic submillimeter telescope enables shows full view of carbon cycle

https://phys.org/news/2026-01-antarctic-submillimeter-telescope-enables-view.html
3•wglb•50m ago•1 comments

The things I miss from the world

https://thehumansource.com/
2•salbertengo•51m ago•1 comments

Ask HN: How to make my website exist for 100 years?

4•klgt•53m ago•5 comments

One-Core-API (run modern binaries on Windows XP/2003)

https://github.com/shorthorn-project/One-Core-API-Binaries
2•unleaded•58m ago•1 comments

Gnome 50 Alpha Released with the X11 Code Gutted

https://www.phoronix.com/news/GNOME-50-Alpha
4•mikece•1h ago•0 comments

Quint Visualizer: a GraphViz-like visualizer for Quint traces

https://quint-visualizer.noghartt.dev/
1•todsacerdoti•1h ago•0 comments

Thinking Machines is nothing without its people

https://sources.news/p/thinking-machines-is-nothing-without
1•coloneltcb•1h ago•0 comments

Show HN: An open-source form builder that outputs tailwind components

https://tailwind-form-builder.sheetmonkey.io/
2•a_band•1h ago•0 comments

Boltz PBC Launches with $28M to Democratize AI Platforms for Drug Discovery

https://www.genengnews.com/topics/artificial-intelligence/boltz-pbc-launches-with-28m-to-democrat...
1•jscyc•1h ago•0 comments