AI summaryThe author chronicles five days of developing 'Pillagers', a browser-based game combining space physics with real-time strategy for the July 2013 7-Day RTS Challenge, working with collaborator Michael Weber on sound, music, and atmosphere. Using a custom canvas-based engine called 'chem' and open-sourcing the code on GitHub, they progressively added ship classes with combat AI, levels, portals, a mini-map, sound effects, and win/lose conditions. Key milestones included fixing a memory leak that tanked the framerate to 16 FPS, adding Sandbox and dogfighting modes, and inviting players to test the game in their browser and provide feedback.
Recently, gcc added support rvalue references for *this. (Clang has supported it for quite a while now.) In this post, I show how to use this feature, and how it means we can finally define accessors and a few other things like operator= co
AI summaryThe article demonstrates that JavaScript can have truly private methods without the underscore convention by defining plain helper functions within the same scope (e.g., module) and passing the instance explicitly, which also simplifies callback handling. Benchmarks show this approach has no performance penalty compared to prototype methods. In environments without scoping, such as a browser
AI summaryThe author shares a lighthearted blog post titled 'Spot the Fail,' featuring screenshots of comically dumb programming mistakes they've made, with each fail being identifiable even without code context. The collection includes 16 examples such as missing break statements, incorrect operators, swapped variables, off-by-one errors, and wrong array indexing. The post ends by recalling Quixey's old hiring promotion that paid $100 for spotting a fail in one minute.
AI summaryThis article presents original research into statically disassembling and recompiling Nintendo Entertainment System games into native executables using LLVM IR and a toolchain built in Go, rather than writing a traditional runtime emulator. The author walks readers through the entire process in a 'build it together' fashion, covering NES architecture basics, the 6502 CPU, memory-mapped I/O, creating a custom ABI for testing, and writing an assembler with a lexer and parser, while addressing challenges such as runtime address checks, parallel subsystems, interrupts, and jump tables. The work culminates in a demonstration of Super Mario Bros. running as native machine code, though mapper support remains an unsolved challenge.
AI summaryThe article recounts the author's experience building an automated email notification system at Indaba Music using Node.js, initially relying on node-email-templates and Nodemailer. Dissatisfied with node-email-templates' flaws—such as requiring unnecessary text files, lacking template inheritance, preventing CSS sharing between templates, and not supporting dummy context generation—the author wrote alternative modules: boost, swig-dummy-context, and swig-email-templates. Together these tools enable template inheritance, shared CSS inlining, and instant template previews, powering a live email template preview tool used internally.
On the last 9th January, we celebrated two years since Elixir's first commit and to celebrate this occasion we have prepared a big release. Elixir v0.8 is out, with documentation, optimizations, bug fixes and shiny new features. Let's take