code wiki / _hdl_build / nx_translate_daemon.nx
nx_translate_daemon.nx
buildroot/runtime/_hdl_build/nx_translate_daemon.nx
about
nx_translate_daemon.nx -- the SOVEREIGN live /translate service for nishifamily.com/video, now on the
DATA-DRIVEN RU<->EN engine (nx_xlate_mt) -- replaces the old toy EN->ES (sea/tea/go) demo. Loopback :8447,
plain HTTP behind the edge; supervised by the existing hostctl guard (nx_hostctl.nx HC_XLATE :8447) so it
CANNOT affect the video/signaling path. GET /translate?text=<urlenc>[&dir=ru2en|en2ru] -> text/plain
(CORS-open). Direction auto-detected from Cyrillic when dir= absent. Lexicon + morphology load from
knowledge/xlate/ at startup. Any non-text GET (e.g. a health probe) -> 200 "?" so the guard sees it alive.
genealogy_id: sovereign_data_driven_ruen_mt_v1 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_http_server.nxnx_xlate_mt.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 11 | const TD_MAGIC_8192: i64 = 8192 |
| 12 | const TD_MAGIC_4096: i64 = 4096 |
| 13 | const TD_MAGIC_16384: i64 = 16384 |
| 15 | const TD_PORT: i64 = 8447 |
| 16 | const TD_HDR1: *u8 = "HTTP/1.1 200 OK\r\nContent-Type: text/plain; charset=utf-8\r\nAccess-Control-Allow-Origin: *\r\nContent-Length: " as *u8 |
| 17 | const TD_HDR2: *u8 = "\r\nConnection: close\r\n\r\n" as *u8 |
functions
| 19 | func td_puts(buf: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 25 | func td_wdec(buf: *u8, off: i64, v: i64) -> i64 |
| 36 | func td_hex(c: i64) -> i64 called by 1: td_param |
| 43 | func td_param(req: *u8, len: i64, out: *u8) -> i64 |
| 79 | func td_dirparam(req: *u8, len: i64) -> i64 called by 1: main |
| 90 | func td_autodir(txt: *u8, n: i64) -> i64 called by 1: main |
| 95 | func main() -> i64 |