http, an HTTP/1.0 GET server parsed, routed and rendered by a GPU warp over the mesh program table, as PTX from C
$ sexc add @ajax/mesh-prog-http- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 03:26v/# 1 version
- drwxr-xr-x-Oct 27 03:26files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 03:26 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-rt ^0.1.0, @ajax/pathtrace-view ^0.1.0, @ajax/mesh-rt-sim-mailbox ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- none yet
- keywords
- mesh alphaos gpu ptx program http
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/programs/http
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-prog-http 2 3An HTTP/1.0 GET server computed on the GPU: meshd only moves bytes; a warp parses, routes and renders 4the whole response over the program table (`reads = ["*"]`): `/`, `/programs`, `/status`, 5`/start/<name>`, `/stop/<name>`, `/view/<name>`, `/load/<name>`, `/doom`, `/train`, `/render`, 6`/render.bmp`, `/render.ppm`; errors 400, 404, 405, 409, 503. Layout: @ajax/mesh-abi-view-http. 7 8- **Ported from:** alpha-rust-mesh `programs/http/src/lib.rs`. 9- **Tests:** on the simulator: every route's status line and a Content-Length equal to its body; 10 /start and /stop's P_RUN_REQ; /load's request words, 503 until acked, 409 and 400; /view's declared 11 fields; /train and /doom from those programs' views; /render.ppm and /render.bmp pixels in raster order. 12 The number formatting was checked against the Rust's own on the same values.