-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbookofnim.nim
59 lines (53 loc) · 2.16 KB
/
bookofnim.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##
## the book of nim
## ===============
## :Authors:
## noah
## :Org:
## personal
##[
## TLDR
- the minimum nim needed to make meaningful nim v2 apps
- always check the nim docs for the full syntax
- if viewing this online:
- every imported file has a `source` link to dive into the source code
- the imported files (see below)
- are grouped by expected search patterns & use case
- the nimscript guide [is available here](https://github.com/noahehall/nim/blob/develop/src/bookofnim/backends/targets/shell.nims)
links
-----
- [latest test results](https://noahehall.github.io/nim/htmldocs/testresults.html)
- use nims devel branch until the online documentation for v2 is ready
- [docs](https://github.com/nim-lang/Nim/tree/devel/doc)
- [system](https://github.com/nim-lang/Nim/blob/devel/lib/system.nim)
- [system imports](https://github.com/nim-lang/Nim/tree/devel/lib/system)
- [std](https://github.com/nim-lang/Nim/tree/devel/lib/std)
- [pure](https://github.com/nim-lang/Nim/tree/devel/lib/pure)
- [impure](https://github.com/nim-lang/Nim/tree/devel/lib/impure)
]##
{.push warning[UnusedImport]:off .}
# latest Nim v1
import bookofnim / helloworld / helloworld ## basic nim
import bookofnim / deepdives / [
asyncPar, ## concurrency, parallelism (except async servers)
collections, ## non list/queues, e.g. arrays and seqs
containers, ## tuples, tables and object
crypto, ## cryptography (+ random) related
data, ## json, csv, etc
dataWrangling, ## regex, strscan, etc
datetime, ## dates and times
ffi, ## interfacing with other languages
filters, ## templating systems and preprocessors
lists, ## list/queues
maths, ## statistical analysis, rational numbers, etc
memoryCompiler, ## memory GC and compiler
memoryRuntime, ## runtime memory operations
osIo, ## operating system, distros, files etc
packaging, ## packaging and configuring apps
pragmasEffects, ## pragmas and the effect system
servers, ## http, sockets, ftp etc + async versions
strings, ## string utils, en/decoders, etc
sugar, ## sugar, algorithms and other helpers
templateMacros, ## templates and macros
tests, ## testament
]