noplate

generic data structures (by uecker)

Noplate Alternatives

Similar projects and alternatives to noplate

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better noplate alternative or higher similarity.

noplate reviews and mentions

Posts with mentions or reviews of noplate. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-18.
  • Polymorphic Types in C [pdf]
    2 projects | news.ycombinator.com | 18 Jan 2024
    Hi Martin, thank you for writing this proposal. This is just my two cents, but one-off void* functions, like qsort, are less of a pain point relative to generic containers. With generic containers it's common to have a collection of void* functions that must be consistently invoked with identical type T. Correct me if I'm wrong, but this proposal cannot genericize a struct field, i.e. it can genericize type 'T' but not 'T->someField'. The latter would be useful for something like 'vec_push(v,p)' where 'v->data[]' is the type T needed to determine if 'p' is a compatible type.

    Tangentially related, the macro-based containers you've written here [1] are the best answer for type-generic containers I've come across. One "gotcha" is the container name must be a valid C identifier otherwise it doesn't token paste correctly (see Example #2 of your REAMDE where you typedef'd string* as string_ptr to workaround this). Would you give consideration to a new preprocessor mechanism for concatenating a list of tokens into a single valid C identifier? i.e. Something like CONCAT(struct Foo *) would produce struct_Foo_Ptr? The result is guaranteed token paste-able.

    [1] https://github.com/uecker/noplate

  • Neverflow: Set of C macros that guard against buffer overflows
    4 projects | news.ycombinator.com | 2 Jun 2023
  • New C features in GCC 13
    1 project | news.ycombinator.com | 4 May 2023
    I am exploring way on how to implement this in C (with some extensions) as a library:

    https://github.com/uecker/noplate

    Certainly not production ready.

  • Checked C
    14 projects | news.ycombinator.com | 21 Dec 2022
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 9 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic noplate repo stats
4
41
6.0
4 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com