zexus 1.7.1 → 1.8.0

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 (159) hide show
  1. package/README.md +26 -3
  2. package/package.json +1 -1
  3. package/src/__init__.py +7 -0
  4. package/src/zexus/__init__.py +1 -1
  5. package/src/zexus/__pycache__/__init__.cpython-312.pyc +0 -0
  6. package/src/zexus/__pycache__/capability_system.cpython-312.pyc +0 -0
  7. package/src/zexus/__pycache__/debug_sanitizer.cpython-312.pyc +0 -0
  8. package/src/zexus/__pycache__/environment.cpython-312.pyc +0 -0
  9. package/src/zexus/__pycache__/error_reporter.cpython-312.pyc +0 -0
  10. package/src/zexus/__pycache__/input_validation.cpython-312.pyc +0 -0
  11. package/src/zexus/__pycache__/lexer.cpython-312.pyc +0 -0
  12. package/src/zexus/__pycache__/module_cache.cpython-312.pyc +0 -0
  13. package/src/zexus/__pycache__/module_manager.cpython-312.pyc +0 -0
  14. package/src/zexus/__pycache__/object.cpython-312.pyc +0 -0
  15. package/src/zexus/__pycache__/security.cpython-312.pyc +0 -0
  16. package/src/zexus/__pycache__/security_enforcement.cpython-312.pyc +0 -0
  17. package/src/zexus/__pycache__/syntax_validator.cpython-312.pyc +0 -0
  18. package/src/zexus/__pycache__/zexus_ast.cpython-312.pyc +0 -0
  19. package/src/zexus/__pycache__/zexus_token.cpython-312.pyc +0 -0
  20. package/src/zexus/access_control_system/__pycache__/__init__.cpython-312.pyc +0 -0
  21. package/src/zexus/access_control_system/__pycache__/access_control.cpython-312.pyc +0 -0
  22. package/src/zexus/advanced_types.py +17 -2
  23. package/src/zexus/blockchain/__init__.py +411 -0
  24. package/src/zexus/blockchain/accelerator.py +1187 -0
  25. package/src/zexus/blockchain/chain.py +660 -0
  26. package/src/zexus/blockchain/consensus.py +821 -0
  27. package/src/zexus/blockchain/contract_vm.py +1425 -0
  28. package/src/zexus/blockchain/crypto.py +79 -14
  29. package/src/zexus/blockchain/events.py +526 -0
  30. package/src/zexus/blockchain/loadtest.py +721 -0
  31. package/src/zexus/blockchain/monitoring.py +350 -0
  32. package/src/zexus/blockchain/mpt.py +716 -0
  33. package/src/zexus/blockchain/multichain.py +951 -0
  34. package/src/zexus/blockchain/multiprocess_executor.py +338 -0
  35. package/src/zexus/blockchain/network.py +886 -0
  36. package/src/zexus/blockchain/node.py +666 -0
  37. package/src/zexus/blockchain/rpc.py +1203 -0
  38. package/src/zexus/blockchain/rust_bridge.py +485 -0
  39. package/src/zexus/blockchain/storage.py +423 -0
  40. package/src/zexus/blockchain/tokens.py +750 -0
  41. package/src/zexus/blockchain/upgradeable.py +1004 -0
  42. package/src/zexus/blockchain/verification.py +1602 -0
  43. package/src/zexus/blockchain/wallet.py +621 -0
  44. package/src/zexus/cli/__pycache__/main.cpython-312.pyc +0 -0
  45. package/src/zexus/cli/main.py +300 -20
  46. package/src/zexus/cli/zpm.py +1 -1
  47. package/src/zexus/compiler/__pycache__/bytecode.cpython-312.pyc +0 -0
  48. package/src/zexus/compiler/__pycache__/lexer.cpython-312.pyc +0 -0
  49. package/src/zexus/compiler/__pycache__/parser.cpython-312.pyc +0 -0
  50. package/src/zexus/compiler/__pycache__/semantic.cpython-312.pyc +0 -0
  51. package/src/zexus/compiler/__pycache__/zexus_ast.cpython-312.pyc +0 -0
  52. package/src/zexus/compiler/lexer.py +10 -5
  53. package/src/zexus/concurrency_system.py +79 -0
  54. package/src/zexus/config.py +54 -0
  55. package/src/zexus/crypto_bridge.py +244 -8
  56. package/src/zexus/dap/__init__.py +10 -0
  57. package/src/zexus/dap/__main__.py +4 -0
  58. package/src/zexus/dap/dap_server.py +391 -0
  59. package/src/zexus/dap/debug_engine.py +298 -0
  60. package/src/zexus/environment.py +10 -1
  61. package/src/zexus/evaluator/__pycache__/bytecode_compiler.cpython-312.pyc +0 -0
  62. package/src/zexus/evaluator/__pycache__/core.cpython-312.pyc +0 -0
  63. package/src/zexus/evaluator/__pycache__/expressions.cpython-312.pyc +0 -0
  64. package/src/zexus/evaluator/__pycache__/functions.cpython-312.pyc +0 -0
  65. package/src/zexus/evaluator/__pycache__/resource_limiter.cpython-312.pyc +0 -0
  66. package/src/zexus/evaluator/__pycache__/statements.cpython-312.pyc +0 -0
  67. package/src/zexus/evaluator/__pycache__/unified_execution.cpython-312.pyc +0 -0
  68. package/src/zexus/evaluator/__pycache__/utils.cpython-312.pyc +0 -0
  69. package/src/zexus/evaluator/bytecode_compiler.py +441 -37
  70. package/src/zexus/evaluator/core.py +560 -49
  71. package/src/zexus/evaluator/expressions.py +122 -49
  72. package/src/zexus/evaluator/functions.py +417 -16
  73. package/src/zexus/evaluator/statements.py +521 -118
  74. package/src/zexus/evaluator/unified_execution.py +573 -72
  75. package/src/zexus/evaluator/utils.py +14 -2
  76. package/src/zexus/event_loop.py +186 -0
  77. package/src/zexus/lexer.py +742 -486
  78. package/src/zexus/lsp/__init__.py +1 -1
  79. package/src/zexus/lsp/definition_provider.py +163 -9
  80. package/src/zexus/lsp/server.py +22 -8
  81. package/src/zexus/lsp/symbol_provider.py +182 -9
  82. package/src/zexus/module_cache.py +237 -9
  83. package/src/zexus/object.py +64 -6
  84. package/src/zexus/parser/__pycache__/parser.cpython-312.pyc +0 -0
  85. package/src/zexus/parser/__pycache__/strategy_context.cpython-312.pyc +0 -0
  86. package/src/zexus/parser/__pycache__/strategy_structural.cpython-312.pyc +0 -0
  87. package/src/zexus/parser/parser.py +786 -285
  88. package/src/zexus/parser/strategy_context.py +407 -66
  89. package/src/zexus/parser/strategy_structural.py +117 -19
  90. package/src/zexus/persistence.py +15 -1
  91. package/src/zexus/renderer/__init__.py +15 -0
  92. package/src/zexus/renderer/__pycache__/__init__.cpython-312.pyc +0 -0
  93. package/src/zexus/renderer/__pycache__/backend.cpython-312.pyc +0 -0
  94. package/src/zexus/renderer/__pycache__/canvas.cpython-312.pyc +0 -0
  95. package/src/zexus/renderer/__pycache__/color_system.cpython-312.pyc +0 -0
  96. package/src/zexus/renderer/__pycache__/layout.cpython-312.pyc +0 -0
  97. package/src/zexus/renderer/__pycache__/main_renderer.cpython-312.pyc +0 -0
  98. package/src/zexus/renderer/__pycache__/painter.cpython-312.pyc +0 -0
  99. package/src/zexus/renderer/tk_backend.py +208 -0
  100. package/src/zexus/renderer/web_backend.py +260 -0
  101. package/src/zexus/runtime/__pycache__/__init__.cpython-312.pyc +0 -0
  102. package/src/zexus/runtime/__pycache__/async_runtime.cpython-312.pyc +0 -0
  103. package/src/zexus/runtime/__pycache__/load_manager.cpython-312.pyc +0 -0
  104. package/src/zexus/runtime/file_flags.py +137 -0
  105. package/src/zexus/safety/__pycache__/__init__.cpython-312.pyc +0 -0
  106. package/src/zexus/safety/__pycache__/memory_safety.cpython-312.pyc +0 -0
  107. package/src/zexus/security.py +424 -34
  108. package/src/zexus/stdlib/fs.py +23 -18
  109. package/src/zexus/stdlib/http.py +289 -186
  110. package/src/zexus/stdlib/sockets.py +207 -163
  111. package/src/zexus/stdlib/websockets.py +282 -0
  112. package/src/zexus/stdlib_integration.py +369 -2
  113. package/src/zexus/strategy_recovery.py +6 -3
  114. package/src/zexus/type_checker.py +423 -0
  115. package/src/zexus/virtual_filesystem.py +189 -2
  116. package/src/zexus/vm/__init__.py +113 -3
  117. package/src/zexus/vm/__pycache__/async_optimizer.cpython-312.pyc +0 -0
  118. package/src/zexus/vm/__pycache__/bytecode.cpython-312.pyc +0 -0
  119. package/src/zexus/vm/__pycache__/bytecode_converter.cpython-312.pyc +0 -0
  120. package/src/zexus/vm/__pycache__/cache.cpython-312.pyc +0 -0
  121. package/src/zexus/vm/__pycache__/compiler.cpython-312.pyc +0 -0
  122. package/src/zexus/vm/__pycache__/gas_metering.cpython-312.pyc +0 -0
  123. package/src/zexus/vm/__pycache__/jit.cpython-312.pyc +0 -0
  124. package/src/zexus/vm/__pycache__/parallel_vm.cpython-312.pyc +0 -0
  125. package/src/zexus/vm/__pycache__/vm.cpython-312.pyc +0 -0
  126. package/src/zexus/vm/async_optimizer.py +14 -1
  127. package/src/zexus/vm/binary_bytecode.py +659 -0
  128. package/src/zexus/vm/bytecode.py +28 -1
  129. package/src/zexus/vm/bytecode_converter.py +26 -12
  130. package/src/zexus/vm/cabi.c +1985 -0
  131. package/src/zexus/vm/cabi.cpython-312-x86_64-linux-gnu.so +0 -0
  132. package/src/zexus/vm/cabi.h +127 -0
  133. package/src/zexus/vm/cache.py +557 -17
  134. package/src/zexus/vm/compiler.py +703 -5
  135. package/src/zexus/vm/fastops.c +13861 -0
  136. package/src/zexus/vm/fastops.cpython-312-x86_64-linux-gnu.so +0 -0
  137. package/src/zexus/vm/fastops.pyx +288 -0
  138. package/src/zexus/vm/gas_metering.py +52 -11
  139. package/src/zexus/vm/jit.py +83 -2
  140. package/src/zexus/vm/native_jit_backend.py +1816 -0
  141. package/src/zexus/vm/native_runtime.cpp +1388 -0
  142. package/src/zexus/vm/native_runtime.cpython-312-x86_64-linux-gnu.so +0 -0
  143. package/src/zexus/vm/optimizer.py +161 -11
  144. package/src/zexus/vm/parallel_vm.py +118 -42
  145. package/src/zexus/vm/peephole_optimizer.py +82 -4
  146. package/src/zexus/vm/profiler.py +38 -18
  147. package/src/zexus/vm/register_allocator.py +16 -5
  148. package/src/zexus/vm/register_vm.py +8 -5
  149. package/src/zexus/vm/vm.py +3589 -588
  150. package/src/zexus/vm/wasm_compiler.py +658 -0
  151. package/src/zexus/zexus_ast.py +63 -11
  152. package/src/zexus/zexus_token.py +13 -5
  153. package/src/zexus/zpm/installer.py +55 -15
  154. package/src/zexus/zpm/package_manager.py +1 -1
  155. package/src/zexus/zpm/registry.py +257 -28
  156. package/src/zexus.egg-info/PKG-INFO +30 -4
  157. package/src/zexus.egg-info/SOURCES.txt +133 -9
  158. package/src/zexus.egg-info/entry_points.txt +1 -0
  159. package/src/zexus.egg-info/requires.txt +4 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zexus
3
- Version: 1.7.1
3
+ Version: 1.8.0
4
4
  Summary: A modern, security-first programming language with blockchain support
5
5
  Home-page: https://github.com/Zaidux/zexus-interpreter
6
6
  Author: Zaidux
@@ -41,6 +41,9 @@ Requires-Dist: mypy>=0.900; extra == "dev"
41
41
  Provides-Extra: blockchain
42
42
  Requires-Dist: web3>=5.0; extra == "blockchain"
43
43
  Requires-Dist: eth-account>=0.5; extra == "blockchain"
44
+ Provides-Extra: jit
45
+ Requires-Dist: llvmlite>=0.41.0; extra == "jit"
46
+ Requires-Dist: Cython>=0.29; extra == "jit"
44
47
  Dynamic: author
45
48
  Dynamic: home-page
46
49
  Dynamic: license-file
@@ -50,7 +53,7 @@ Dynamic: requires-python
50
53
 
51
54
  <div align="center">
52
55
 
53
- ![Zexus Logo](https://img.shields.io/badge/Zexus-v1.7.1-FF6B35?style=for-the-badge)
56
+ ![Zexus Logo](https://img.shields.io/badge/Zexus-v1.8.0-FF6B35?style=for-the-badge)
54
57
  [![License](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](LICENSE)
55
58
  [![Python](https://img.shields.io/badge/Python-3.8+-3776AB?style=for-the-badge&logo=python)](https://python.org)
56
59
  [![GitHub](https://img.shields.io/badge/GitHub-Zaidux/zexus--interpreter-181717?style=for-the-badge&logo=github)](https://github.com/Zaidux/zexus-interpreter)
@@ -115,9 +118,9 @@ Zexus is a next-generation, general-purpose programming language designed for se
115
118
 
116
119
  ---
117
120
 
118
- ## 🎉 What's New in v1.7.1
121
+ ## 🎉 What's New in v1.8.0
119
122
 
120
- ### Latest Features (v1.7.1)
123
+ ### Latest Features (v1.8.0)
121
124
 
122
125
  ✅ **FIND Keyword** - Declarative project search that resolves exact module paths with scope filtering and smart suggestions
123
126
  ✅ **LOAD Keyword & Manager** - Provider-aware configuration loader with built-in ENV, JSON, and YAML support plus caching
@@ -2640,6 +2643,29 @@ See [Ecosystem Strategy](docs/ECOSYSTEM_STRATEGY.md) for detailed roadmap.
2640
2643
  - Consider using `native` keyword for C/C++ FFI
2641
2644
  - Profile with `memory_stats()` to check for leaks
2642
2645
 
2646
+ #### PyPI upload fails on Termux with: "unsupported platform tag 'linux_aarch64'"
2647
+ - PyPI rejects wheels with generic `linux_*` platform tags (common when building on Termux).
2648
+ - **Fix**: upload an sdist (source distribution) and/or a pure-Python wheel:
2649
+ - `python -m pip install --upgrade build twine`
2650
+ - `python -m build` # creates `dist/*.tar.gz` and (by default) a `py3-none-any.whl`
2651
+ - `python -m twine upload dist/*.tar.gz dist/*-py3-none-any.whl`
2652
+ - `ZEXUS_BUILD_EXTENSIONS=1 python -m build` means: **build the optional native extensions** (Cython/C/C++) *in addition* to the Python code (it does not skip Python). This produces a **platform-specific** wheel.
2653
+ - If you want “everything compiled” locally, use:
2654
+ - `ZEXUS_BUILD_EXTENSIONS=1 python -m build`
2655
+ - or `ZEXUS_BUILD_EXTENSIONS=1 python -m pip install .`
2656
+ - For publishing native wheels to PyPI, build them in a manylinux environment (e.g. GitHub Actions + cibuildwheel). Wheels built on Termux are usually **not** PyPI-uploadable.
2657
+ - This repo includes a workflow you can run: `.github/workflows/wheels.yml` (builds manylinux `aarch64` + `x86_64`, plus macOS/Windows wheels).
2658
+ - To publish from GitHub Actions without API tokens, use **PyPI Trusted Publishing**:
2659
+ - PyPI → your project → **Settings** → **Publishing** → **Trusted publishers** → **Add a new trusted publisher**
2660
+ - Provider: **GitHub Actions**
2661
+ - Owner: `Zaidux` (or your GitHub org/user)
2662
+ - Repository: `zexus-interpreter`
2663
+ - Workflow: `.github/workflows/wheels.yml`
2664
+ - Environment: `pypi` (and optionally also add another trusted publisher entry for `testpypi`)
2665
+ - Then either:
2666
+ - Run **Actions → “Build wheels (cibuildwheel)” → Run workflow** and choose `testpypi` first, or
2667
+ - Push a release tag like `v1.7.3` to auto-build + publish
2668
+
2643
2669
  #### Blockchain/Contract issues
2644
2670
  - Remember `TX` is a global context object (uppercase)
2645
2671
  - Use `persistent storage` for contract state
@@ -1,12 +1,18 @@
1
1
  .gitattributes
2
2
  .gitignore
3
3
  ADDITIONAL_FIXES_1.6.7.md
4
+ BLOCKCHAIN_MODULE_FULL_SOURCE.md
4
5
  CHANGELOG.md
5
6
  COMPLETE_FIXES_DOCUMENTATION.md
7
+ CURRENT_ZEXUS.md
6
8
  DEMO_ALL_FIXES.zx
7
9
  FIX_SUMMARY.md
8
10
  LICENSE
11
+ NEXT_STEPS.md
9
12
  PARSER_SEMICOLON_FIX.md
13
+ PERFORMANCE_OPTIMIZATION_REPORT.md
14
+ PHASES.md
15
+ PLAN.md
10
16
  PUBLISH_TO_NPM.md
11
17
  QUICK_START.md
12
18
  README.md
@@ -16,9 +22,19 @@ SECURITY_REMEDIATION_COMPLETE.md
16
22
  SPEED_RESULTS.md
17
23
  SYSTEM_ANALYSIS_FINDINGS.md
18
24
  UNIFIED_SYSTEM_COMPLETE.md
25
+ VM_DEEP_DIVE_TRACKING.md
26
+ VM_KEYWORD_SUPPORT_REPORT.md
19
27
  VULNERABILITY_FINDINGS.md
20
28
  VULNERABILITY_TEST_RESULTS.md
29
+ ZEXUS_BLOCKCHAIN_REFERENCE.md
21
30
  any.zx
31
+ bench_compare.py
32
+ bench_gas_stress.py
33
+ bench_phase3.py
34
+ bench_phase6.py
35
+ bench_quick.py
36
+ bench_vs.py
37
+ benchmark_rust_vm.py
22
38
  check_action_tokens.py
23
39
  check_tokens.py
24
40
  check_verify_ast.py
@@ -32,9 +48,12 @@ demo_simple_working.zx
32
48
  dynamic.zx
33
49
  dynamic_math.zx
34
50
  fix_type_checks.py
51
+ full_log.txt
35
52
  index.zx
36
53
  install.sh
37
54
  package.json
55
+ patch_vm.py
56
+ probe_list_debug.txt
38
57
  profile_performance.py
39
58
  pyproject.toml
40
59
  pytest.ini
@@ -44,19 +63,14 @@ setup.py
44
63
  setup_stdlib.sh
45
64
  shared_config.json
46
65
  stress_test_output_full.txt
47
- test_action_calls.zx
48
- test_contract_assign.zx
49
66
  test_contract_parse.py
50
67
  test_data.json
51
- test_gas_limit.zx
52
- test_gas_metering.zx
53
- test_multiline_parse.zx
68
+ test_hash.zx
54
69
  test_parse_assignment.py
55
- test_simple_action.zx
56
- test_simple_loop.zx
57
- test_this_keyword.zx
58
- test_time_builtin.zx
70
+ test_quick_wins.zx
59
71
  ultimate_test.zx
72
+ vm_feature_verify.zx
73
+ vm_test_data.txt
60
74
  zexus.json
61
75
  zpics
62
76
  zpm
@@ -66,6 +80,7 @@ zx-dev
66
80
  zx-run
67
81
  zx.bin
68
82
  .github/linguist.yml
83
+ .github/workflows/wheels.yml
69
84
  .vscode/extensions.json
70
85
  .vscode/settings.json
71
86
  .vscode/extensions/zexus-language/README.md
@@ -147,6 +162,20 @@ bin/zx
147
162
  bin/zx-deploy
148
163
  bin/zx-dev
149
164
  bin/zx-run
165
+ blockchain_demo/address_prefix.zx
166
+ blockchain_demo/dex.zx
167
+ blockchain_demo/governance.zx
168
+ blockchain_demo/main.zx
169
+ blockchain_demo/multichain_bridge.zx
170
+ blockchain_demo/nft.zx
171
+ blockchain_demo/staking.zx
172
+ blockchain_demo/test_import_closure.zx
173
+ blockchain_demo/test_module.zx
174
+ blockchain_demo/test_utils_import.zx
175
+ blockchain_demo/test_utils_import2.zx
176
+ blockchain_demo/token.zx
177
+ blockchain_demo/utils.zx
178
+ blockchain_demo/wallet.zx
150
179
  blockchain_test/PARSER_FIX_DATA_DECLARATIONS.md
151
180
  blockchain_test/PERFORMANCE_ANALYSIS.md
152
181
  blockchain_test/PERFORMANCE_FINAL_REPORT.md
@@ -165,6 +194,8 @@ blockchain_test/perf_10k_v2.zx
165
194
  blockchain_test/perf_10k_v3.zx
166
195
  blockchain_test/perf_500.zx
167
196
  blockchain_test/perf_clean.txt
197
+ blockchain_test/perf_full_network_100.zx
198
+ blockchain_test/perf_full_network_10k.zx
168
199
  blockchain_test/perf_quick_100.zx
169
200
  blockchain_test/performance_results.txt
170
201
  blockchain_test/performance_results_simple.txt
@@ -191,6 +222,14 @@ blockchain_test/vm_perf_100.zx
191
222
  blockchain_test/vm_test_basic.zx
192
223
  blockchain_test/vm_test_simple.zx
193
224
  blockchain_test/wallet.zx
225
+ blockchain_test/full_network_chain/full_network_blockchain.zx
226
+ blockchain_test/full_network_chain/tmp_account_init.zx
227
+ blockchain_test/full_network_chain/tmp_assign_test.zx
228
+ blockchain_test/full_network_chain/tmp_min.zx
229
+ blockchain_test/full_network_chain/tmp_pass_contract.zx
230
+ blockchain_test/full_network_chain/tmp_simple.zx
231
+ blockchain_test/full_network_chain/tmp_store_contract.zx
232
+ blockchain_test/security_tests/blockchain_exploit_probe.zx
194
233
  blockchain_test/security_tests_working/test_dos_working.zx
195
234
  blockchain_test/security_tests_working/test_overflow_working.zx
196
235
  blockchain_test/security_tests_working/test_reentrancy_working.zx
@@ -233,6 +272,7 @@ docs/PERFORMANCE_FEATURES.md
233
272
  docs/PHILOSOPHY.md
234
273
  docs/PLUGIN_QUICK_REFERENCE.md
235
274
  docs/PLUGIN_SYSTEM.md
275
+ docs/PYPI_TRUSTED_PUBLISHING.md
236
276
  docs/QUICK_REFERENCE.md
237
277
  docs/QUICK_START.md
238
278
  docs/README.md
@@ -443,6 +483,18 @@ linguist-submission/zexus.tmLanguage.json
443
483
  linguist-submission/samples/basic.zx
444
484
  linguist-submission/samples/blockchain.zx
445
485
  linguist-submission/samples/security.zx
486
+ rust_core/Cargo.lock
487
+ rust_core/Cargo.toml
488
+ rust_core/src/binary_bytecode.rs
489
+ rust_core/src/contract_vm.rs
490
+ rust_core/src/executor.rs
491
+ rust_core/src/hasher.rs
492
+ rust_core/src/lib.rs
493
+ rust_core/src/merkle.rs
494
+ rust_core/src/rust_vm.rs
495
+ rust_core/src/signature.rs
496
+ rust_core/src/state_adapter.rs
497
+ rust_core/src/validator.rs
446
498
  samples/basic.zx
447
499
  samples/blockchain.zx
448
500
  samples/security.zx
@@ -453,10 +505,12 @@ scripts/fixed_parser.py
453
505
  scripts/integration_demo.py
454
506
  scripts/main.py
455
507
  scripts/postinstall.js
508
+ scripts/profile_full_network_components.py
456
509
  scripts/run_zexus_tests.py
457
510
  scripts/zpm.py
458
511
  scripts/zx-luncher.py
459
512
  src/README.md
513
+ src/__init__.py
460
514
  src/tests/run_zexus_tests.py
461
515
  src/tests/test_all_phases.zx
462
516
  src/tests/test_blockchain_features.zx
@@ -493,6 +547,7 @@ src/zexus/environment.py
493
547
  src/zexus/environment_manager.py
494
548
  src/zexus/error_reporter.py
495
549
  src/zexus/evaluator_original.py
550
+ src/zexus/event_loop.py
496
551
  src/zexus/external_bridge.py
497
552
  src/zexus/find_affected_imports.sh
498
553
  src/zexus/hybrid_orchestrator.py
@@ -515,6 +570,7 @@ src/zexus/stack_trace.py
515
570
  src/zexus/stdlib_integration.py
516
571
  src/zexus/strategy_recovery.py
517
572
  src/zexus/syntax_validator.py
573
+ src/zexus/type_checker.py
518
574
  src/zexus/type_system.py
519
575
  src/zexus/validation_system.py
520
576
  src/zexus/virtual_filesystem.py
@@ -530,9 +586,28 @@ src/zexus.egg-info/top_level.txt
530
586
  src/zexus/access_control_system/__init__.py
531
587
  src/zexus/access_control_system/access_control.py
532
588
  src/zexus/blockchain/__init__.py
589
+ src/zexus/blockchain/accelerator.py
590
+ src/zexus/blockchain/chain.py
591
+ src/zexus/blockchain/consensus.py
592
+ src/zexus/blockchain/contract_vm.py
533
593
  src/zexus/blockchain/crypto.py
594
+ src/zexus/blockchain/events.py
534
595
  src/zexus/blockchain/ledger.py
596
+ src/zexus/blockchain/loadtest.py
597
+ src/zexus/blockchain/monitoring.py
598
+ src/zexus/blockchain/mpt.py
599
+ src/zexus/blockchain/multichain.py
600
+ src/zexus/blockchain/multiprocess_executor.py
601
+ src/zexus/blockchain/network.py
602
+ src/zexus/blockchain/node.py
603
+ src/zexus/blockchain/rpc.py
604
+ src/zexus/blockchain/rust_bridge.py
605
+ src/zexus/blockchain/storage.py
606
+ src/zexus/blockchain/tokens.py
535
607
  src/zexus/blockchain/transaction.py
608
+ src/zexus/blockchain/upgradeable.py
609
+ src/zexus/blockchain/verification.py
610
+ src/zexus/blockchain/wallet.py
536
611
  src/zexus/cli/__init__.py
537
612
  src/zexus/cli/main.py
538
613
  src/zexus/cli/zpm.py
@@ -543,6 +618,10 @@ src/zexus/compiler/lexer.py
543
618
  src/zexus/compiler/parser.py
544
619
  src/zexus/compiler/semantic.py
545
620
  src/zexus/compiler/zexus_ast.py
621
+ src/zexus/dap/__init__.py
622
+ src/zexus/dap/__main__.py
623
+ src/zexus/dap/dap_server.py
624
+ src/zexus/dap/debug_engine.py
546
625
  src/zexus/evaluator/__init__.py
547
626
  src/zexus/evaluator/bytecode_compiler.py
548
627
  src/zexus/evaluator/core.py
@@ -575,8 +654,11 @@ src/zexus/renderer/graphics.py
575
654
  src/zexus/renderer/layout.py
576
655
  src/zexus/renderer/main_renderer.py
577
656
  src/zexus/renderer/painter.py
657
+ src/zexus/renderer/tk_backend.py
658
+ src/zexus/renderer/web_backend.py
578
659
  src/zexus/runtime/__init__.py
579
660
  src/zexus/runtime/async_runtime.py
661
+ src/zexus/runtime/file_flags.py
580
662
  src/zexus/runtime/load_manager.py
581
663
  src/zexus/safety/__init__.py
582
664
  src/zexus/safety/memory_safety.py
@@ -600,18 +682,29 @@ src/zexus/stdlib/regex.py
600
682
  src/zexus/stdlib/sockets.py
601
683
  src/zexus/stdlib/test_framework.zx
602
684
  src/zexus/stdlib/test_runner.zx
685
+ src/zexus/stdlib/websockets.py
603
686
  src/zexus/testing/zpics.py
604
687
  src/zexus/testing/zpics_runtime.py
605
688
  src/zexus/vm/__init__.py
606
689
  src/zexus/vm/async_optimizer.py
690
+ src/zexus/vm/binary_bytecode.py
607
691
  src/zexus/vm/bytecode.py
608
692
  src/zexus/vm/bytecode_converter.py
693
+ src/zexus/vm/cabi.c
694
+ src/zexus/vm/cabi.cpython-312-x86_64-linux-gnu.so
695
+ src/zexus/vm/cabi.h
609
696
  src/zexus/vm/cache.py
610
697
  src/zexus/vm/compiler.py
698
+ src/zexus/vm/fastops.c
699
+ src/zexus/vm/fastops.cpython-312-x86_64-linux-gnu.so
700
+ src/zexus/vm/fastops.pyx
611
701
  src/zexus/vm/gas_metering.py
612
702
  src/zexus/vm/jit.py
613
703
  src/zexus/vm/memory_manager.py
614
704
  src/zexus/vm/memory_pool.py
705
+ src/zexus/vm/native_jit_backend.py
706
+ src/zexus/vm/native_runtime.cpp
707
+ src/zexus/vm/native_runtime.cpython-312-x86_64-linux-gnu.so
615
708
  src/zexus/vm/optimizer.py
616
709
  src/zexus/vm/parallel_vm.py
617
710
  src/zexus/vm/peephole_optimizer.py
@@ -620,6 +713,7 @@ src/zexus/vm/register_allocator.py
620
713
  src/zexus/vm/register_vm.py
621
714
  src/zexus/vm/ssa_converter.py
622
715
  src/zexus/vm/vm.py
716
+ src/zexus/vm/wasm_compiler.py
623
717
  src/zexus/zpm/__init__.py
624
718
  src/zexus/zpm/installer.py
625
719
  src/zexus/zpm/package_manager.py
@@ -665,6 +759,15 @@ tests/advanced_edge_cases/test_network_capabilities.py
665
759
  tests/advanced_edge_cases/test_recursion_limits.py
666
760
  tests/advanced_edge_cases/test_resource_cleanup.py
667
761
  tests/advanced_edge_cases/test_resource_cleanup_simple.py
762
+ tests/blockchain/__init__.py
763
+ tests/blockchain/test_blockchain_infra.py
764
+ tests/blockchain/test_contract_vm_multichain.py
765
+ tests/blockchain/test_crypto_plugin.py
766
+ tests/blockchain/test_multichain.py
767
+ tests/blockchain/test_nine_features.py
768
+ tests/blockchain/test_phase0_bytecode_vm.py
769
+ tests/blockchain/test_rpc.py
770
+ tests/blockchain/test_three_features.py
668
771
  tests/builtin_modules/README.md
669
772
  tests/builtin_modules/test_crypto_basic.zx
670
773
  tests/edge_cases/README.md
@@ -950,10 +1053,12 @@ tests/unit/test_concurrent_execution.py
950
1053
  tests/unit/test_convenience_advanced_features.py
951
1054
  tests/unit/test_ecosystem.py
952
1055
  tests/unit/test_edge_cases.py
1056
+ tests/unit/test_evaluator_long_program_stress.py
953
1057
  tests/unit/test_exact_phase10.py
954
1058
  tests/unit/test_find_load_keywords.py
955
1059
  tests/unit/test_hybrid.py
956
1060
  tests/unit/test_lexer_directly.py
1061
+ tests/unit/test_long_file_stability.py
957
1062
  tests/unit/test_map_fix.py
958
1063
  tests/unit/test_map_only.py
959
1064
  tests/unit/test_memory_leakage.py
@@ -982,6 +1087,7 @@ tests/vm/benchmark_register_vm.py
982
1087
  tests/vm/test_all_optimizations_integration.py
983
1088
  tests/vm/test_async_optimizer.py
984
1089
  tests/vm/test_async_verification.py
1090
+ tests/vm/test_binary_bytecode.py
985
1091
  tests/vm/test_blockchain_opcodes.py
986
1092
  tests/vm/test_cache.py
987
1093
  tests/vm/test_comprehensive_vm_verification.py
@@ -994,20 +1100,38 @@ tests/vm/test_memory_pool.py
994
1100
  tests/vm/test_optimizer.py
995
1101
  tests/vm/test_parallel_vm.py
996
1102
  tests/vm/test_peephole_optimizer.py
1103
+ tests/vm/test_phase3_adaptive.py
1104
+ tests/vm/test_phase4_contract_vm.py
1105
+ tests/vm/test_phase5_gil_free.py
1106
+ tests/vm/test_phase6_builtins.py
997
1107
  tests/vm/test_profiler.py
998
1108
  tests/vm/test_register_allocator.py
999
1109
  tests/vm/test_register_vm.py
1110
+ tests/vm/test_rust_vm.py
1000
1111
  tests/vm/test_ssa_converter.py
1001
1112
  tests/vm/test_vm_async_integration.py
1002
1113
  tests/vm/test_vm_memory_pool_integration.py
1003
1114
  tests/vm/test_vm_peephole_integration.py
1004
1115
  tests/vm/test_vm_ssa_integration.py
1116
+ tests/zx_features/harness.zx
1117
+ tests/zx_features/run_all.sh
1118
+ tests/zx_features/test_10_upgrade_verify_accel.zx
1119
+ tests/zx_features/test_1_rbf.zx
1120
+ tests/zx_features/test_2_gas.zx
1121
+ tests/zx_features/test_3_persistence.zx
1122
+ tests/zx_features/test_4_cross_contract.zx
1123
+ tests/zx_features/test_5_events.zx
1124
+ tests/zx_features/test_6_mpt.zx
1125
+ tests/zx_features/test_7_wallet.zx
1126
+ tests/zx_features/test_8_bft.zx
1127
+ tests/zx_features/test_9_tokens.zx
1005
1128
  vscode-extension/.gitignore
1006
1129
  vscode-extension/README.md
1007
1130
  vscode-extension/language-configuration.json
1008
1131
  vscode-extension/package.json
1009
1132
  vscode-extension/tsconfig.json
1010
1133
  vscode-extension/snippets/zexus.json
1134
+ vscode-extension/src/debugAdapter.ts
1011
1135
  vscode-extension/src/extension.ts
1012
1136
  vscode-extension/syntaxes/zexus.tmLanguage.json
1013
1137
  zexus-syntax/install-syntax.sh
@@ -1,3 +1,4 @@
1
1
  [console_scripts]
2
2
  zexus = zexus.cli.main:cli
3
3
  zx = zexus.cli.main:cli
4
+ zx-pypy = zexus.cli.main:cli
@@ -12,3 +12,7 @@ pytest-cov>=2.0
12
12
  black>=21.0
13
13
  flake8>=3.9
14
14
  mypy>=0.900
15
+
16
+ [jit]
17
+ llvmlite>=0.41.0
18
+ Cython>=0.29