Hacker News with Generative AI: Programming

Frustrated at Young Programmers (ycombinator.com)
Today at work I said we should use a coroutine in the server process to handle an async query call to a db. Just launch it async and don't let it block the handler.
Colossal Cave Adventure (1976) (github.com/wh0am1-dev)
Original source code, written in Fortran, from the very first text adventure game in the videogames history (1976).
ATS3 Xanadu Released (github.com/githwxi)
XATSHOME is a place for one to learn ATS3 and also contribute to ATS3.
I designed my LED matrix PCB with code (tscircuit.com)
This tutorial will walk you through building a 3x5 LED matrix controlled by a Raspberry Pi Pico using tscircuit.
Ask HN: What Programming Skills Will Still Matter in 10 Years? (ycombinator.com)
Ask HN: What Programming Skills Will Still Matter in 10 Years?
Fun with IP Address Parsing (dave.tf)
In my quest to write a fast IPv4+6 parser, I wrote a slow-but-I-think-correct parser, to use as a base of comparison. In doing so, I discovered more cursed IP address representations that I was previously unaware of. Let’s explore together!
Next-Gen GPU Programming: Hands-On with Mojo and Max Modular HQ (youtube.com)
Linus Torvalds: Case-insensitive names are horribly wrong (kernel.org)
You are seeing this because the administrator of this website has set up Anubis to protect the server against the scourge of AI companies aggressively scraping websites.
Why "Learn to Code" Failed [video] (youtube.com)
Write an Interpreter in Ruby (speakerdeck.com)
Differential Coverage for Debugging (swtch.com)
I have been debugging some code I did not write and was reminded of this technique.
Writing a Linux Debugger (2017) (tartanllama.xyz)
Show HN: An interactive demo of QR codes' error correction (qris.cool)
Every QR code has built-in error correction. This means that they can still be scanned even if they are damaged, like when a corner is covered or torn off, or when they get drawn on.
Some __nonstring__ Turbulence (lwn.net)
New compiler releases often bring with them new warnings; those warnings are usually welcome, since they help developers find problems before they turn into nasty bugs. Adapting to new warnings can also create disruption in the development process, though, especially when an important developer upgrades to a new compiler at an unfortunate time. This is just the scenario that played out with the 6.15-rc3 kernel release and the implementation of -Wunterminated-string-initialization in GCC 15.
Notation as a Tool of Thought (1979) (jsoftware.com)
A Visual Journey Through Async Rust (github.com/alexpusch)
I'm a visual and experimental learner. To truly understand something, I need to tinker with it and see it run with my own eyes. To truly understand async execution, I want to visualize it. What order are things happening in? Do concurrent futures affect each other? How do tasks and threads relate? Plotting network calls or file system operations is boring. Let's draw something.
Implementing Unsure Calculator in 100 lines of Haskell (alt-romes.github.io)
The recently trendy Unsure Calculator makes reasoning about numbers with some uncertainty just as easy as calculating with specific numbers.
Claude Plays Pokemon – Starter Version (github.com/davidhershey)
A minimal implementation of Claude playing Pokemon Red using the PyBoy emulator. This starter version includes:
Open Sourcing 30 Sandboxes (antonz.org)
I'm a big fan of interactive playgrounds. So today I'm open sourcing 30+ sandboxes — from programming languages to databases to networking and CLI tools. You can use them to experiment locally, or embed interactive examples in your writing like this:
Stop Writing If-Else Trees: Use the State Pattern Instead (medium.com)
The State design pattern is a behavioral software pattern that allows an object to alter its behavior when its internal state changes. In simpler terms, the State pattern lets an object behave differently based on its current state, without cluttering the code with endless if/else or switch statements.
A Principled Approach to Querying Data – A Type-Safe Search DSL (claudiu-ivan.com)
The rise of local-first web applications demands a rethinking of traditional client-server architectures.
Creating your own federated microblog (fedify.dev)
In this tutorial, we will build a small microblog that implements the ActivityPub protocol, similar to Mastodon or Misskey, using Fedify, an ActivityPub server framework.
Vim Language, Motions, and Modes Explained (2023) (ssp.sh)
Throughout my time as a developer, I’ve used VS Code, Sublime, Notepad++, TextMate, and others. But shortcuts like cmd(+shift)+end and jumping with option+arrow-keys from word to word needed to be faster at some point.
YAGRI: You are gonna read it (scottantipa.com)
YAGNI, or, You aren't gonna need it, is a standard piece of advice that warns against over engineering and building too many features too early. I think its great and saves you from wasting time, which can kill a project.
Lucene University (github.com/msfroh)
This repository contains some examples of Apache Lucene features with verbose explanations as code comments written in Markdown.
Graphics livecoding in Common Lisp (kevingal.com)
Some Lisps, like Common Lisp, have a powerful feature that tends to go underappreciated amidst all the talk about macros: the ability to recompile your program while it's running, without restarting it.
Elements of Clojure (elementsofclojure.com)
This book tries to put words to what most experienced programmers already know. This is necessary because, in the words of Michael Polanyi, "we can know more than we can tell."
Tarpit ideas: What they are and how to avoid them (2023) [video] (ycombinator.com)
I won't be vibe coding anymore: a noob's perspective (varunraghu.com)
i’m breaking up with vibe coding. here’s why.
Show HN: Node.js video tutorials where you can edit and run the code (ycombinator.com)