The Book of Sure
Learn a simple, fast, memory-safe* systems language — from hello, world to a multithreaded web server.
Foreword
Sure is a small language, and this is a short book. It assumes you have programmed before, in any language. It does not assume you have managed memory before, and it will not teach you to, because in Sure you will not be managing memory. Chapter 7 explains what happens instead. Read it even if you skip everything else — especially the part about comments.
Every complete program in this book compiles with Sure 0.3.1. The fragments that don't stand alone are marked by their surroundings. When a chapter shows terminal output, it is real output, including the parts that are a single character long.
By chapter 10 you will have built a static file server that handles every connection on its own thread and frees every request's memory at lines chosen by the compiler. This is not a toy exercise; it is the reference deployment.