-
-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathmkdocs.yml
More file actions
278 lines (266 loc) · 10.2 KB
/
mkdocs.yml
File metadata and controls
278 lines (266 loc) · 10.2 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
site_name: Pony Tutorial
site_description: A tutorial for the Pony programming language.
copyright: Copyright © 2025 The Pony Developers
edit_uri: edit/main/docs/
repo_url: https://github.com/ponylang/pony-tutorial/
site_url: https://tutorial.ponylang.io/
use_directory_urls: false
extra:
generator: false
social:
- icon: fontawesome/brands/github
link: https://github.com/ponylang
- icon: fontawesome/brands/twitter
link: https://twitter.com/ponylang
markdown_extensions:
- pymdownx.highlight
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid-experimental
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.snippets:
base_path: ['code-samples']
check_paths: true
dedent_subsections: true
- smarty
- toc:
permalink: true
plugins:
- search
- ezlinks
- llmstxt:
full_output: llms-full.txt
markdown_description: >-
The Pony Tutorial is a comprehensive guide to the Pony programming
language, an object-oriented, actor-model, capabilities-secure language.
It covers the type system, reference capabilities, generics, C FFI,
testing, and more. The target audience is programmers with some
experience in another language.
sections:
Introduction:
- index.md
Getting Started:
- getting-started/index.md
- getting-started/what-you-need.md
- getting-started/hello-world.md
- getting-started/how-it-works.md
Types:
- types/index.md
- types/at-a-glance.md
- types/classes.md
- types/primitives.md
- types/actors.md
- types/traits-and-interfaces.md
- types/structs.md
- types/type-aliases.md
- types/type-expressions.md
Expressions:
- expressions/index.md
- expressions/literals.md
- expressions/variables.md
- expressions/ops.md
- expressions/arithmetic.md
- expressions/control-structures.md
- expressions/match.md
- expressions/as.md
- expressions/methods.md
- expressions/errors.md
- expressions/equality.md
- expressions/sugar.md
- expressions/object-literals.md
- expressions/partial-application.md
Reference Capabilities:
- reference-capabilities/index.md
- reference-capabilities/reference-capabilities.md
- reference-capabilities/guarantees.md
- reference-capabilities/consume-and-destructive-read.md
- reference-capabilities/recovering-capabilities.md
- reference-capabilities/aliasing.md
- reference-capabilities/passing-and-sharing.md
- reference-capabilities/capability-subtyping.md
- reference-capabilities/combining-capabilities.md
- reference-capabilities/arrow-types.md
- reference-capabilities/capability-matrix.md
Object Capabilities:
- object-capabilities/index.md
- object-capabilities/object-capabilities.md
- object-capabilities/derived-authority.md
- object-capabilities/trust-boundary.md
Generics:
- generics/index.md
- generics/generics-and-reference-capabilities.md
- generics/generic-constraints.md
Packages:
- packages/index.md
- packages/use-statement.md
- packages/standard-library.md
Testing:
- testing/index.md
- testing/ponytest.md
- testing/ponycheck.md
C-FFI:
- c-ffi/index.md
- c-ffi/calling-c.md
- c-ffi/linking-c.md
- c-ffi/c-abi.md
- c-ffi/callbacks.md
Runtime Basics:
- runtime-basics/index.md
- runtime-basics/scheduler.md
- runtime-basics/program-lifecycle.md
- runtime-basics/garbage-collection.md
- runtime-basics/asio.md
- runtime-basics/backpressure.md
- runtime-basics/runtime-options.md
Gotchas:
- gotchas/index.md
- gotchas/divide-by-zero.md
- gotchas/garbage-collection.md
- gotchas/scheduling.md
- gotchas/side-effect-ordering-in-function-call-expressions.md
- gotchas/recursion.md
Where Next?:
- where-next/index.md
Appendices:
- appendices/index.md
- appendices/ponypath.md
- appendices/lexicon.md
- appendices/symbol-lookup-cheat-sheet.md
- appendices/keywords.md
- appendices/examples.md
- appendices/whitespace.md
- appendices/compiler-args.md
- appendices/platform-dependent-code.md
- appendices/error-messages.md
- appendices/annotations.md
- appendices/serialisation.md
theme:
name: material
favicon: assets/logo.png
features:
- content.code.copy
- content.code.select
- navigation.footer
- navigation.instant
- navigation.indexes
- navigation.tracking
- search.highlight
- search.share
- search.suggest
icon:
repo: fontawesome/brands/github
logo: assets/logo.png
palette:
# Light mode
- scheme: default
primary: brown
accent: amber
toggle:
icon: material/brightness-4
name: Switch to dark mode
# Dark mode
- scheme: slate
primary: brown
accent: amber
toggle:
icon: material/brightness-4
name: Switch to light mode
nav:
- Home: "index.md"
- Getting Started:
- Overview: "getting-started/index.md"
- What You Need: "getting-started/what-you-need.md"
- Hello World -- Your First Pony Program: "getting-started/hello-world.md"
- Hello World -- How It Works: "getting-started/how-it-works.md"
- Types:
- Overview: "types/index.md"
- The Pony Type System at a Glance: "types/at-a-glance.md"
- Classes: "types/classes.md"
- Primitives: "types/primitives.md"
- Actors: "types/actors.md"
- Traits and Interfaces: "types/traits-and-interfaces.md"
- Structs: "types/structs.md"
- Type Aliases: "types/type-aliases.md"
- Type Expressions: "types/type-expressions.md"
- Expressions:
- Overview: "expressions/index.md"
- Literals: "expressions/literals.md"
- Variables: "expressions/variables.md"
- Operators: "expressions/ops.md"
- Arithmetic: "expressions/arithmetic.md"
- Control Structures: "expressions/control-structures.md"
- Match Expressions: "expressions/match.md"
- As Operator: "expressions/as.md"
- Methods: "expressions/methods.md"
- Errors: "expressions/errors.md"
- Equality in Pony: "expressions/equality.md"
- Sugar: "expressions/sugar.md"
- Object Literals: "expressions/object-literals.md"
- Partial Application: "expressions/partial-application.md"
- Reference Capabilities:
- Overview: "reference-capabilities/index.md"
- Reference Capabilities: "reference-capabilities/reference-capabilities.md"
- Reference Capability Guarantees: "reference-capabilities/guarantees.md"
- Consume and Destructive Read: "reference-capabilities/consume-and-destructive-read.md"
- Recovering Capabilities: "reference-capabilities/recovering-capabilities.md"
- Aliasing: "reference-capabilities/aliasing.md"
- Passing and Sharing References: "reference-capabilities/passing-and-sharing.md"
- Capability Subtyping: "reference-capabilities/capability-subtyping.md"
- Combining Capabilities: "reference-capabilities/combining-capabilities.md"
- Arrow Types aka Viewpoints: "reference-capabilities/arrow-types.md"
- Reference Capability Matrix: "reference-capabilities/capability-matrix.md"
- Object Capabilities:
- Overview: "object-capabilities/index.md"
- Object Capabilities: "object-capabilities/object-capabilities.md"
- Derived Authority: "object-capabilities/derived-authority.md"
- Trust Boundary: "object-capabilities/trust-boundary.md"
- Generics:
- Overview: "generics/index.md"
- Generics and Reference Capabilities: "generics/generics-and-reference-capabilities.md"
- Constraints: "generics/generic-constraints.md"
- Packages:
- Overview: "packages/index.md"
- Use Statement: "packages/use-statement.md"
- Standard Library: "packages/standard-library.md"
- Testing:
- Overview: "testing/index.md"
- Testing with PonyTest: "testing/ponytest.md"
- Testing with PonyCheck: "testing/ponycheck.md"
- C-FFI:
- Overview: "c-ffi/index.md"
- Calling C from Pony: "c-ffi/calling-c.md"
- Linking to C Libraries: "c-ffi/linking-c.md"
- C ABI: "c-ffi/c-abi.md"
- Callbacks: "c-ffi/callbacks.md"
- Runtime Basics:
- Overview: "runtime-basics/index.md"
- The Scheduler: "runtime-basics/scheduler.md"
- Program Lifecycle: "runtime-basics/program-lifecycle.md"
- Garbage Collection: "runtime-basics/garbage-collection.md"
- The ASIO Subsystem: "runtime-basics/asio.md"
- Backpressure: "runtime-basics/backpressure.md"
- Runtime Options: "runtime-basics/runtime-options.md"
- Gotchas:
- Overview: "gotchas/index.md"
- Divide by Zero: "gotchas/divide-by-zero.md"
- Garbage Collection: "gotchas/garbage-collection.md"
- Scheduling: "gotchas/scheduling.md"
- Function Call Side Effects: "gotchas/side-effect-ordering-in-function-call-expressions.md"
- Recursion: "gotchas/recursion.md"
- Where Next?:
- Overview: "where-next/index.md"
- Appendices:
- Overview: "appendices/index.md"
- PONYPATH: "appendices/ponypath.md"
- Lexicon: "appendices/lexicon.md"
- Symbol Lookup Cheat Sheet: "appendices/symbol-lookup-cheat-sheet.md"
- Keywords: "appendices/keywords.md"
- Examples: "appendices/examples.md"
- Whitespace: "appendices/whitespace.md"
- Compiler Arguments: "appendices/compiler-args.md"
- Platform-dependent Code: "appendices/platform-dependent-code.md"
- A Short Guide to Pony Error Messages: "appendices/error-messages.md"
- Program Annotations: "appendices/annotations.md"
- Serialisation: "appendices/serialisation.md"