@shd101wyy/yo 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -13
- package/out/cjs/index.cjs +453 -451
- package/out/cjs/yo-cli.cjs +477 -475
- package/out/esm/index.mjs +359 -357
- package/out/types/src/codegen/codegen-c.d.ts +2 -0
- package/out/types/src/codegen/exprs/asm.d.ts +4 -0
- package/out/types/src/codegen/utils/index.d.ts +1 -0
- package/out/types/src/evaluator/builtins/asm.d.ts +13 -0
- package/out/types/src/expr.d.ts +2 -0
- package/out/types/src/module-manager.d.ts +1 -0
- package/out/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/std/{toml → encoding}/toml.yo +6 -1
- package/std/http/client.yo +359 -0
- package/std/http/index.yo +22 -0
- package/std/log/{log.yo → index.yo} +2 -2
- package/std/regex/{regex.yo → index.yo} +1 -1
- package/std/url/{url.yo → index.yo} +2 -2
- /package/std/glob/{glob.yo → index.yo} +0 -0
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Below is a non-exhaustive list of features that Yo supports:
|
|
|
24
24
|
- `object` type with [Non-atomic Reference Counting and Thread-Local Cycle Collection](./docs/en-US/CYCLE_COLLECTION.md).
|
|
25
25
|
- [Compile-time Reference Counting with Ownership and Lifetime Analysis](./docs/en-US/COMPILE_TIME_RC_WITH_OWNERSHIP_ANALYSIS.md).
|
|
26
26
|
- Thread-per-core parallelism model (see [PARALLELISM.md](./docs/en-US/PARALLELISM.md)).
|
|
27
|
-
- [Declarative build system](./docs/en-US/BUILD_SYSTEM.md) inspired by Zig (`yo build`, `yo init`, cross-compilation
|
|
27
|
+
- [Declarative build system](./docs/en-US/BUILD_SYSTEM.md) inspired by Zig (`yo build`, `yo init`, cross-compilation).
|
|
28
28
|
- **C** interop.
|
|
29
29
|
- etc.
|
|
30
30
|
|
|
@@ -111,22 +111,27 @@ $ sudo pacman -S liburing
|
|
|
111
111
|
|
|
112
112
|
## Standard Library
|
|
113
113
|
|
|
114
|
+
_Still In Design_
|
|
115
|
+
|
|
114
116
|
Yo ships with a comprehensive standard library covering strings, collections, file I/O, networking, encoding, regex, crypto, and more. For the full module reference, see **[Standard Library Modules](./docs/STD_LIBRARY_MODULES.md)**.
|
|
115
117
|
|
|
116
118
|
Key modules include:
|
|
117
119
|
|
|
118
|
-
| Module | Import
|
|
119
|
-
| ----------- |
|
|
120
|
-
| String | `
|
|
121
|
-
| Collections | `"std/collections/array_list"`, `hash_map`,
|
|
122
|
-
| File System | `
|
|
123
|
-
| Networking | `
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
| Regex | `
|
|
128
|
-
| Crypto | `
|
|
129
|
-
|
|
|
120
|
+
| Module | Import | Description |
|
|
121
|
+
| ----------- | ------------------------------------------------------- | ----------------------------------------------------------- |
|
|
122
|
+
| String | `import "std/string"` | UTF-8 strings with parsing, search, transform |
|
|
123
|
+
| Collections | `import "std/collections/array_list"`, `hash_map`, etc. | ArrayList, HashMap, HashSet, BTreeMap, Deque, PriorityQueue |
|
|
124
|
+
| File System | `import "std/fs/file"` | Async file I/O, directories, metadata |
|
|
125
|
+
| Networking | `import "std/net/tcp"` | TCP/UDP sockets, DNS resolution |
|
|
126
|
+
| HTTP | `import "std/http"` | HTTP types, async client, `fetch` function |
|
|
127
|
+
| JSON | `import "std/encoding/json"` | Full JSON parser/stringifier |
|
|
128
|
+
| TOML | `import "std/encoding/toml"` | TOML config file parser |
|
|
129
|
+
| Regex | `import "std/regex"` | Regular expression engine |
|
|
130
|
+
| Crypto | `import "std/crypto/sha256"` | SHA-256, MD5, random |
|
|
131
|
+
| URL | `import "std/url"` | URL parsing and formatting |
|
|
132
|
+
| Glob | `import "std/glob"` | Unix-style glob pattern matching |
|
|
133
|
+
| Log | `import "std/log"` | Leveled logging |
|
|
134
|
+
| Formatting | `import "std/fmt"` | `print`, `println` for any `ToString` type |
|
|
130
135
|
|
|
131
136
|
## Code examples
|
|
132
137
|
|