# Research: Can SDL3 and aiohttpcpp carry a full port of the DevPlace iOS app? - Question: Does a C++20 program link SDL3 (windowing, input, software frame upload), SDL3_ttf and aiohttpcpp (HTTPS client, websocket client) on the build machine, and can the iOS UI be reproduced pixel for pixel without a widget toolkit? - Date: 29-11-2026 - Author: llm:claude-sonnet-5-5 - Status: decided - Spec IDs: PIN-01, PIN-02, PIN-03, PIN-04, D-01, D-02 ## Queries | # | Date | Query | Engine | |---|------|-------|--------| | 1 | 29-11-2026 | pkg-config --modversion sdl3 sdl3-ttf | local | | 2 | 29-11-2026 | probe: aiohttp::ClientSession GET https://devplace.net/ inside a CMake project linking SDL3 | local build | | 3 | 29-11-2026 | Does SDL3 3.4.2 provide SDL_LoadPNG, SDL_SavePNG, SDL_ShowOpenFileDialog | header grep | | 4 | 29-11-2026 | Is NotoColorEmoji renderable through SDL3_ttf 3.2.2 | local render | ## Sources | # | Source | Retrieved | Verdict | |---|--------|-----------|---------| | 1 | /usr/include/SDL3/SDL_surface.h | 29-11-2026 | SDL_LoadPNG and SDL_SavePNG exist | | 2 | ~/.local/include/aiohttp/loop/event_loop.hpp | 29-11-2026 | call_soon_threadsafe and stop_threadsafe allow one worker loop fed from the UI thread | | 3 | probe binary output | 29-11-2026 | SDL 3.4.2 linked, HTTPS GET over wolfSSL answered (HTTP 404 on a guessed path, so TLS, DNS and HTTP work) | ## Synthesis - SDL3 3.4.2 and SDL3_ttf 3.2.2 are installed with CMake config packages. aiohttpcpp is installed in ~/.local with a CMake config. One executable links all three (probe built and ran). - aiohttpcpp is coroutine based on libuv. Normative default: one worker thread owns the aiohttp Loop and the ClientSession, the UI thread posts work with call_soon_threadsafe and receives results through a bounded queue drained in the SDL loop (D-09). - SDL3 has no widget set. Normative default: a CPU canvas (anti-aliased rounded rectangles, gradients, shadows, bitmaps) uploaded as one streaming texture per frame, plus a SwiftUI-style declarative view layer that mirrors the iOS layout algorithm (D-01, D-02). The same canvas gives headless PNG capture for the parity checklist. - Color emoji from NotoColorEmoji render at the 109 px bitmap strike and do not scale through SDL3_ttf: they are rendered at the strike size and area-averaged down (measured: the first probe showed an oversized glyph, the downscale fixed it). ## Open points - Native iOS 26 control metrics (tab bar, Form, DatePicker) are not in source. Owner: llm:claude-sonnet-5-5, verify-by 31-12-2026, fallback: approximate values recorded as DIFF in PARITY_CHECKLIST.md. ## Filing File under `research/` as `sdl3-aiohttpcpp-feasibility.md`.