Gallery
Famous code, read in Thunder.
Real functions from well-known open-source projects, each pinned to a commit and read by the Thunder compiler when this site was built. Every reading says how much Thunder put into words and shows the rest as the original code, so you can judge it for yourself.
- PythonFlaskHow Flask handles one requestFlask.full_dispatch_request · app.py9 of 9 steps put into words.
- PythonRequestsWhich method a redirect uses in RequestsSessionRedirectMixin.rebuild_method · sessions.py8 of 8 steps put into words.
- JavaScriptExpressHow Express adds middlewareuse · index.js21 of 21 steps put into words.
- JavaScriptaxiosWhen axios treats a response as an errorsettle · settle.js3 of 4 steps put into words; 1 shown as code.
- TypeScriptNestJSHow NestJS checks a number in a URLParseIntPipe.transform · parse-int.pipe.ts4 of 5 steps put into words; 1 shown as code.
- GoGo standard libraryHow Go's HTTP router picks a handlerServeMux.ServeHTTP · server.go9 of 10 steps put into words; 1 shown as code.
- RustfdHow fd reads --changed-within and --changed-beforeextract_time_constraints · main.rs6 of 11 steps put into words; 5 shown as code.
- JavaApache Commons LangTurning text into yes, no, or nothing in Commons LangBooleanUtils.toBooleanObject · BooleanUtils.java14 of 14 steps put into words.
- C#Json.NETHow Json.NET camel-cases a nameStringUtils.ToCamelCase · StringUtils.cs10 of 13 steps put into words; 3 shown as code.
- CRedisWhat Redis does for APPENDappendCommand · t_string.c19 of 20 steps put into words; 1 shown as code.
- SQLSakila sample databaseIs this DVD in stock? (Sakila, SQL)inventory_in_stock · mysql-sakila-schema.sql5 of 7 steps put into words; 2 shown as code.
How these were chosen. Each function comes from a project under a permissive license (MIT, BSD, or Apache 2.0) and was checked by hand against its code. Readings that said something false, or left out something important, were left out of the gallery rather than shown. Only the one source file each function lives in is kept on this site, with its license; the attribution is on every page.
They improve on their own. The readings aren't written down anywhere: the site reads these files with the current Thunder compiler at every build. Want one of your own? Open any public GitHub file or paste your code.