pebal/sgcl
View on GitHub ↗ ★ 243 C++
SGCL is a C++20 application platform with a concurrent, pause-free garbage collector: pointers, containers, lock-free structures, Go-style coroutines and channels.
28 mentions on Hacker News by 3 people: 5 stories, 23 comments · first 2022-05-27 · latest 2026-09-15
20082026
-
…think that has to mean. It doesn't. I've been building one as a plain header-only library (SGCL, https://github.com/pebal/sgcl - my project): the heap is traced precisely through per-type pointer maps the collector builds at runtime by…
comment by pebal · 2026-09-15 · in High-performance garbage collection for C++ -
I've spent the last few years on a library-only collector for C++ (SGCL, https://github.com/pebal/sgcl ), also non-moving, so a few data points on the "can it compete" question. Disclosure up front: my project, and measured so far only on…
comment by pebal · 2026-09-15 · in High-performance garbage collection for C++ -
Here you have a GC engine that is completely pauseless: https://github.com/pebal/sgcl It is available as a C++ library, so you can easily compare its performance to the reference counting.
comment by pebal · 2025-03-28 · in Blasting Past WebP - An analysis of the NSO BLASTPASS iMessage exploit -
Optional, Concurrent, Pause-Free GC for C++: https://github.com/pebal/sgcl
comment by pebal · 2025-03-04 · in Ask HN: What less-popular systems programming language are you using? -
▲ 2
Optional, Pause-Free GC in C++: A Game-Changer for Cyclic Structuresstory by pebal · 2025-02-23 · 0 comments
-
> Does your C++ have a garbage collector? No? You can have GC in C++, completely pauseless GC ( https://github.com/pebal/sgcl ). The only one in the world, even Java doesn't have anything like it. The GC support in the C++ standard was…
comment by pebal · 2024-08-29 · in FreeBSD considers Rust in the base system -
There's also more recent implementations such as https://github.com/chc4/samsara (quite similar to https://github.com/pebal/sgcl , which is for C++. Both implement a concurrent tracing algorithm which allows for reduced latency compared to…
comment by zozbot234 · 2024-08-01 · in Crafting Interpreters with Rust: On Garbage Collection -
…traced GC for systems programming, you might like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++) both implementing a concurrent tracing algorithm which is a bit more involved than what's directly…
comment by zozbot234 · 2024-06-26 · in Tracing garbage collection for arenas -
…into, implementing the same concurrent GC algorithm for Rust. A C++ implementation is available at https://github.com/pebal/sgcl .
comment by zozbot234 · 2024-05-16 · in Some notes on Rust, mutable aliasing and formal verification -
…The SGCL repository contains the source code for this benchmark that uses the tracked pointers: https://github.com/pebal/sgcl/blob/main/examples/treap/treap... Only D language is close to the result, the rest of the GC languages are…
comment by pebal · 2024-04-04 · in Garbage collection for systems programmers (2023) -
…automated cleanup and precise control over object lifetime. For a practical example, consider SGCL: https://github.com/pebal/sgcl
comment by pebal · 2024-03-31 · in Garbage collection for systems programmers (2023) -
…high performance concurrent implementation much like https://github.com/chc4/samsara (for Rust) or https://github.com/pebal/sgcl (for C++).
comment by zozbot234 · 2024-03-30 · in Garbage collection for systems programmers (2023) -
▲ 2
SGCL: A real-time Garbage Collector for C++story by signa11 · 2024-03-27 · 0 comments
-
You can have completely concurrent GC, without pausing threads. https://github.com/pebal/sgcl
comment by pebal · 2024-03-26 · in Rust data structures with circular references (2021) -
You can have completely concurrent GC, without pausing threads. https://github.com/pebal/sgcl
comment by pebal · 2024-03-26 · in Rust data structures with circular references (2021) -
You can look at the SGCL garbage collector for C++: https://github.com/pebal/sgcl . It works in a separate thread, is locks-free and never stops the world.
comment by pebal · 2024-01-22 · in Boehm-Demers-Weiser conservative C/C++ Garbage Collector -
There is only one like that, SGCL for C++ https://github.com/pebal/sgcl
comment by pebal · 2023-12-04 · in D Programming Language -
…term GC. However, an attempt was made to implement a similar solution. Take a look at tracked_ptr: https://github.com/pebal/sgcl
comment by pebal · 2023-08-20 · in The missing C++ smart pointer -
Look at this real-time garbage collector for C++: https://github.com/pebal/sgcl
comment by pebal · 2023-05-15 · in Successful Lisp: How to Understand and Use Common Lisp (1999) -
…of the standard library in the past. You can currently have optional garbage collection in C++: https://github.com/pebal/sgcl
comment by pebal · 2023-03-17 · in Retiring a favourite C++ joke -
SGCL is a real-time garbage collector for C++ without any pauses. https://github.com/pebal/sgcl
comment by pebal · 2023-03-05 · in Boehm-Demers-Weiser Garbage Collector -
You can look at this one: https://github.com/pebal/sgcl
comment by pebal · 2023-01-12 · in Pictures of a working garbage collector -
There are pauseless real-time GCs: https://github.com/pebal/sgcl
comment by pebal · 2023-01-11 · in What should I know about garbage collection as a Java developer? -
…The GC detects this tag and marks the object as alive. Here is a working implementation for C++: https://github.com/pebal/sgcl
comment by pebal · 2023-01-03 · in The year of C++ successor languages -
▲ 45
SGCL: Real-time garbage collector for C++story by signa11 · 2022-12-30 · 38 comments
-
▲ 1
Tracked_ptr – when shared_ptr is not enoughstory by pebal · 2022-12-28 · 1 comment
-
Here is a working implementation: https://github.com/pebal/sgcl
comment by pebal · 2022-08-22 · in Baby’s First Garbage Collector (2013) -
▲ 1
Lock-free Concurrent Garbage Collector for C++story by pebal · 2022-05-27 · 0 comments