Then use a script language with similar memory semantics, PHP started out exactly that way, if I'm not mistaken.