Daily Edition · Page 4

THE DAILY INDEX

Technology, AI, software, security, crypto and business

ARTICLES & TUTORIALS

TLDR Web Dev

ABUSING C TO IMPLEMENT JSON PARSING WITH STRUCT METHODS

A memory-safe JSON parser can be made in C using struct methods for a more ergonomic API. The parser represents JSON values using a `json_value` struct with unions for different data types and includes functions for freeing memory and printing the parsed structure. The parsing process combines lexing and parsing into a single pass, handling atoms (numbers, null, true, false), strings, arrays, and objects with helper functions for whitespace skipping and error handling.

I STRUGGLED WITH GIT, SO I'M MAKING A GAME TO SPARE OTHERS THE PAIN

After struggling with Git, this developer created Git-Sim to visualize Git commands, but realized it only helped those already familiar with Git. To make Git more accessible, they created Devlands, a voxel-world game where users can explore Git concepts and codebases in an immersive, tangible way. Devlands has a Git tutorial and a freeform mode to interact with files, commits, and branches within the game world.

HOW TO GAIN CODE EXECUTION ON MILLIONS OF PEOPLE AND HUNDREDS OF POPULAR APPS

A security researcher discovered a vulnerability in todesktop, an Electron app bundler service, that could allow remote code execution on millions of users of popular applications like ClickUp, Cursor, and Linear. The researcher found hardcoded Firebase credentials and secrets within todesktop's deployment pipeline, letting them push malicious auto-updates to any application using the service. They promptly reported the issue to todesktop, who quickly implemented a fix involving a privileged sidecar for signing and uploading.

TLDR IndexPage 4