Nim on everythingNim 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 年前3
Nim 2.0.8 ManualNim 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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 年前3
Computer Programming with the Nim Programming LanguageComputer 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
Computer Programming with the Nim Programming LanguageComputer 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.50 MB | 1 年前3
共 110 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11













