{"version":"1.0","type":"rich","title":"Pico-8 communic8 interface to JS","description":"Pico-8 communic8 demonstrates a serialization and messaging interface between a Pico-8 cartridge and JavaScript, using a shared memory buffer at `0x5f80` with a header-based handshake protocol. The code defines custom serializers for byte, boolean, number, array, tuple, opacify, and string types, mapping Pico-8 characters to indices for efficient transmission. A coroutine-based receiver queues incoming messages, while the `_update_communic8` function reads header flags and pokes memory to coordinate reads and writes. The example shows how to structure binary data exchange with type-aware packing and unpacking between two runtimes.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b4b9c27344c3c7266379b483487907ee?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}