←back to thread

188 points refset | 3 comments | | HN request time: 0.463s | source
Show context
fire_lake ◴[] No.41867415[source]
IIUIR, Clojure uses the JVM garbage collector to clean up memory.

How does Jank do this whilst keeping the user code… still Clojure?

replies(1): >>41867713 #
refset ◴[] No.41867713[source]
Jank uses Boehm GC (written in C, also used by the likes of Inkscape, Guile and Mono) - it is discussed a little in the previous blog posts, e.g. https://jank-lang.org/blog/2023-07-08-object-model/
replies(2): >>41868176 #>>41869742 #
1. gaze ◴[] No.41869742[source]
Have you considered MPS? https://github.com/Ravenbrook/mps .
replies(2): >>41870047 #>>41871994 #
2. refset ◴[] No.41870047[source]
I'm just an enthusiastic bystander so I don't know the answer. Hopefully Jeaye can chime in.
3. Jeaye ◴[] No.41871994[source]
Yep! MPS was considered, but Boehm was significantly easier to get going. For jank's next GC, the plan is to use MMTK.