Examples
Examples are organized by task. Each linked page supplies a complete program, execution instructions and backend requirements. File, server and database prerequisites are stated explicitly.
| Task | Example and environment |
|---|---|
| First program | Hello Ku; interpreter or native C |
| Chinese and emoji | Strings; interpreter or listed native methods |
| JSON round trips and errors | JSON; interpreter or synchronous native C |
| Write and read a file | Filesystem; creates a file beside the source |
| Dates and waiting | Time; wall-clock versus monotonic time |
| HTTP server and requests | HTTP; start the local server first |
| Tasks and await | Async calls; one-use handles and explicit Results |
| Multi-file project | Packages and modules; local imports |
| Database queries | PG / Redis / MySQL; native C and real services |
| Binary data and TCP | bytes / net; native C |
The repository’s examples directory contains larger examples. Long-running services, load generators and database programs have their own prerequisites; do not run the entire directory as an unconditional batch.