nowfound

Life & fun · August 8, 2017

C++ runtime/compile-time detection in constexpr functions

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

C++ runtime/compile-time detection in constexpr functions launched on August 8, 2017 with 83 votes, #561 of 3,214 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 9 years on.

Visit github.com ↗Alternativestop 17% of August 2017

In plain words

This is a C++ library that enables detection of whether code is executing at runtime or compile-time within constexpr functions. It allows developers to write functions that behave differently depending on the execution context. The tool is useful for C++ programmers who need to optimize performance or handle compile-time and runtime scenarios with a single function implementation.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Compile-time HTML parsing in C++142017 · github.com · ▲175

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

  • CA
    Computation at Compile-Time now free online2017 · billsix.github.io · ▲57
  • Cronexpr, a Rust library to parse and iter crontab expression2024 · docs.rs · ▲160

    `cronexpr` is a library to parse and drive the crontab expression.

  • LazyCode – C++14 composable, lazily evaluated map, filter, fold2018 · github.com · ▲66

    C++14: bringing in those expressions that you wish you had, Lazily evaluated, compossible generators, maps, filters, ranges and more... - GitHub - SaadAttieh/lazyCode: C++14: bringing in those expressions that you wish you had, Lazily evaluated, compossible generators, maps, filters, ranges and more

  • beLowDec 2025 · wedolow.com · ▲176

    Inline insights with C/C++ that shows CPU, memory, energy

  • CXXStateTree – A modern C++ library for hierarchical state machines2025 · github.com · ▲48

    Hi HN! I've built [CXXStateTree](https://github.com/ZigRazor/CXXStateTree), a modern C++ header-only library to create hierarchical state machines with clean, intuitive APIs. It supports: - Deeply nested states - Entry/exit handlers - State transitions with guards and actions - Asynchronous transitions with `co_await` (C++20 coroutines) - Optional runtime type identification for flexibility It's ideal for complex control logic, embedded systems, games, robotics, and anywhere you'd use a finite state machine. I’d love feedback, use cases, or contributions from the…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, August 2017

the whole month →
  • Now with Reviews, Badges, Web Links, and more ✨

    Life & fun · 2017

  • WhatRuns▲1,045

    Discover what runs a website in one click 🖥️ 🔍

    Growth · 2017 · whatruns.com

  • APIs to automatically transcribe and understand audio

    AI · 2017 · assemblyai.com

  • The essential guide to product design and design thinking

    Work · 2017 · designbetterpodcast.com

  • Visual demonstration of blockchain technology

    Commerce · 2017 · blockchaindemo.io

  • Next step of an exciting new phase and the Partners Program

    Work · 2017 · medium.com