20 Commits

Author SHA1 Message Date
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
udo
7066da3cde refactor: rename DTree to DValue 2026-06-12 11:05:52 +00:00
udo
941f5aea08 feat: add configurable UCE error pages 2026-06-12 08:59:09 +00:00
udo
7f757654b6 fix: harden UCE runtime and starter 2026-06-11 13:44:24 +00:00
Udo
d37517041d Add custom server API and runtime limits 2026-05-21 09:36:23 +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
cd445f3c9b some cleanup 2026-04-28 12:10:07 +00:00
Udo
8223dcc6b3 I think I need to change the documentation format 2026-04-22 01:32:05 +00:00
udo
b53eb6e4f1 Enhance template parser to handle C++ comments and refactor preprocessing logic
- Updated parser to correctly interpret C++ `//` and `/* ... */` comments within template code.
- Split preprocessing implementation into separate files for better organization.
- Added regression test for comment parsing in templates.
- Adjusted CSS styles for improved layout and readability in documentation.
2026-04-20 21:41:23 +00:00
Udo
af642c8167 getting closer to full port of web app starter 2026-04-19 19:44:18 +00:00
Udo
d1167aec3b getting closer to full port of web app starter 2026-04-19 19:09:21 +00:00
Udo
2b5586d7df decided in favor of dedicated COMPONENT() macro, updates to documentation 2026-04-19 11:34:03 +00:00
Udo
be514d63d6 trying to port web app starter from PHP 2026-04-19 09:38:23 +00:00
udo
86dc93864e Add WebSocket support and enhance chat functionality
- Implement WebSocket handling in the FastCGI server, allowing for real-time communication.
- Introduce functions for managing WebSocket connections, broadcasting messages, and sending to specific connections.
- Create a chat interface in the `websockets.ws.uce` file, including message handling and user notifications.
- Refactor existing code to accommodate WebSocket integration, ensuring compatibility with HTTP requests.
- Update documentation to reflect new features and usage instructions for WebSocket functionality.
2026-04-18 15:10:15 +00:00
Udo
984453f336 update sigh 2022-12-22 06:01:23 +00:00
Udo
364d83b199 doc update 2022-04-18 23:37:21 +00:00
Udo
0a6ebc60f0 precompile on startup 2022-01-31 00:42:16 +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