3 ms·
any plan to move beyond "allocate linearly and never free anything" memory management ? semantics look nice and coherent but unfortunately without some kind (a
by obl 9y ago
any plan to move beyond "allocate linearly and never free anything" memory management ?
semantics look nice and coherent but unfortunately without some kind (automatic or manual) of memory management it's not usable as a general purpose tool.
- continuations 9y agoWait, so there's not even manual memory management? I can't even call free()? How would this work then?
- kthielen 9y agoI wouldn't summarize it that way. We obviously "free" memory or else our trading systems wouldn't work and we'd be in the news in a bad way. :) Allocation does happen out of a default region and applications that embed hobbes generally define "transaction boundaries" for their use of compiled expressions which may allocate. It's also possible to manually nest these regions and control them yourself, which we do in some applications (e.g. where we're loading whole days of trading data and indexing them in batches). Ultimately we might formalize that process with a region inference algorithm.