Right now I am using Interact, Reactive and Compose to display 30x30 Matrix
trough Jupyter in firefox.
But it looks like one of those libraries causes some memory leak, because
every second my program uses 15MB more memory than s before. So after 3
minutes of running I run out of memory...
function _run(map)
println("running")
counter = 0
@manipulate for frame = fps(30)
counter += 1
# spawn food
if counter % FOOD_RESPAWN == 0
spawnfood!(map)
end
for x=1:MAP_SIZE, y=1:MAP_SIZE
object = map[y, x]
simulate!(object, map, y, x)
end
#draw it
compose(compose(context(), rectangle(), fill("#292929")),
[compose(map[b, a], b*cu, a*cu) for a=1:MAP_SIZE, b=1:MAP_SIZE
]... # even if I comment this line out, it still causes memory leak
)
end
end
Any ideas what could cause that?