Compiling Dinner

https://news.ycombinator.com/rss Hits: 1
Summary

Compiling Dinner When you read a recipe, you’re already programming. Ingredients are inputs. Actions—chop, stir, simmer—are instructions. The kitchen is your runtime environment, and you, the cook, are the processor. If you follow the recipe to the letter, you get the expected output: a finished dish. Miss a step, and you’ve introduced a bug. Burn the onions, and you’ve hit a runtime error. Seen this way, recipes are languages, and cooking is compilation. ⸻ Recipes as Grammar A recipe might say: “Sauté onions in butter until golden.” Even without thinking, you break it down: • Action: sauté • Ingredient: onions • Resource: butter • Condition: until golden That’s parsing. You’ve taken natural language and structured it into a sequence the kitchen can execute. If you were to formalize it, you could even describe recipes in a simple grammar: Recipe ::= Ingredients Steps Step ::= Action Ingredient (Condition)? The idea isn’t to make cooking robotic. It’s to notice that the same mental steps compilers use to translate source code are happening every time you follow instructions in the real world. ⸻ What LLMs Add Traditionally, building a compiler—even for toy programming languages—required deep expertise and a lot of patience. You had to design the grammar, write the parser, build analyzers, and construct an interpreter. Most people never tried. But large language models change that. You can describe the rules in plain English—“I want a recipe language where steps look like ‘Bake chicken at 350°F for 40 minutes’”—and the model will sketch out the code to tokenize, parse, and execute it. You can ask for a shopping list generator, and it will show you how to transform recipe text into structured data. You can ask for optimizations, and it will suggest ways to reorder steps so multiple dishes finish at the same time. It won’t give you a Michelin-starred compiler. But it will give you a sketch, a scaffold. Enough to start playing. ⸻ Compilers Everywhere Once you see cooking ...

First seen: 2025-09-01 16:48

Last seen: 2025-09-01 16:48