3 ms·
Does it explain how to integrate a garbage collector? Because that is the most difficult part of implementing a compiler nowadays, especially if it is a concurr
by amelius 11y ago
Does it explain how to integrate a garbage collector? Because that is the most difficult part of implementing a compiler nowadays, especially if it is a concurrent one, which doesn't stop the world on each collection cycle.
- drmeister 11y agoI've implemented Common Lisp using llvm (github.com/drmeister/clasp). I've integrated the Boehm and Memory Pool system garbage collectors. How? It would take a long time to explain - but it's doable.
- hayd 11y agoNice! Have you benchmarked against Julia? Would be interesting how Clasp compares in their micro perf tests: https://github.com/JuliaLang/julia/tree/master/test/perf/micro https://github.com/JuliaLang/julia/tree/master/test/perf/mic... http://scilua.org/ http://scilua.org/ was added in the tests recently and does pretty well.
- theseoafs 11y agoI don't know of any general purpose concurrent collectors which have no stop-the-world phase.
- latenightcoding 11y agohttp://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/ http://journal.stuffwithstuff.com/2013/12/08/babys-first-gar...
- trishume 11y agoLLVM has a decent amount of documentation on integrating garbage collection, not on how to write one though. Some more advanced GC integration functionality was added more recently because of the work on Webkit's FTL JIT: http://llvm.org/docs/Statepoints.html http://llvm.org/docs/Statepoints.html
- marssaxman 11y agoWhat do you mean by that? I have never known a compiler to include a custom garbage collector at all, much less to have such unusual allocation patterns that it would count as a difficult part of the job.