> I use memarray which as far as I can tell comes from lua-glut. There's > a copy of it here: > > https://github.com/henkboom/dokidoki/blob/master/memarray.c I totally missed that when it was announced in 2006. It looks very nice.