Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

graphics design is my passion

Uncategorized
1 1 0

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    0 Views
    What is it about doornails that makes them more dead than other nails
  • 0 Votes
    6 Posts
    1 Views
    @mcc it is probably for the best lol
  • Writing Type-Safe Generics in C

    Uncategorized
    1
    1
    0 Votes
    1 Posts
    1 Views
    Writing Type-Safe Generics in CThe fun part about a programming language like C is that although the language doesn’t directly support many features including object-oriented programming and generics, there’s nothing that’s keeping you from implementing said features in C. This extends to something like type-safe generics in C, as [Raph] demonstrates in a blog post.After running through the various ways that generics are also being implemented using methods including basic preprocessor macros and void pointers, the demonstrated method is introduced. While not necessarily a new one, the advantage with this method is that is type-safe. Much like C++ templates, these generics are evaluated at compile time, with the preprocessor handling both the type checking and filling in of the right template snippets.While somewhat verbose, it can be condensed into a single header file, doesn’t rely on the void type or pointers and can be deduplicated by the linker, preventing bloat. If generics is what you are looking for in your C project, this might be a conceivable solution.hackaday.com/2025/11/17/writin…
  • OK, I gotta hand it to CoPilot.

    Uncategorized
    19
    1
    0 Votes
    19 Posts
    36 Views
    More progress on the sprite editor. Preview looks OK, now (it was stretched to fill the space before, because I'm still figuring out how to make things specific sizes and shapes and locations in QML). Save also works correctly.I also made a little guy with a big butt and big ears, I guess.