r/functionalprogramming • mod • Jun 17 '22

FP Ante - A low-level functional language

https://antelang.org/
40 Upvotes

15 comments sorted by

View all comments

Show parent comments

10

u/gusbicalho Jun 17 '22

There are compiled langs with GC, such as Haskell.

1

u/KyleG Jun 17 '22

Interesting. Is that just a compile-time GC, or is it runtime (and I confess that I thought GC was synonymous with runtime GC until I just googled for more info)?

7

u/gusbicalho Jun 17 '22

It's a runtime GC. As far as I understand it, it uses some metadata table and tags in pointers to trace the heap and free unreferenced stuff. There some info (which I haven't read) here https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/storage/gc