Cimba: High-Performance Discrete Event Simulation Library in C with Multithreading and Coroutines
By
ambonvik
Baker's choice. Dense with flavour, light on filler.
Summary
Cimba is a high-performance discrete event simulation library written in C and assembly that uses POSIX pthreads for parallelized replications and stackful asymmetric coroutines (fibers) for concurrent simulated processes within each thread. The library demonstrates significant performance advantages over Python's SimPy, running 40-50 times faster in multithreaded scenarios and 25% faster on a single core than SimPy using all 64 cores. The implementation focuses on efficient event processing with benchmarks showing 20 million events per second on a single core.
Key quotes
· 4 pulledCimba models run 40-50 times faster than SimPy equivalents.
Cimba runs 25% faster (20M events/sec) on a single core than SimPy using all 64 cores (16M events/sec).
A fast discrete event simulation library written in C and assembly with POSIX pthreads.
Simulated processes are implemented as stackful coroutines ('fibers') inside the pthreads.
You might also wanna read
NumKong: A Comprehensive Collection of 2,000 SIMD Kernels for Mixed-Precision Numerical Computing
The article announces the rebranding of the SimSIMD project to NumKong, which is described as a comprehensive collection of approximately 2,
Ironkernel: Python DSL That Compiles to Parallel Rust for High-Performance Computing
Ironkernel is a Python DSL (Domain Specific Language) that allows developers to write NumPy-like element-wise expressions in Python, which t
Why Average LLM Use Is Likely Destroying Value in Software Development
The author argues that, contrary to prevailing hype, the average use of Large Language Models (LLMs) is likely destroying value rather than
How AI Accelerated Prototyping: From Idea to Tangible in Record Time
The author reflects on how AI has transformed their prototyping workflow. Previously, the biggest bottleneck was the time needed to scaffold
GitLab 19.0 launches with Secrets Manager, agentic workflows, and self-hosted AI models
GitLab 19.0 has been released, positioning itself as an intelligent orchestration platform for DevSecOps. The release includes expanded secr
bit.ly·1d agoCentralizing Error Handling in Rust with Custom AppError Enums
This article discusses the importance of centralizing error handling in Rust applications using a custom AppError enum combined with map_err
