Programming · Latest articles

30 new today · 2,696 articles · from 79 blogs

Andrew Kelley·

Pillagers! 7dRTS Game Development Journal

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.

Mara Bos·

C++11: Rvalue references for *this

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

Andrew Kelley·

Private Methods in JavaScript

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

Elixir Blog··José Valim

Elixir v0.10.0 released

Elixir v0.10.0 is out with support for streams, sets, pretty printing and many improvements for Mix and ExUnit.

Andrew Kelley·

Spot the Fail

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.

Andrew Kelley·

Statically Recompiling NES Games into Native Executables with LLVM and Go

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.

Elixir Blog··José Valim

Elixir v0.9.0 released

Elixir v0.9.0 is released with support for reducers, umbrella projects, faster compilation times and dropped support for R15 and earlier OTP versions.

Elixir Blog··José Valim

Elixir on Xen

The Erlang on Xen team has added support for Elixir and we will tell you how you can use it.

Andrew Kelley·

Rapid Development Email Templates with Node.js

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.

Elixir Blog··José Valim

Elixir v0.8.0 released

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

Elixir Blog··Yurii Rashkovskii

Elixir v0.7.2 released

Elixir v0.7.2 is released, new, improved type specifications syntax and many other improvements.

Elixir Blog··José Valim

Elixir v0.7.1 released

Elixir v0.7.1 was released to celebrate the end of a two months journey traveling around Europe, United States and Brazil talking about Elixir.