Nim on everything
Nim on everything Peter Munch-Ellingsen, M.Sc @PMunch – peterme.net What is Nim? » Compiled » Statically typed » Garbage collected » Speed of C, ease of Python, flexibility of Perl # Compute Compute average line length # From nim-lang.org var sum = 0 count = 0 for line in stdin.lines: sum += line.len count += 1 echo("Average line length: ", if count > 0: sum / count else: 0) result[0].addr, size) == nil: result = "" result.setLen(result.find('\0')) Nim on the smallest Nim on the smallest loadSprite(logo, "arduboy_logo_border.bmp", addSize = false) loadSprite(logoMask0 码力 | 16 页 | 2.09 MB | 1 年前3Nim 2.0.8 Manual
Nim Manual Authors: Andreas Rumpf, Zahary Karadjov Version: 2.0.8 "Complexity" seems to be a lot like "energy": you can transfer it from the end-user to one/some of the other players, but the document is a draft! Several of Nim's features may need more precise wording. This manual is constantly evolving into a proper speci�cation. Note: The experimental features of Nim are covered here (manual_experimental document. This document describes the lexis, the syntax, and the semantics of the Nim language. To learn how to compile Nim programs and generate documentation see the Compiler User Guide (nimc.html) and0 码力 | 132 页 | 5.73 MB | 1 年前3Nim 2.0.2 中文手册
Nim⼿册 作者: Andreas Rumpf, Zahary Karadjov 版本: |2.0.2+| "复杂性" 如同 "能量": 终端⽤户把它转嫁给其他参与者,但给定任务的总量似乎没变。 -- Ran T G b 关于⼿册 注意: 当前⼿册还是草案! Nim的⼀些功能需要更加准确的描述。⼿册内容也在不断更新,使其逐渐成为规范。 注意: Nim的实验性功能在这⾥ (manual_experimental html)。 注意: 赋值、移动和析构在⽂档特定的析构 (destructors.html)部分。 当前⼿册对 Nim 语⾔的词法、语法和语义做了描述。 打算学习怎样编译 Nim 程序和⽣成⽂档,请阅读⽤户编译指南 (nimc.html)和⽂档⽣成⼯具指南 (docgen.html)。 Nim语⾔使⽤"扩展BNF"来解释结构, (a)* 表示 0 个或多个 a , a+ 表示 1 个或多个 a 的简写。 例如: arrayConstructor = '' expr ^* ',' '' Nim 的其他,如作⽤域规则或运⾏时语义,使⽤⾮标准的描述。 ifStmt = 'if' expr ':' stmts ('elif' expr ':' stmts)* ('else' stmts)? 定义 Nim 代码是特定的计算单元,作⽤于称为 locations "地址"组件构成的内存。 变量本质上是地址的名称,每个变量和地址都有特定0 码力 | 127 页 | 7.05 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 512 页 | 3.54 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim . . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 508 页 | 3.50 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim. . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 512 页 | 3.53 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim . . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 508 页 | 3.54 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim . . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 508 页 | 3.50 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim . . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 508 页 | 3.52 MB | 1 年前3Computer Programming with the Nim Programming Language
Computer Programming with the Nim Programming Language A Gentle Introduction (C) Dr. Stefan Salewski 2020, 2021, 2022, 2023, 2024 Table of Contents About this book . . . . . . . . . . . . . . . . 23 Why Nim? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Some facts about Nim . . . . . . . . . . . . . . . . 28 Nim supports many programming styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Nim is efficient. . . . . . . . .0 码力 | 508 页 | 3.53 MB | 1 年前3
共 57 条
- 1
- 2
- 3
- 4
- 5
- 6