Pragma Twice: A dystopian sci-fi themed programming puzzle game where players write real JavaScript code to control a character's 'kernel'.
Raw Developer Origin & Technical Request
Hacker News
Sep 10, 2026
Hey HN, I'm Bryan. I released Pragma Twice earlier this week in anticipation for Steam's "Programming Fest". Pragma Twice is a programming puzzle game in the same vein as Untrusted (untrustedgame.com You have to write real JavaScript code to incrementally improve your playable character's "kernel" over the course of the game. Beating levels autonomously (without keyboard inputs) reveals a competitive time/code golf aspect to the game.I started developing Pragma Twice over 4 years ago after playing Untrusted and loving it. It took so long to develop because I'm not a full time game developer... between my actual job, my kids, and my own self-motivation, it's taken a lot longer than I originally hoped to get this game shipped! It's definitely what you might call a passion project. Anyway, I plan to keep iterating on it, so give it a spin and let me know what you think!A few technical details/challenges:- The game was originally written in vanilla JavaScript, but I later converted it to TypeScript (which had an astonishing ROI)- Uses PixiJS for the graphics and a custom game engine built around Web Workers + SharedArrayBuffer for sandboxing and guarding against things like infinite loops- The web version is hosted on GitHub Pages, which was challenging because of the SharedArrayBuffer requirement (I use github.com/gzuidhof/coi-serv... to work around this)- The linux/windows versions use Electron- Uses CodeMirror for in-game editor/console- Levels built with LDtk- Automated game testing with PuppeteerSteam: store.steampowered.com/app/3528840/Pragm... Notes: bryanpg.com/games/pragma_twic...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Frequently Asked Questions
Market intelligence mapped to Pragma Twice: A dystopian sci-fi themed programming puzzle game where players write real JavaScript code to control a character's 'kernel'..
What is the technical positioning of Pragma Twice: A dystopian sci-fi themed programming puzzle game where players write real JavaScript code to control a character's 'kernel'.?
What architecture is tied to Pragma Twice: A dystopian sci-fi themed programming puzzle game where players write real JavaScript code to control a character's 'kernel'.?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like kernel and TypeScript in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- kernel: 59 records
- TypeScript: 37 records
- Electron: 25 records
- sandboxing: 8 records
- CodeMirror: 6 records
- GitHub Pages: 5 records
- Puppeteer: 3 records
- vanilla JavaScript: 2 records
- custom game engine: 2 records
- Web Workers: 2 records
- programming puzzle game: 1 records
- JavaScript code: 1 records
- autonomous gameplay: 1 records
- competitive time/code golf: 1 records
- PixiJS: 1 records
- SharedArrayBuffer: 1 records
- infinite loops: 1 records
- coi-serviceworker: 1 records
- LDtk: 1 records
SaaS Metrics