nowfound

Life & fun · alternatives · 2026

24 alternatives to Nameof Operator for Modern C++

Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum - Neargye/nameof

Nameof Operator for Modern C++ is a library that provides compile-time name reflection for C++. It allows developers to obtain the string representation of variable, function, and type names during compilation. The… Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. Nameof Operator for Modern C++ launched in 2019; newer entries below may have overtaken it.

  1. 1

    C++17 nameof operator to obtain name variable, type and enum

    2019 · github.com · its alternatives →

  2. 2

    Try it on Compiler Explorer: https://godbolt.org/z/91dj5jeGW Check out the source code: https://github.com/RyanJK5/rjk-duck

    Jul 2026 · ryanjk5.github.io · its alternatives →

  3. 3

    A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.

    2019 · github.com · its alternatives →

  4. 4

    A C++ HTML template engine that uses compile time HTML parsing - rep-movsd/see-phit

    2017 · github.com · its alternatives →

  5. 5

    A simple and powerful C++ reflection system. Contribute to m4nu3lf/eXtendedMirror development by creating an account on GitHub.

    2015 · github.com · its alternatives →

  6. 6

    Closure Conversion. GitHub Gist: instantly share code, notes, and snippets.

    2019 · gist.github.com · its alternatives →

  7. 7

    A fast and memory-optimized string library for C++ - btwael/SuperString

    2018 · github.com · its alternatives →

  8. 8

    Meta programming utilities for C++14. Merged in matt-42/lithium - matt-42/iod

    2014 · github.com · its alternatives →

  9. 9

    Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean

    2021 · github.com · its alternatives →

  10. 10

    I've created cppmatch, a lightweight, header-only C++ library that brings Rust-inspired pattern matching and error handling to C++. It tries to imitate the functionality of the questionmark (?) operator in C++ by using a macro that uses the gcc extension https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html This allows to create exceptionless code with non-intrusive error-as-value that unlike Exceptions, makes it clear which kinds of error a function can generate and forces you to handle (or ignore) them. The ? operator translates to *expect* To handle the errors I…

    2025 · github.com · its alternatives →

  11. 11

    A little help for programmers, who wants to run C/C++ code in the browser. (This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)

    2022 · github.com · its alternatives →

  12. 12

    Moved to Forgejo! Contribute to krig/LISP development by creating an account on GitHub.

    2018 · github.com · its alternatives →

  13. 13

    An approach for runtime detection inside a constexpr function - SaadAhmad/in_constexpr

    2017 · github.com · its alternatives →

  14. 14

    A lightweight single-header pattern-matching library for C++17 with macro-free APIs. Try it at https://godbolt.org/z/8YMr8Kz8j

    2022 · github.com · its alternatives →

  15. 15

    Wiki:. Contribute to dchichkov/curious-namespace-trick development by creating an account on GitHub.

    2016 · github.com · its alternatives →

  16. 16

    I love C and C++, but setting up projects can sometimes be a pain. Every time I wanted to start something new I'd spend the first hour writing CMakeLists.txt, figuring out find_package, copying boilerplate from my last project, and googling why my library isn't linking. By the time the project was actually set up I'd lost all momentum. So, I built Craft - a lightweight build and workflow tool for C and C++. Instead of writing CMake, your project configuration goes in a simple craft.toml: [project] name = "my_app" version = "0.1.0" language = "c" c_standard = 99 [build] type = "executable"…

    Apr 2026 · github.com · its alternatives →

  17. 17

    Morning HN. I often found myself wondering "how much does this code segment take in terms of total runtime" and it's often quite annoying to figure out with optimizations enabled, especially when working on something new or testing someone else's implementation without the proper tooling set up. Wanted to have a single include lib that would allow us to write something like: ``` PROFILE("Loop 1") for (...) // some work ``` and have the next expression automatically record time & dump results to a table. Wrote a few macros to do exactly that a few months back, but they were…

    2025 · github.com · its alternatives →

  18. 18

    Parse command line arguments by defining a struct. Contribute to p-ranav/structopt development by creating an account on GitHub.

    2020 · github.com · its alternatives →

  19. 19

    Hi HN! Korean high school senior here, about to start CS in college. I built a browser engine from scratch in C++ to understand how browsers work. First time using C++, 8 weeks of development, lots of debugging—but it works! Features: - HTML parsing with error correction - CSS cascade and inheritance - Block/inline layout engine - Async image loading + caching - Link navigation + history Hardest parts: - String parsing(html, css) - Rendering - Image Caching & Layout Reflowing What I learned (beyond code): - Systematic debugging is crucial - Ship with known bugs rather than chase…

    Jan 2026 · github.com · its alternatives →

  20. 20

    A C++ library for debugging purposes that can print any variable, even user-defined types. - philip82148/cpp-dump

    2023 · github.com · its alternatives →

  21. 21

    I rewrote the most common core string.h functions in pure C. I mostly did it to learn pointers and string. Would love to get any feedbacks:)

    2025 · github.com · its alternatives →

  22. 22GI

    Hi all! I'm going into my freshman year, and figured that the best way to prepare for the intro to programming Racket course would be to implement my own garbage-collected, dynamically typed, functional programming language in C ;) Anyways... here's the repo: https://github.com/liam-ilan/crumb I started learning C over the summer, so I still have a whole lot to learn... Any feedback would be greatly appreciated! :D

    2023 · its alternatives →

  23. 23

    Develop your programming skills or start your coding journey

    2021 · play.google.com · its alternatives →

  24. 24

    A simple way to output stack traces when a program crashes in C++, using the new C++23 <stacktrace> header - TylerGlaiel/Crashlogs

    2023 · github.com · its alternatives →

Also compare

Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →