Uploads from Xah Lee

Watch and track your favorite playlist.

Curated by: Xah Lee (847 videos)


Currently Playing: Xah Ep702 the C Printf Crime and New Syntax for String, Rock-String

Video Summary (Generated by AI) This video argues that C's printf function is a "hack" that has caused pervasive harm in programming language design (1:57). The speaker explains that printf combines multiple distinct operations—string templating, number-to-string conversion, number formatting (e.g., decimal places, padding), and base conversion (e.g., decimal to hexadecimal)—into one cryptic mini-language (2:50, 26:56, 29:21). Because C was popular, many languages like Python, Perl, PowerShell, Go, and Emacs Lisp borrowed this design (2:57, 23:14). However, these languages later found printf's design problematic and introduced their own, often incompatible, string formatting methods (8:17, 28:07). The speaker then introduces their proposed "rock string" syntax (50:56), which aims to solve these problems by: Eliminating escape sequences (51:19), which lead to the "backslash toothpick syndrome" (51:37). Allowing embedding of non-printable characters and expressions directly. Using a single, simple syntax with customizable delimiters for literal string representation (57:28).


Tracks in this Playlist

✅ Progress Tracking

Automatically track which videos you have watched. Your completion status is updated at a glance, preventing you from re-watching episodes by mistake.

⏯️ Resume Playback

Never lose your spot. Our custom player remembers your exact video and timestamp, allowing you to dive right back in seamlessly.

📱 Cross-Device Sync

Sync your playlist states, watched progress, and premium preferences across your desktop, laptop, tablet, and mobile phone automatically.

Start Organizing Your YouTube Playlists

Simply paste any YouTube playlist URL or channel link in the application search bar to immediately generate a custom, sorted, and progress-tracked workspace. No registration required to start.

Explore Playlist Guides & How-Tos