Commit Graph
23 Commits
Author SHA1 Message Date
udo 4414972079 feat: add native scrypt password hashing 2026-07-13 19:35:38 +00:00
root b8b56cf3dd cleanup, docs 2026-06-16 23:02:45 +00:00
root ea08d5f28b cleanup, docs 2026-06-16 12:21:31 +00:00
root f2a3503ac3 configurable trans-membrance hostcall blocklist 2026-06-16 01:13:06 +00:00
root 99cd92fb4a docs 2026-06-15 21:42:50 +00:00
rootandClaude Opus 4.8 4f84ac544d feat: request_perf() worker-side timing hostcall; restore demo System Info
Units run in the wasm sandbox, so my_pid/parent_pid/context.server->request_count
read as sandbox stubs — the demo System Info counters were broken, and there was
no authoritative server-side request timing available to unit code (client-side
measurement cannot see queue/dispatch latency).

Add a request_perf() unit API backed by a new uce_host_request_perf hostcall.
The native worker answers it live, returning a DValue:
  worker_pid, parent_pid, request_count,
  accept_us  = (time_start - time_init)*1e6   (entry -> dispatch wait),
  running_us = (now - time_start)*1e6         (since dispatch, live),
  total_us   = (now - time_init)*1e6          (since the request entered UCE),
  workspace_birth_us.
time_init is captured at request entry (handle_request, with a handle_complete
fallback); a RequestPerfSnapshot {pids, request_count, time_init, time_start} is
threaded from wasm_backend_serve through wasm_worker_serve onto the workspace,
and the hostcall computes the live deltas at call time. Wired like uce_host_units
(sized DValue hostcall): core_hostcalls.syms + sys.cpp/sys.h request_perf().

site/demo/index.uce System Info now uses request_perf() and shows the real worker
PID, an incrementing per-worker request count, and the timing counters.

Implemented via the pi agent (gpt-5.3-codex-spark); a review of the live numbers
caught accept_us mistakenly computed as (now - time_init) (== total_us), fixed to
the dispatch wait (time_start - time_init). Independently verified on the host:
System Info shows non-zero PIDs, incrementing count, accept_us ~50us << total_us
~2.4ms with accept+running==total; run_cli_tests --include-wasm-kill => 87 passed,
0 failed, 0 skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 08:18:04 +00:00
root d6421cb8f3 feat: extend wasm backend entrypoints 2026-06-13 21:50:19 +00:00
udo 577aae076e W3 2026-06-13 02:07:38 +00:00
udo 941f5aea08 feat: add configurable UCE error pages 2026-06-12 08:59:09 +00:00
udo 20db669589 fix: stabilize runtime follow-up regressions 2026-06-11 23:03:07 +00:00
udo 71ddcaf7d4 Consolidate config and base64 helpers 2026-05-21 10:31:21 +00:00
udo 0d8b74930c Harden HTTP path headers sessions and archives 2026-05-21 09:56:25 +00:00
udo d37517041d Add custom server API and runtime limits 2026-05-21 09:36:23 +00:00
udo 223cf4c6e1 website with slop placeholders 2026-04-22 13:31:51 +00:00
udo 8223dcc6b3 I think I need to change the documentation format 2026-04-22 01:32:05 +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 46d98a092f Enhance WebSocket support: add opcode handling, binary message support, and improve connection validation 2026-04-18 18:41:50 +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 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