Main public logs
Appearance
Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 13:06, 23 November 2025 PC talk contribs created page How to (Safely) Create a Global, Mutable Singleton in Rust — and When You Actually Should (Created page with "500px Summary * Prefer no globals: construct early (e.g., in main) and pass &mut/& where needed. * If you must have a global: use std::sync::LazyLock (Rust ≥ 1.80) with a lock type (Mutex/RwLock) that matches your access pattern. * For single-threaded graphics loops (typical OpenGL): consider thread_local! + RefCell to avoid cross-thread locking. * For counters/flags: use atomics. * Avoid static mut and ra...")