If you don't use things that rely on the gc, the runtime support needed by D2 is very minimal. You'd need to avoid: . resizing arrays . associative arrays . closures . of course, any use of new . array concatenation and the rest is pretty good to go.