# Compile time memory management

**URL:** <https://discourse.julialang.org/t/compile-time-memory-management/39139>\
**Category:** Internals & Design\
**Created:** [May 8, 2020, 9:06pm UTC](https://discourse.julialang.org/t/compile-time-memory-management/39139 "2020-05-08T21:06:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![datnamer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datnamer/32/3471_2.png) [@datnamer](https://discourse.julialang.org/u/datnamer)\
**Post date:** [May 8, 2020, 9:06pm UTC](https://discourse.julialang.org/t/compile-time-memory-management/39139/1 "2020-05-08T21:06:26Z")

</div>

There was some talk of compile time memory management to help with GPU etc allocations.

In a similar vein: [GitHub - doctorn/micro-mitten: You might not need your garbage collector](https://github.com/doctorn/micro-mitten)

" Like Rust, `micro-mitten` offers a static approach to memory management; however, `micro-mitten` 's approach is significantly different from Rust’s. Rather than depending on single ownership and a complex lifetime system, `micro-mitten` uses a series of data-flow analyses to statically approximate heap liveness. This means that it maintains the ability to insert freeing code at appropriate program points, without putting restrictions on how you write your code. The theory behind the approach is documented in [this thesis](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-908.pdf) (Proust 2017).

Long story short, this is an attempt to see if we really can have unrestrictive compile-time garbage collection."

ccing @Keno in case anything in this repo and associated paper is helpful in that regard and posting here if anyone from the broader community has input.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [May 11, 2020, 7:37pm UTC](https://discourse.julialang.org/t/compile-time-memory-management/39139/2 "2020-05-11T19:37:46Z")

</div>

18 posts were split to a new topic: [Proposal for deterministic memory management](https://discourse.julialang.org/t/proposal-for-deterministic-memory-management/39305)
