faumaray and Claude Sonnet 4.6
b54f2156c5
Add Numeric and Format modules
...
Void::Numeric — checked_add/sub/mul/div returning std::expected<T,Error>;
saturating_add/sub/mul clamping at min/max; wrapping_add/sub/mul for unsigned;
clamp, parse_int (with base), parse_double, narrow_cast.
Void::Format — render() named-placeholder template engine ({key} syntax,
{{}} escaping); render_pos() positional ({0},{1}); indent() per-line prefix;
word_wrap() at whitespace boundaries; format_table() with auto column alignment.
44/44 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 22:59:55 +03:00
faumaray and Claude Sonnet 4.6
3c3ff46e39
Add Graph, Trie, LRU modules
...
Void::Graph — DiGraph<V,E> directed adjacency-list graph: add_vertex/add_edge,
has_vertex/has_edge, BFS/DFS traversal, topological sort (Kahn, returns nullopt
on cycle), can_reach, shortest_path (BFS, unweighted).
Void::Trie — Prefix tree Trie<V>: insert, contains, get, starts_with, erase
(with node pruning), keys_with_prefix, size/empty.
Void::LRU — LruCache<K,V>: get (promotes to MRU), put (evicts LRU when full),
peek (no promotion), erase, clear, contains, full/empty/size.
42/42 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 22:57:53 +03:00
faumaray and Claude Sonnet 4.6
388e75011f
Add Observable, Pool, Ring modules
...
Void::Observable — Observable<T> reactive value with typed on_change listeners
and unsubscribe-by-handle; Signal<Args...> event broadcast with connect/disconnect.
Void::Pool — ObjectPool<T,ChunkSize> slab-based pool with unique_ptr<T,Deleter>
ownership; FixedPool<T,N> fixed-capacity in-place pool, returns nullptr when full.
Void::Ring — SpscRing<T,N> single-producer/single-consumer wait-free ring buffer;
MpscRing<T,N> multi-producer/single-consumer ring using CAS on the head pointer.
Both tested under real threads.
39/39 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 22:54:35 +03:00
faumaray and Claude Sonnet 4.6
a9a2e2b59a
Add Scope, StateMachine, TypeList modules; remove macros from Scope
...
Void::Scope — RAII scope guards: ScopeExit/ScopeSuccess/ScopeFail with
on_exit/on_success/on_fail factory functions. No macros.
Void::StateMachine — compile-time FSM driven by Transition<From,Ev,To>
type lists. Supports typed entry/exit callbacks and returns bool from send()
indicating whether the transition was valid.
Void::TypeList — compile-time type list with: size_of, at, front, back,
contains, index_of, push_front/back, pop_front, concat, filter, transform,
reverse, unique, for_each, all_of/any_of/none_of.
Void::Encoding — Base64 (standard + URL-safe encode/decode) and Hex
encode/decode. Included in previous commit but missed in message.
36/36 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 22:49:22 +03:00
faumaray and Claude Sonnet 4.6
a09e000f0f
Add Hash, Random, Uuid, Encoding, Bits, Math modules + make Testing deps optional
...
New header-only modules:
- Void::Hash — FNV-1a 32/64, CRC-32, DJB2, MurmurHash3-32, UDL literals
- Void::Random — Xoshiro256** PRNG, uniform_int/real, coin_flip, shuffle, random_string
- Void::Uuid — v4 (random), v5_lite (name-based), parse, RFC 4122 namespaces
- Void::Encoding — Base64 (standard + URL-safe), Hex encode/decode
- Void::Bits — popcount, bit extract/deposit, rotation, align, byteswap, masks
- Void::Math — Vec2/Vec3/Vec4, Mat4 (identity, translation, scale, rotation)
Testing module: move Stacktrace from INTERNAL_DEPS to OPTIONAL_DEPS. Added
Detail/Color.hpp shim that delegates to Stacktrace::Color when present or
provides inline ANSI fallback otherwise. All Stacktrace calls in SignalHandler,
ConsoleReporter, and Runner are gated on VOID_HAS_STACKTRACE.
Fix Repr.hpp reflect_struct to handle template specializations that lack
std::meta::identifier_of (now guarded by has_identifier check).
33/33 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 21:52:22 +03:00
faumaray
42268c6c35
Reflection and filesystem
...
Signed-off-by: faumaray <faumaray@gmail.com >
2026-05-03 18:09:46 +03:00
faumaray
f0825fbd1a
Stacktrace module
...
Signed-off-by: faumaray <faumaray@gmail.com >
2026-04-29 23:23:20 +03:00
faumaray
e7186f17f0
Testing module
...
Signed-off-by: faumaray <faumaray@gmail.com >
2026-04-29 22:49:33 +03:00
faumaray and Claude Sonnet 4.6
4fc129fb7e
Initial commit: VoidLibrary C++23 modular library
...
Adds Logging module with thread-safe Logger base class, ScopedContext
RAII guards, Preset helpers, and a FileLogger standalone test/example.
Includes CMake module system for auto-discovery and CTest integration.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-25 21:28:29 +03:00