nx_browser_image_demo_test.nx
buildroot/runtime/nx_browser_image_demo_test.nx
about
nx_browser_image_demo_test.nx -- THE end-to-end image milestone.
The Nishi browser fetches a REAL public JPEG over the live network
using its own bits-up stack -- DNS resolver, BSD sockets, HTTP/1.1
request builder, response parser -- then decodes the JPEG bits-up
(baseline Huffman + IDCT + level shift) and paints it as ASCII art
in the terminal. No libc, no libjpeg, no curl, no Chrome. Every
byte between the socket and the pixel is NishiLang.
Target: http://httpbin.org/image/jpeg -- a 35 KB SOF0 (baseline)
JPEG, the format our decoder handles. Fetched over plain HTTP so
this milestone isolates the image pipeline; arbitrary-host HTTPS
handshake interop is its own hardening track (see task: TLS
RECV_SH_FAIL). Sovereign TLS 1.3 already fetches example.com.
PASS = HTTP 200 + JPEG decode OK + ASCII raster emitted. The art
is written to stdout so the result is visible, not just asserted.
expect_exit: 0
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_connect.nxnx_dns_resolve_a_record.nxnx_https_url_connect.nxnx_http_client.nxnx_http_response_parse.nxnx_jpeg_ascii.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
| none |
functions
| 30 | func dump_dec(label0: i64, label1: i64, v: i64) -> i64 |
| 51 | func main() -> i64 |