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.
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 · ▲175A C++ HTML template engine that uses compile time HTML parsing - rep-movsd/see-phit
- CAComputation 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 · ▲66C++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

CXXStateTree – A modern C++ library for hierarchical state machines2025 · github.com · ▲48Hi 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 →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 20h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, August 2017
the whole month →


APIs to automatically transcribe and understand audio
AI · 2017 · assemblyai.com

The essential guide to product design and design thinking
Work · 2017 · designbetterpodcast.com

