[PBDS] Rejuvenation
Oleksandr Kulkov
adamant.pwn@gmail.com
Fri Oct 30 01:25:16 GMT 2026
Hi Jonathan,
I went over pb_ds to understand the current situation. I think most of it
is currently either covered by the standard in some way (possibly at worse
performance, but at least at reasonable complexity, like hash tables), or
not efficient enough to be useful (e.g. split/join in log^2 n is
impractical and inefficient).
removing order_of_key/find_by_order, however, would really hurt, and I'd
really like to preserve this capability, Would you be open to considering
it if I suggest a substitute extension using the modern C++ approach? I
think I can handle it without violating GCC AI policy at this scope.
Oleksandr
On Fri, Oct 30, 2026 at 12:42 AM Jonathan Wakely <jwakely@redhat.com> wrote:
> On Thu, 29 Oct 2026 at 23:25, Oleksandr Kulkov <adamant.pwn@gmail.com>
> wrote:
> >
> > Okay, got it, very sorry to hear it's now also causing security issues,
> I didn't consider it, but in retrospect it makes sense.
> >
> > If that is the case, was there some particular input you were looking
> for by pinging this thread, or perhaps there is something else I could help
> you with on this?..
>
> I pinged this thread before I took another look at the code and
> realised just how bad the situation is, so then I created
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127690 to record the
> problems.
>
> >
> > For example, Richard's comment was predicated on "If there are standard
> library replacements", and I think that at least some of pb_ds things offer
> something that can't be covered by the standard library.
> >
> > If, say, I go over pb_ds running some fresh benchmarks and capability
> comparison with the standard library, and it turns out that most of it can,
> indeed, be retired, but some particular structures there offer some
> meaningful enhancements (in performance or capability), would you be open
> to preserve some individual pb_ds components, or are you set on getting rid
> of it as a whole?
>
> I want to remove it all. We have enough work already just supporting
> what's in the C++ standard, without 20+ year old non-standard
> extensions that don't use any modern C++ features (like move semantics
> and stateful allocators, for examples that are already 15 years old!)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261030/a12efe10/attachment.htm>
More information about the Libstdc++
mailing list