This commit is contained in:
2026-02-03 03:25:31 +01:00
parent a07a87a35f
commit e337eb35e7
8 changed files with 125 additions and 32 deletions

View File

@@ -1,3 +1,4 @@
use arc_swap::ArcSwap;
use parking_lot::Mutex;
use std::collections::hash_map::DefaultHasher;
use std::collections::HashMap;
@@ -63,7 +64,7 @@ fn compute_stack_display(
let result = if script.trim().is_empty() {
"Stack: []".to_string()
} else {
let vars = Arc::new(Mutex::new(HashMap::new()));
let vars = Arc::new(ArcSwap::from_pointee(HashMap::new()));
let dict = Arc::new(Mutex::new(HashMap::new()));
let rng = Arc::new(Mutex::new(StdRng::seed_from_u64(42)));
let forth = Forth::new(vars, dict, rng);