| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>Raz, Set, Go</title> |
| 7 | <meta name="description" content="raz: a small systems language in Wirth's tradition, for x86-64 Linux."> |
| 8 | <meta name="theme-color" content="#E07A5F"> |
| 9 | <meta property="og:title" content="Raz, Set, Go"> |
| 10 | <meta property="og:description" content="A small systems language for x86-64 Linux. No run time, no GC, one report."> |
| 11 | <meta property="og:image" content="https://raz.lucela.org/social.png"> |
| 12 | <meta name="twitter:card" content="summary_large_image"> |
| 13 | <link rel="icon" href="../favicon.svg" type="image/svg+xml"> |
| 14 | <link rel="icon" href="../favicon-32.png" type="image/png" sizes="32x32"> |
| 15 | <link rel="apple-touch-icon" href="../apple-touch-icon.png"> |
| 16 | <link rel="stylesheet" href="../style.css"> |
| 17 | </head> |
| 18 | <body> |
| 19 | <header><nav><a class="mark" href="../index.html"><img src="../logo.svg" width="26" height="26" alt="">raz</a><a href="../tour/index.html" aria-current="page">Raz, Set, Go</a><a href="../advanced/index.html">More Raz</a><a href="../spec.html">Report</a><a href="../source/index.html">Source</a><a href="../index.html#download">Download</a></nav></header> |
| 20 | <main> |
| 21 | <div class="contents"><h1>Raz, Set, Go</h1> |
| 22 | <p>A tour of raz, in the spirit of <em>A Tour of Go</em>. Each lesson is one |
| 23 | idea and a whole program, and the output shown is what the program printed |
| 24 | when this page was made.</p> |
| 25 | <p>It is in three parts, as one counts off: <strong>Raz</strong> (one), the |
| 26 | first steps; <strong>Set</strong>, how data is laid out; and |
| 27 | <strong>Go</strong>, making programs that run, fail and finish well. To follow |
| 28 | along, <a href="../index.html#download">get raz</a> and run any program with |
| 29 | <code>raz run Name.raz</code>. When you finish, <a href="../advanced/index.html">More Raz</a> goes down to the machine.</p> |
| 30 | <h2>Raz</h2><ol start='1'> |
| 31 | <li><a href="hello.html">Hello, world</a> <span>A module, an import, a procedure; running, printing, exit status and arguments.</span></li> |
| 32 | <li><a href="modules.html">Modules</a> <span>Exports, renaming, the order bodies run in, and what the compiler refuses.</span></li> |
| 33 | <li><a href="integers.html">Integers</a> <span>The ten integer types, literals, wrapping, signed and unsigned, division, shifts and bits.</span></li> |
| 34 | <li><a href="values.html">Values and conversions</a> <span>Nothing converts unasked; what converts to what; booleans and reals.</span></li> |
| 35 | <li><a href="procedures.html">Procedures and several results</a> <span>Value and var parameters, several results, forward, and procedures as values.</span></li> |
| 36 | </ol> |
| 37 | <h2>Set</h2><ol start='6'> |
| 38 | <li><a href="slices.html">Arrays, slices and strings</a> <span>Five in a row, a window onto them, bytes in UTF-8, raw strings over lines, and checks on every index.</span></li> |
| 39 | <li><a href="records.html">Records and pointers</a> <span>Laid out as C lays out a struct, packed records, pointers and nil.</span></li> |
| 40 | <li><a href="variants.html">Enumerations, sets, variants and match</a> <span>Names in order, sets as bits, and cases the compiler makes you handle.</span></li> |
| 41 | <li><a href="memory.html">Memory and allocators</a> <span>No garbage collector; you choose where memory comes from, and what happens when it runs out.</span></li> |
| 42 | </ol> |
| 43 | <h2>Go</h2><ol start='10'> |
| 44 | <li><a href="errors.html">Errors</a> <span>A second result, compared by identity; passing errors up; and no exceptions.</span></li> |
| 45 | <li><a href="defer.html">Defer</a> <span>Clean up beside the line that needs it, in the right order, on every way out.</span></li> |
| 46 | <li><a href="checks.html">When it goes wrong</a> <span>Every index is checked, a failure says where and with what values, and how to read it.</span></li> |
| 47 | <li><a href="generics.html">Generic modules</a> <span>A module that takes types and procedures; the library's List, Map and Sort.</span></li> |
| 48 | <li><a href="c.html">Talking to C</a> <span>Call a C library, be called back, share variables, and mind the two buffers.</span></li> |
| 49 | <li><a href="threads.html">Threads</a> <span>Native threads without C, atomics, a mutex, and why the counter needs both.</span></li> |
| 50 | </ol></div> |
| 51 | </main> |
| 52 | <footer>raz is under the ISC license. <a href="../source/index.html">Source</a></footer> |
| 53 | </body> |
| 54 | </html> |