{"slug": "sdl2", "name": "SDL2", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 2, "commenters": 2, "warners": 0, "score": 1.761, "rising": -0.65, "first": "2026-02-08", "latest": "2026-06-13", "why": "Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 2, "neutral": 0, "compare": 0, "warn": 0}, "spark": [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0], "listed": false, "loved": [], "caveat": "", "short_quote": "Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.", "icon": false, "domain": null, "github_repo": null, "official_url": "", "pricing": "", "aliases": ["SDL2"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 776356992, "item_id": 48522312, "url": "https://news.ycombinator.com/item?id=48522312", "by": "worik", "date": "2026-06-13", "stance": "recommend", "quote": "I settled on SDL2 Rust wrapper", "excerpt": "I have been building on a Pi with a 7 inch touch screen I started out looking for lightweight X-Windows solutions, for the LLM and me to use. Cutting a long and frustrating story short I settled on SDL2 Rust wrapper But what a PITA X-Windows is (e.g. need Wayland for some things, but does not work well for others), and my goal is an appliance, not an app. So in a moment of insight I spent an afternoon getting SDL2 to", "context": "building an appliance on a Pi", "use_case": "drawing UI on framebuffer", "switched_from": "X-Windows", "story": "The state of building user interfaces in Rust"}, {"id": 750959776, "item_id": 46934986, "url": "https://news.ycombinator.com/item?id=46934986", "by": "throwaway2037", "date": "2026-02-08", "stance": "recommend", "quote": "Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.", "excerpt": "Before I even read the blog post, my first thought was: \"Bullshit, this feels like clickbait. Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.\" I guess that the only backdoor to this clickbait argument in 2026 can be: \"My graphics/audio libary is written in pure C, but I use bindings with language X (C++/Rust/Zig/etc).\"", "context": "", "use_case": "game development", "switched_from": "", "story": "I Write Games in C (yes, C)"}]}], "caveats": [], "who": [{"by": "worik", "context": "building an appliance on a Pi", "url": "https://news.ycombinator.com/item?id=48522312", "date": "2026-06-13"}], "tags": [], "use_cases": ["drawing ui on framebuffer", "game development"], "compared": [{"slug": "sdl3", "name": "SDL3", "co": 1, "switched_from": 0, "switched_to": 1}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=48479008", "title": "The state of building user interfaces in Rust", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46925808", "title": "I Write Games in C (yes, C)", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {"recommend": 1}, "2026-03": {}, "2026-04": {}, "2026-05": {}, "2026-06": {"recommend": 1}, "2026-07": {}, "2026-08": {}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 776356992, "item_id": 48522312, "url": "https://news.ycombinator.com/item?id=48522312", "by": "worik", "date": "2026-06-13", "stance": "recommend", "quote": "I settled on SDL2 Rust wrapper", "excerpt": "I have been building on a Pi with a 7 inch touch screen I started out looking for lightweight X-Windows solutions, for the LLM and me to use. Cutting a long and frustrating story short I settled on SDL2 Rust wrapper But what a PITA X-Windows is (e.g. need Wayland for some things, but does not work well for others), and my goal is an appliance, not an app. So in a moment of insight I spent an afternoon getting SDL2 to", "context": "building an appliance on a Pi", "use_case": "drawing UI on framebuffer", "switched_from": "X-Windows", "story": "The state of building user interfaces in Rust"}, {"id": 750959776, "item_id": 46934986, "url": "https://news.ycombinator.com/item?id=46934986", "by": "throwaway2037", "date": "2026-02-08", "stance": "recommend", "quote": "Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.", "excerpt": "Before I even read the blog post, my first thought was: \"Bullshit, this feels like clickbait. Simple DirectMedia Layer (SDL2) [one of the most popular gamedev libs for indy games] is written in pure C.\" I guess that the only backdoor to this clickbait argument in 2026 can be: \"My graphics/audio libary is written in pure C, but I use bindings with language X (C++/Rust/Zig/etc).\"", "context": "", "use_case": "game development", "switched_from": "", "story": "I Write Games in C (yes, C)"}]}