31 Commits

Author SHA1 Message Date
root
99cd92fb4a docs 2026-06-15 21:42:50 +00:00
udo
34a97e2577 chore: use version file for package builds 2026-06-15 16:19:55 +00:00
root
5f430155b7 deb update 2026-06-15 13:16:39 +00:00
root
1a5c6547b9 post-W7 cleanup 2026-06-15 12:00:46 +00:00
root
75bccb778c W7 done done 2026-06-15 11:14:03 +00:00
root
f5637bb587 W7 done done 2026-06-15 10:28:23 +00:00
root
b1a0df9c93 W7 done done 2026-06-15 10:19:06 +00:00
root
bfd6d33829 W7f: sweep dead/legacy/fallback leftovers after native-pipeline removal
Post-deletion cleanup (units run only on wasm):
- types.h/compiler.cpp: drop the native-era SharedUnit fields so_name,
  bin_file_name, and the opt_so_optional cache-mode plumbing (no native
  optional .so path remains). The per-unit compile lock is re-keyed from
  so_name+.lock to wasm_name+.lock (still per-unit).
- unit_info() and to_string(SharedUnit*) no longer expose .so artifact fields.
- backend.h: drop the stale "+ fallback-token gate" comment.
- Docs/comments corrected to wasm-only reality: README, tests/README,
  site/doc C++ preprocessor + error_pages + unit_info pages, site/info intro,
  site/demo/unit-browser artifact card; the Phase-5 native-vs-wasm benchmark
  harness (tests/wasm_benchmark.py) reframed for the wasm-only backend.

Audit confirmed no live references remain to so_handle, load_shared_unit,
compiler_load_shared_unit, compiler_invoke*/_cli/_websocket/_serve_http,
COMPILE_SCRIPT/COMPILE_WASM_UNITS, or the native export-symbol constants;
request_ref_handler/dv_call_handler are kept (live wasm funcref casts).

Swept via the pi agent (delegated to a gpt-5.3-codex-spark sub-model);
independently re-verified on the host: run_cli_tests --include-wasm-kill =>
87 passed, 0 failed, 0 skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 23:43:16 +00:00
root
cf51336873 W7e: delete the native unit pipeline (.so compile + dlopen execution)
Units now run exclusively on wasm; the native generated-C++ -> clang -> .so ->
dlopen path and its request-time fallback are removed.

- Dispatch (linux_fastcgi.cpp): the 4 handle_complete branches + the CLI-socket
  path route every request through wasm (wasm_ready compiles cold/stale on
  demand); a wasm-unavailable unit now yields a clean error page
  (fail_wasm_unavailable / render_request_failure) instead of native execution.
  compiler_invoke / _cli / _websocket / _serve_http deleted.
- compiler.cpp (-1274): removed the native .so compile (COMPILE_SCRIPT),
  load_shared_unit, dlopen/dlsym/dlclose, compiler_load_shared_unit, and the
  SharedUnit .so function-pointer fields (on_setup/on_render/on_component/
  on_websocket/on_cli/on_once/on_init) in types.h/types.cpp. compile_shared_unit
  now builds only the .wasm side-module; the .uce preprocessor/parser front-end
  is kept (it emits the C++ the wasm compile consumes).
- unit_call()/component()/once/init now resolve across units through the wasm
  host component resolver (uce_host_component_resolve) instead of native dlsym;
  configured runtime error pages render through the wasm backend.
- Dropped the WASM_BACKEND_ENABLED feature flag and dead COMPILE_SCRIPT /
  COMPILE_WASM_UNITS config; unit ABI freshness tied to UCE_UNIT_ABI_VERSION;
  guard against serving a stale .wasm for a deleted source; retired the obsolete
  W5 native-vs-wasm toggle script. Docs updated.

Implemented via the pi agent (with 3 delegated sub-reviews); independently
re-verified on the build host: run_cli_tests --include-wasm-kill => 87 passed,
0 failed, 0 skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 23:20:50 +00:00
root
2debd33804 W7e: wasm-preferred dispatch + compile-on-demand; harden unit ABI validator
- Dispatch (linux_fastcgi.cpp): route every request through wasm. On a
  cold/stale artifact, compile the unit on demand (get_shared_unit, forced) and
  serve wasm; native compiler_invoke* remains only as a fallback when wasm
  cannot be made ready (compile failure / backend disabled). Applies to the 4
  handle_complete branches and the CLI socket path.
- backend.cpp: delete the now-vestigial native-only fallback token gate
  (wasm_backend_native_fallback_*), empty since W7d; should_handle now gates on
  config + current artifact + healthy worker only.
- check_unit_wasm.py: skip the defense-in-depth llvm-nm allocator scan when
  llvm-nm SIGSEGVs on a degenerate-but-valid module (e.g. a unit with no
  exported handlers). Fixes site/demo/empty.uce, the last unit that could not
  produce a .wasm; forbidden allocator *exports* are still rejected.

A pi-assisted review caught that the compile-freshness check keys off the .so
mtime only, so force_recompile is required to rebuild a missing/stale .wasm; a
unit already cached in-process whose .wasm later vanished still uses native
fallback (closed in W7e stage B). Native execution is otherwise bypassed for
all real traffic.

Verified: scripts/run_cli_tests.sh --include-wasm-kill -> 87 passed, 0 failed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 18:20:12 +00:00
udo
6bb4f7f0ad test: port network suite to uce cli runner 2026-06-13 22:58:35 +00:00
root
d6421cb8f3 feat: extend wasm backend entrypoints 2026-06-13 21:50:19 +00:00
udo
c84fc86e6c W6 2026-06-13 16:19:52 +00:00
udo
5a56d4f39e W5 2026-06-13 15:10:42 +00:00
Udo
afaa4dd7c0 feat: cut over to WASM backend 2026-06-13 08:42:31 +00:00
udo
577aae076e W3 2026-06-13 02:07:38 +00:00
udo
7066da3cde refactor: rename DTree to DValue 2026-06-12 11:05:52 +00:00
udo
7f757654b6 fix: harden UCE runtime and starter 2026-06-11 13:44:24 +00:00
Udo
02e153a6a7 Add archive helpers and harden task runtime 2026-05-21 00:00:23 +00:00
Udo
9f7625c7fd working on documentation and more API functions 2026-04-29 12:09:37 +00:00
Udo
dc05f9faa5 PHP familiarity shortcuts 2026-04-19 21:15:52 +00:00
Udo
af642c8167 getting closer to full port of web app starter 2026-04-19 19:44:18 +00:00
Udo
be514d63d6 trying to port web app starter from PHP 2026-04-19 09:38:23 +00:00
udo
cd8f07aaa7 Refactor FastCGI server and compiler, enhance HTTP header parsing, and add WebSocket support
- Refactored FastCGIServer class to improve socket handling and added shutdown functionality.
- Updated compiler functions to streamline HTML and text literal processing.
- Enhanced split_kv function to support uppercase keys and added split_http_headers for better HTTP header parsing.
- Introduced new session management functions to validate and handle session IDs.
- Added WebSocket frame parsing and handling in the URI module.
- Created systemd service scripts for easier deployment and management of the UCE FastCGI runtime.
- Added new test cases for header handling, time parsing, and WebSocket functionality.
2026-04-18 14:04:58 +00:00
Udo
984453f336 update sigh 2022-12-22 06:01:23 +00:00
Udo
defc628204 packaging 2022-02-11 02:35:06 +00:00
Udo
6f6919f3f0 backage builder 2022-02-11 01:51:32 +00:00
Udo
0a6ebc60f0 precompile on startup 2022-01-31 00:42:16 +00:00
Udo
18ca2368bc VERY basic UTF8 parser 2022-01-28 20:23:14 +00:00
Udo
939009f9a1 shell stuff, preprocessor directive 2022-01-21 22:22:14 +00:00
Udo
c047927b18 initial import 2022-01-21 09:10:38 +00:00