You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `core` package is a new and improved standard library for Motoko, focusing on:
11
11
* AI-friendly design patterns.
@@ -40,7 +40,7 @@ When updating to the `core` package:
40
40
- Hash-based data structures are no longer included in the standard library. It is encouraged to use ordered maps and sets for improved security.
41
41
- In some cases, it won't be possible to fully migrate to `core` due to removal of some features in `base`. In these cases, you can continue using both packages side-by-side or search for [Mops packages](https://mops.one/) built by the community.
42
42
43
-
For details on function signatures, please refer to the official [documentation](https://internetcomputer.org/docs/motoko/core/).
43
+
For details on function signatures, please refer to the official [documentation](./core/).
44
44
45
45
Also, feel free to ask for help by posting on the [ICP developer forum](https://forum.dfinity.org/c/developers) or opening a GitHub issue on the [`dfinity/motoko-core`](https://github.com/dfinity/motoko-core/issues) repository.
46
46
@@ -120,7 +120,7 @@ The `core` package brings significant changes to data structures, making a clear
`Iter.range()` has been removed in favor of type-specific range functions such as `Nat.range()`, `Int.range()`, `Nat32.range()`, etc. These functions have an **exclusive upper bound**, in contrast to the original inclusive upper bound of `Iter.range()`.
210
210
@@ -229,7 +229,7 @@ persistent actor {
229
229
230
230
Helper functions have been added, such as `allValues()`, for each finite type in the `base` package.
The `Random` module has been completely redesigned in the core package with a new API that provides better control over random number generation and supports both pseudo-random and cryptographic random number generation.
295
295
@@ -328,7 +328,7 @@ persistent actor {
328
328
-`crypto()` - Create cryptographic random generator using ICP entropy
329
329
-`cryptoFromState()` - Create cryptographic generator from state
@@ -967,4 +967,4 @@ If you experience issues with the migration pattern:
967
967
2. Verify that all types referenced in the migration function are accessible (marked as `public` if needed)
968
968
3. Test the migration incrementally by converting one data structure at a time
969
969
970
-
For additional help, visit the ICP [developer forum](https://forum.dfinity.org/c/developers) or [Discord community](https://discord.com/invite/e8Xr8A5pX3).
970
+
For additional help, visit the ICP [developer forum](https://forum.dfinity.org/c/developers) or [Discord community](https://discord.internetcomputer.org).
Copy file name to clipboardExpand all lines: doc/md/15-compiler-ref.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sidebar_position: 15
4
4
5
5
# Compiler reference
6
6
7
-
The Motoko compiler (`moc`) is the primary tool for compiling Motoko programs into executable WebAssembly (Wasm) modules. The compiler runs in the background when you build projects using the [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install). If you invoke the compiler directly on the command-line, you can press CTRL-C to exit.
7
+
The Motoko compiler (`moc`) is the primary tool for compiling Motoko programs into executable WebAssembly (Wasm) modules. The compiler runs in the background when you build projects using the [IC SDK](https://github.com/dfinity/sdk). If you invoke the compiler directly on the command-line, you can press CTRL-C to exit.
8
8
9
9
This section provides compiler command-line reference information.
10
10
@@ -67,7 +67,7 @@ You can use the following options with the `moc` command.
67
67
|`--stable-types`| Compile binary and emit signature of stable types to `.most` file. |
68
68
|`--stable-compatible <pre> <post>`| Test upgrade compatibility between stable-type signatures `<pre>` and `<post>`. |
69
69
|`--rts-stack-pages <n>`| Set maximum number of pages available for runtime system stack (only supported with classical persistence, default 32). |
70
-
|`--trap-on-call-error`| Trap, don't throw an [`Error`](https://internetcomputer.org/docs/motoko/core/Error), when an IC call fails due to destination queue full or freezing threshold is crossed. Emulates behavior of moc versions < 0.8.0. |
70
+
|`--trap-on-call-error`| Trap, don't throw an [`Error`](./core/Error), when an IC call fails due to destination queue full or freezing threshold is crossed. Emulates behavior of moc versions < 0.8.0. |
0 commit comments