@shd101wyy/yo 0.0.26 → 0.0.28

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.
Files changed (63) hide show
  1. package/README.md +7 -6
  2. package/out/cjs/index.cjs +568 -563
  3. package/out/cjs/yo-cli.cjs +686 -556
  4. package/out/esm/index.mjs +509 -504
  5. package/out/types/src/build-runner.d.ts +22 -0
  6. package/out/types/src/cache.d.ts +3 -0
  7. package/out/types/src/codegen/async/state-machine.d.ts +1 -1
  8. package/out/types/src/codegen/codegen-c.d.ts +3 -0
  9. package/out/types/src/codegen/exprs/await.d.ts +1 -0
  10. package/out/types/src/codegen/exprs/return.d.ts +1 -0
  11. package/out/types/src/codegen/exprs/while.d.ts +1 -1
  12. package/out/types/src/codegen/functions/context.d.ts +6 -18
  13. package/out/types/src/codegen/functions/declarations.d.ts +10 -2
  14. package/out/types/src/codegen/index.d.ts +4 -0
  15. package/out/types/src/codegen/utils/index.d.ts +3 -0
  16. package/out/types/src/evaluator/async/await-analysis.d.ts +1 -0
  17. package/out/types/src/evaluator/builtins/build.d.ts +135 -0
  18. package/out/types/src/evaluator/context.d.ts +1 -0
  19. package/out/types/src/expr.d.ts +18 -0
  20. package/out/types/src/fetch-command.d.ts +6 -0
  21. package/out/types/src/fetch.d.ts +10 -0
  22. package/out/types/src/function-value.d.ts +1 -0
  23. package/out/types/src/init.d.ts +5 -0
  24. package/out/types/src/install-command.d.ts +6 -0
  25. package/out/types/src/lock-file.d.ts +16 -0
  26. package/out/types/src/module-manager.d.ts +3 -1
  27. package/out/types/src/pkg-config.d.ts +11 -0
  28. package/out/types/src/target.d.ts +28 -0
  29. package/out/types/src/tests/build-system.test.d.ts +1 -0
  30. package/out/types/src/types/creators.d.ts +2 -1
  31. package/out/types/src/types/definitions.d.ts +2 -1
  32. package/out/types/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +1 -1
  34. package/std/build.yo +287 -0
  35. package/std/crypto/random.yo +27 -15
  36. package/std/encoding/base64.yo +24 -49
  37. package/std/encoding/hex.yo +25 -22
  38. package/std/encoding/json.yo +25 -3
  39. package/std/encoding/utf16.yo +6 -5
  40. package/std/fs/dir.yo +107 -104
  41. package/std/fs/file.yo +122 -158
  42. package/std/fs/metadata.yo +23 -22
  43. package/std/fs/temp.yo +42 -48
  44. package/std/fs/walker.yo +48 -55
  45. package/std/net/addr.yo +8 -7
  46. package/std/net/dns.yo +27 -33
  47. package/std/net/errors.yo +13 -8
  48. package/std/net/tcp.yo +92 -113
  49. package/std/net/udp.yo +50 -54
  50. package/std/os/env.yo +5 -5
  51. package/std/os/signal.yo +21 -16
  52. package/std/path.yo +2 -2
  53. package/std/prelude.yo +23 -2
  54. package/std/process.yo +23 -43
  55. package/std/sys/clock.yo +1 -1
  56. package/std/sys/constants.yo +3 -3
  57. package/std/sys/errors.yo +45 -33
  58. package/std/sys/mmap.yo +2 -2
  59. package/std/sys/signals.yo +4 -4
  60. package/std/sys/socket.yo +25 -25
  61. package/std/sys/sysinfo.yo +4 -4
  62. package/std/url/url.yo +19 -32
  63. package/out/types/src/codegen/effects/effect-state-machine.d.ts +0 -34
package/README.md CHANGED
@@ -11,7 +11,7 @@ Yo aims to be **Simple** and **Fast** (around 0% - 15% slower than C).
11
11
 
12
12
  ## Features
13
13
 
14
- For the design of the language, please refer to [DESIGN.md](./docs/DESIGN.md).
14
+ For the design of the language, please refer to [DESIGN.md](./docs/en-US/DESIGN.md).
15
15
 
16
16
  Below is a non-exhaustive list of features that Yo supports:
17
17
 
@@ -19,11 +19,12 @@ Below is a non-exhaustive list of features that Yo supports:
19
19
  - Compile-time evaluation.
20
20
  - Homoiconicity and metaprogramming (**Yo** syntax is inspired by the **Lisp** S expression).
21
21
  - Closure.
22
- - [Algebraic Effects and Handlers](./docs/ALGEBRAIC_EFFECTS.md) (One-shot delimited continuation. Tail-Resumptive. Implicit parameters via `using`/`given`, effect handlers with `return`/`escape`).
23
- - [Async/await](./docs/ASYNC_AWAIT.md) (Builtin `IO` effect. Stackless coroutine & Cooperative multi-tasking. Lazy Futures, multi-await, single-threaded concurrency via state machine transformation).
24
- - `object` type with [Non-atomic Reference Counting and Thread-Local Cycle Collection](./docs/CYCLE_COLLECTION.md).
25
- - [Compile-time Reference Counting with Ownership and Lifetime Analysis](./docs/COMPILE_TIME_RC_WITH_OWNERSHIP_ANALYSIS.md).
26
- - Thread-per-core parallelism model (see [PARALLELISM.md](./docs/PARALLELISM.md)).
22
+ - [Algebraic Effects and Handlers](./docs/en-US/ALGEBRAIC_EFFECTS.md) (One-shot delimited continuation. Tail-Resumptive. Implicit parameters via `using`/`given`, effect handlers with `return`/`escape`, by [Evidence Passing](https://xnning.github.io/papers/multip.pdf)).
23
+ - [Async/await](./docs/en-US/ASYNC_AWAIT.md) (Builtin `IO` effect. Stackless coroutine & Cooperative multi-tasking. Lazy Futures, multi-await, single-threaded concurrency via state machine transformation).
24
+ - `object` type with [Non-atomic Reference Counting and Thread-Local Cycle Collection](./docs/en-US/CYCLE_COLLECTION.md).
25
+ - [Compile-time Reference Counting with Ownership and Lifetime Analysis](./docs/en-US/COMPILE_TIME_RC_WITH_OWNERSHIP_ANALYSIS.md).
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, WASM support).
27
28
  - **C** interop.
28
29
  - etc.
29
30