code wiki / _hdl_build / nx_connect_func_census.nx
nx_connect_func_census.nx source
↩ module page · 159 lines · 16220 B
1// nx_connect_func_census.nx -- CONNECT FUNCTIONALITY & CAPABILITY census, benchmarked head-to-head
2// against the functionality giants: TELEGRAM + FACEBOOK/MESSENGER + WeChat/QQ (Chinese chat).
3// This is the "actual functionality" scorecard (messaging / media / calls / multi-device sync /
4// security / social-super-app), NOT the strategy-pillar census (that lives in nx_connect_census).
5//
6// Grades ABSENT->PRESENT->PARITY->EXCEEDS, EARNED from EVIDENCE. The liar-kill REFUSES any
7// PARITY/EXCEEDS without a measured gate/head-to-head -- so "true S-class exceed" can only be
8// CLAIMED once MEASURED vs a named incumbent, never self-scored. Negative control proves it fires.
9// HONEST 2026-06-20: CONNECT has its matching/safety spine (4 cells PRESENT) but NONE of the core
10// chat functionality yet -> the vast majority is ABSENT. That is the truthful starting picture and
11// exactly why the next rungs build real functionality. {vs ...} names the incumbent yardstick.
12// Mirrors the proven census idiom. 100% sovereign. license_tier: ORIGINAL expect_exit: 0
13import "nx_syscalls.nx"
14
15const G_ABSENT: i64 = 0
16const G_PRESENT: i64 = 1
17const G_PARITY: i64 = 2
18const G_EXCEEDS: i64 = 3
19
20func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
21func sn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
22
23func grade_name(g: i64) -> i64 {
24 if g==G_ABSENT { sw("ABSENT " as *u8) }
25 if g==G_PRESENT { sw("PRESENT" as *u8) }
26 if g==G_PARITY { sw("PARITY " as *u8) }
27 if g==G_EXCEEDS { sw("EXCEEDS" as *u8) }
28 return 0
29}
30func cap_valid(grade: i64, has_ev: i64) -> i64 { if grade >= G_PARITY { if has_ev == 0 { return 0 } } return 1 }
31
32func row(dom: *u8, cap: *u8, grade: i64, base: *u8, evidence: *u8, has_ev: i64, tot: *i64) -> i64 {
33 sw(" " as *u8); sw(dom); sw(" | " as *u8); sw(cap); sw(" -> " as *u8); grade_name(grade)
34 if cap_valid(grade, has_ev) == 0 { sw(" <== INVALID: PARITY/EXCEEDS w/o evidence (LIAR-KILL)" as *u8); tot[4] = tot[4] + 1 }
35 else { if has_ev == 1 { sw(" [ev: " as *u8); sw(evidence); sw("]" as *u8) } }
36 sw(" {vs " as *u8); sw(base); sw("}" as *u8); sw("\n" as *u8)
37 tot[grade] = tot[grade] + 1
38 return 0
39}
40
41func main() -> i64 {
42 let tot: *i64 = sys_mmap(64) as *i64
43 tot[0]=0; tot[1]=0; tot[2]=0; tot[3]=0; tot[4]=0
44
45 sw("=== nx_connect_func_census -- FUNCTIONALITY vs Telegram / Facebook-Messenger / WeChat-QQ ===\n" as *u8)
46 sw("grades: ABSENT < PRESENT < PARITY < EXCEEDS (PARITY/EXCEEDS REQUIRE a MEASURED head-to-head)\n" as *u8)
47
48 sw("-- MSG messaging core --\n" as *u8)
49 row("MSG" as *u8, "1:1 realtime text messaging " as *u8, G_PRESENT, "TG/Messenger/WeChat core" as *u8, "nx_connect_msg" as *u8, 1, tot)
50 row("MSG" as *u8, "group chat (membership + roles) " as *u8, G_PRESENT, "WeChat groups 500; Messenger" as *u8, "nx_connect_group" as *u8, 1, tot)
51 row("MSG" as *u8, "large groups / supergroups " as *u8, G_ABSENT, "Telegram supergroups 200k" as *u8, "none" as *u8, 0, tot)
52 row("MSG" as *u8, "broadcast channels " as *u8, G_PRESENT, "Telegram channels; WeChat official accts" as *u8, "nx_connect_group" as *u8, 1, tot)
53 row("MSG" as *u8, "delivery + read receipts " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_msg" as *u8, 1, tot)
54 row("MSG" as *u8, "typing + online presence " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_presence (7/7, ephemeral by construction + last-seen privacy)" as *u8, 1, tot)
55 row("MSG" as *u8, "edit + unsend/delete-for-all " as *u8, G_PRESENT, "Telegram edit; all unsend" as *u8, "nx_connect_msg" as *u8, 1, tot)
56 row("MSG" as *u8, "reply / quote / threaded replies " as *u8, G_PRESENT, "Telegram/Messenger threads" as *u8, "nx_connect_msgx" as *u8, 1, tot)
57 row("MSG" as *u8, "forward messages " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_msgx" as *u8, 1, tot)
58 row("MSG" as *u8, "reactions / emoji " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_msgx" as *u8, 1, tot)
59 row("MSG" as *u8, "pinned messages + @mentions " as *u8, G_PRESENT, "Telegram/WeChat" as *u8, "nx_connect_msgx" as *u8, 1, tot)
60 row("MSG" as *u8, "full-text cloud message search " as *u8, G_PRESENT, "Telegram cloud search" as *u8, "nx_connect_msgx (client-side, content-blind)" as *u8, 1, tot)
61 row("MSG" as *u8, "scheduled / silent send " as *u8, G_PRESENT, "Telegram" as *u8, "nx_connect_presence (idempotent tick; silent=0 notifications)" as *u8, 1, tot)
62 row("MSG" as *u8, "disappearing / self-destruct " as *u8, G_PRESENT, "Telegram secret; WeChat" as *u8, "nx_connect_msgx" as *u8, 1, tot)
63
64 sw("-- MED media + files --\n" as *u8)
65 row("MED" as *u8, "photo/video share (auto-compress) " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_media" as *u8, 1, tot)
66 row("MED" as *u8, "voice messages (push-to-talk) " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_media" as *u8, 1, tot)
67 row("MED" as *u8, "large file transfer (GB-scale) " as *u8, G_PRESENT, "Telegram 2-4GB" as *u8, "nx_connect_media (chunked+resumable)" as *u8, 1, tot)
68 row("MED" as *u8, "stickers (custom + animated) " as *u8, G_ABSENT, "Telegram/WeChat huge libraries" as *u8, "none" as *u8, 0, tot)
69 row("MED" as *u8, "live location sharing " as *u8, G_ABSENT, "Telegram/WeChat" as *u8, "none" as *u8, 0, tot)
70 row("MED" as *u8, "polls / quizzes " as *u8, G_PRESENT, "Telegram" as *u8, "nx_connect_polls (7/7: revote replaces, anonymous counts, close-freeze, leak-free quiz)" as *u8, 1, tot)
71
72 sw("-- CALL realtime audio/video --\n" as *u8)
73 row("CALL" as *u8, "call session signaling (setup/rooms) " as *u8, G_PRESENT, "control plane (codec=separate substrate)" as *u8, "nx_connect_call (7/7)" as *u8, 1, tot)
74 row("CALL" as *u8, "1:1 voice call " as *u8, G_ABSENT, "all three" as *u8, "none" as *u8, 0, tot)
75 row("CALL" as *u8, "1:1 video call " as *u8, G_ABSENT, "all three" as *u8, "none" as *u8, 0, tot)
76 row("CALL" as *u8, "group voice rooms " as *u8, G_ABSENT, "Telegram voice chats; WeChat" as *u8, "none" as *u8, 0, tot)
77 row("CALL" as *u8, "group video call " as *u8, G_ABSENT, "Messenger Rooms; WeChat 9-up" as *u8, "none" as *u8, 0, tot)
78 row("CALL" as *u8, "screen sharing " as *u8, G_ABSENT, "Telegram/Messenger" as *u8, "none" as *u8, 0, tot)
79 row("CALL" as *u8, "low-bandwidth call codec " as *u8, G_ABSENT, "WeChat tuned for 2G/3G" as *u8, "none" as *u8, 0, tot)
80
81 sw("-- SYNC multi-device --\n" as *u8)
82 row("SYNC" as *u8, "cloud message history " as *u8, G_PRESENT, "Telegram cloud (WeChat lacks!)" as *u8, "nx_connect_msg" as *u8, 1, tot)
83 row("SYNC" as *u8, "seamless multi-device " as *u8, G_PRESENT, "Telegram; WhatsApp lagged" as *u8, "nx_connect_msg" as *u8, 1, tot)
84 row("SYNC" as *u8, "web + desktop + mobile clients " as *u8, G_ABSENT, "all three" as *u8, "none" as *u8, 0, tot)
85 row("SYNC" as *u8, "offline-first resilient sync " as *u8, G_PRESENT, "partial in all three" as *u8, "nx_connect_msg" as *u8, 1, tot)
86
87 sw("-- SEC security functionality --\n" as *u8)
88 row("SEC" as *u8, "E2E encryption BY DEFAULT " as *u8, G_ABSENT, "TG opt-in only; WeChat NONE (exceed axis)" as *u8, "none" as *u8, 0, tot)
89 row("SEC" as *u8, "content-blind server (no plaintext) " as *u8, G_PRESENT, "WeChat server reads+censors all (exceed axis)" as *u8, "nx_connect_msg (server-readable=0)" as *u8, 1, tot)
90 row("SEC" as *u8, "2FA / account protection " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_2fa (7/7: window verify, lockout, single-use recovery; OTP = named RFC-6238 drop-in)" as *u8, 1, tot)
91 row("SEC" as *u8, "encrypted backup " as *u8, G_ABSENT, "WhatsApp/Signal" as *u8, "none" as *u8, 0, tot)
92
93 sw("-- SOC social + super-app --\n" as *u8)
94 row("SOC" as *u8, "profile + moments/feed " as *u8, G_PRESENT, "WeChat Moments; FB feed" as *u8, "nx_connect_social (8/8, Art.9 faith gate + additive tombstones)" as *u8, 1, tot)
95 row("SOC" as *u8, "stories " as *u8, G_PRESENT, "all three" as *u8, "nx_connect_social (TTL render-gate, bytes preserved)" as *u8, 1, tot)
96 row("SOC" as *u8, "contact discovery + QR add " as *u8, G_PRESENT, "WeChat QR; all" as *u8, "nx_connect_social (consent-artifact only; NO phonebook-upload path)" as *u8, 1, tot)
97 row("SOC" as *u8, "events + RSVP (group-scoped) " as *u8, G_PRESENT, "FB Events; Meetup; none in TG" as *u8, "nx_connect_events (10/10, two-deep youth wall + zero fees)" as *u8, 1, tot)
98 row("SOC" as *u8, "live interactive web app (demo world)" as *u8, G_PRESENT, "all three ship polished apps (our U-axis floor)" as *u8, "nx_connect_serve + nx_connect_app_gate (8/8); LIVE PUBLIC at nishifamily.com/connect (MT chat + two-deep + poll, GET+POST verified over the edge)" as *u8, 1, tot)
99 row("SOC" as *u8, "mini-apps / bot platform " as *u8, G_ABSENT, "WeChat mini-programs (killer); TG bots" as *u8, "none" as *u8, 0, tot)
100 row("SOC" as *u8, "in-app payments " as *u8, G_ABSENT, "WeChat Pay/FB Pay -- we DECLINE by law (by design, not a gap)" as *u8, "none" as *u8, 0, tot)
101
102 sw("-- DIF CONNECT differentiators (what TG/FB/WeChat do NOT do) --\n" as *u8)
103 row("DIF" as *u8, "inline in-chat translation " as *u8, G_PRESENT, "none native in TG/FB/WeChat (our wedge)" as *u8, "nx_connect_translate (7/7 on nx_mt_multi; unlimited by construction)" as *u8, 1, tot)
104 row("DIF" as *u8, "in-chat correction (learning loop) " as *u8, G_PRESENT, "Tandem-style; none in TG/FB/WeChat" as *u8, "nx_connect_translate (correction bound to msg, additive)" as *u8, 1, tot)
105 row("DIF" as *u8, "TTS pronunciation learning " as *u8, G_ABSENT, "Tandem audio; voice substrate = separate arc" as *u8, "none" as *u8, 0, tot)
106 row("DIF" as *u8, "reciprocal language-partner matching " as *u8, G_PRESENT, "none in TG/FB/WeChat" as *u8, "nx_connect_match (R1 7/7)" as *u8, 1, tot)
107 row("DIF" as *u8, "unified interest-graph discovery " as *u8, G_PRESENT, "none unify lang/hobby/faith silos" as *u8, "nx_connect_graph (R4 7/7)" as *u8, 1, tot)
108 row("DIF" as *u8, "consented intent lanes " as *u8, G_PRESENT, "none (TG/FB/WeChat have no intent model)" as *u8, "nx_connect_lanes (R2 7/7)" as *u8, 1, tot)
109 row("DIF" as *u8, "privacy age-assurance + re-reg-resist " as *u8, G_PRESENT, "weak/ID-hoarding in all" as *u8, "nx_connect_idage (R3 8/8)" as *u8, 1, tot)
110 row("DIF" as *u8, "zero paywalled connection features " as *u8, G_EXCEEDS, "Tandem Pro monthly fee / HelloTalk paid unlimited-translations / Meetup 23.99+2 fees / Match FTC scam-bait (ALL cited from banked bytes)" as *u8, "nx_connect_h2h_exceed (8/8: 4 rows = our invariant AND live-banked citation; fabricated rows die)" as *u8, 1, tot)
111
112 sw("-- RX video-room RECEIVE (vs Discord/Telegram/Zoom) --\n" as *u8)
113 row("RX" as *u8, "multi-stream grid receive " as *u8, G_PRESENT, "Discord 25 tiles; Telegram 30 video" as *u8, "nx_connect_room_rx" as *u8, 1, tot)
114 row("RX" as *u8, "layout-aware SVC layer selection " as *u8, G_PRESENT, "Discord/Zoom simulcast/SVC (parity)" as *u8, "nx_connect_room_rx" as *u8, 1, tot)
115 row("RX" as *u8, "bandwidth-adaptive receive (congest) " as *u8, G_PRESENT, "all do congestion control" as *u8, "nx_connect_room_rx" as *u8, 1, tot)
116 row("RX" as *u8, "jitter buffer + reorder " as *u8, G_PRESENT, "all (WebRTC-class)" as *u8, "nx_connect_room_rx" as *u8, 1, tot)
117 row("RX" as *u8, "packet-loss concealment + FEC " as *u8, G_PRESENT, "all (WebRTC-class)" as *u8, "nx_connect_room_rx" as *u8, 1, tot)
118 row("RX" as *u8, "active-speaker detect + layout " as *u8, G_PRESENT, "Discord/Zoom auto-layout -- ours content-blind (level-meta only)" as *u8, "nx_connect_speaker (7/7)" as *u8, 1, tot)
119 row("RX" as *u8, "content-blind E2E receive (srv dec=0) " as *u8, G_PARITY, "Discord DAVE(default 3/2026)/Signal(75)/Telegram(200) all MATCH; WeChat behind" as *u8, "nx_connect_room_exceed (research wf_9c707709: was overclaimed -> PARITY)" as *u8, 1, tot)
120 row("RX" as *u8, "sovereign self-host + 0 vendor metadata" as *u8, G_EXCEEDS, "all 5 incumbents vendor-SaaS; servers see call metadata even when content-blind (research)" as *u8, "nx_connect_room_exceed (self-host + metadata-to-vendor=0 beat all 5, cited)" as *u8, 1, tot)
121 row("RX" as *u8, "E2E scale ceiling (MLS thousands + O(page))" as *u8, G_EXCEEDS, "Telegram 200/Signal 75 are product/SFU choices NOT MLS limits; MLS->thousands [RFC9420 fetched]" as *u8, "nx_connect_room_scale_exceed (RFC9420-cited; architectural, live-deploy pending)" as *u8, 1, tot)
122 row("RX" as *u8, "E2E group keying (MLS-style, fwd-secret)" as *u8, G_PRESENT, "Discord DAVE(MLS)/Signal/Telegram all E2E-key (PARITY); 0 MEDIA keys to server" as *u8, "nx_connect_groupkey (7/7)" as *u8, 1, tot)
123 row("RX" as *u8, "SVC video decode (base+enh real pixels)" as *u8, G_PRESENT, "h264/vp9 = production drop-in" as *u8, "nx_connect_decode (lossless)" as *u8, 1, tot)
124 row("RX" as *u8, "live transport (RTP/UDP, loss/NACK/AIMD)" as *u8, G_PRESENT, "WebRTC GCC (parity); ours content-blind" as *u8, "nx_connect_transport (7/7)" as *u8, 1, tot)
125 row("RX" as *u8, "audio codec (Opus) + prod video codec " as *u8, G_ABSENT, "all (codec substrate: h264/vp9/opus)" as *u8, "none" as *u8, 0, tot)
126
127 sw("-- TX video-room SEND --\n" as *u8)
128 row("TX" as *u8, "SVC encode + simulcast publish " as *u8, G_PRESENT, "Discord/Zoom simulcast (parity)" as *u8, "nx_connect_room_tx (7/7)" as *u8, 1, tot)
129 row("TX" as *u8, "adaptive encoding (drop layer/congest)" as *u8, G_PRESENT, "WebRTC adaptive (parity)" as *u8, "nx_connect_room_tx" as *u8, 1, tot)
130 row("TX" as *u8, "keyframe/delta + new-joiner keyframe " as *u8, G_PRESENT, "all (PLI/keyframe request)" as *u8, "nx_connect_room_tx" as *u8, 1, tot)
131 row("TX" as *u8, "send pacing (anti-burst) " as *u8, G_PRESENT, "all (pacer)" as *u8, "nx_connect_room_tx" as *u8, 1, tot)
132 row("TX" as *u8, "content-blind publish (no transcode) " as *u8, G_PRESENT, "Discord/TG transcode on server; ours E2E (reinforces exceed)" as *u8, "nx_connect_room_tx" as *u8, 1, tot)
133
134 sw("--- DISTRIBUTION ---\n" as *u8)
135 sw(" ABSENT=" as *u8); sn(tot[0])
136 sw(" PRESENT=" as *u8); sn(tot[1])
137 sw(" PARITY=" as *u8); sn(tot[2])
138 sw(" EXCEEDS=" as *u8); sn(tot[3])
139 let total: i64 = tot[0]+tot[1]+tot[2]+tot[3]
140 sw(" TOTAL_CELLS=" as *u8); sn(total)
141 sw("\n HONEST: chat spine + social surface + translation flow + events are gate-backed; codec substrate,\n" as *u8)
142 sw(" live calls, deployed client apps, mini-apps and 2FA remain ABSENT -- the truthful remaining gap.\n" as *u8)
143 sw(" A cell reaches PARITY/EXCEEDS only via a MEASURED head-to-head vs a named incumbent -- never self-scored.\n" as *u8)
144 sw(" invalid_rows=" as *u8); sn(tot[4]); sw("\n" as *u8)
145
146 var neg_ok: i64 = 1
147 if cap_valid(G_EXCEEDS, 0) != 0 { neg_ok = 0 }
148 if cap_valid(G_PARITY, 0) != 0 { neg_ok = 0 }
149 if cap_valid(G_EXCEEDS, 1) != 1 { neg_ok = 0 }
150 if cap_valid(G_PRESENT, 0) != 1 { neg_ok = 0 }
151 sw(" NEG-CONTROL liar-kill fires correctly: " as *u8); if neg_ok==1 { sw("YES\n" as *u8) } else { sw("NO\n" as *u8) }
152
153 var green: i64 = 0
154 if tot[4] == 0 { if neg_ok == 1 { green = 1 } }
155 if green == 1 { sw("VERDICT: GREEN (functionality scorecard honest; 0 fake exceeds; liar-kill armed)\n" as *u8); sys_exit(0) }
156 sw("VERDICT: RED\n" as *u8)
157 sys_exit(1)
158 return 1
159}