News for hackers. Stuff that matters.
Re:MiniJinja: Learnings from Building a Template Engine in Rust by __s on Tuesday August 27, 2024 @03:49PM (#41372152)
garbage collectors detect cycles. you may be thinking of reference counting. CPython includes a gc for cycle detection
Re:MiniJinja: Learnings from Building a Template Engine in Rust by oneshtein on Wednesday August 28, 2024 @01:23AM (#41376218)
Some GC detects cycles, some not (reference counting is example of GC which does not), but even those which detects cycles, may not able to detect all of them or it can be expensive as, for example, in typical Mark&Sweep GC, because it may require to stop the world to perform GC, which is unacceptable for system programming languages, like C, C++, Rust.
Re:MiniJinja: Learnings from Building a Template Engine in Rust by pebal on Wednesday August 28, 2024 @04:36AM (#41377341)
You can have completely pauseless GC tracking, also in Rust.