MLabs Publications
The many minds at MLabs present news, case studies, editorials, tutorials, whitepapers, Cardano Catalyst proposals, and more.
The 'A' is for 'Accelerated': Checking ASCII with SWAR
In this post, discover how to push Haskell’s performance boundaries by using SWAR (“SIMD Within A Register”) techniques to validate ASCII data in bulk. You’ll see how packing bytes into registers—using bit masking to flag non-ASCII values in parallel—and unrolling loops to leverage the CPU’s superscalar engine both drive down overhead. By the end, we'll transfer a simple foldl'-based ASCII detecting function into a version running 10x faster.
Quasiquoting for Fun, Profit, Expressions and Patterns
In this post, discover how quasiquoters overcome three key smart-constructor limitations—compile-time errors, lack of pattern matching, and fixed syntax—by leveraging Template Haskell to produce both expressions and patterns with familiar, literal syntax.
How Covenant Will Deliver You to the Promised Land (of Scripts)
Covenant introduces a Turner-total, call-by-push-value, serializable DSL designed for reliable, secure programming in domains like smart contracts. It guarantees termination, safe execution, and predictability. By serving as a target for higher-level tools, Covenant supports composability and serialization, enabling developers to create robust applications with confidence in correctness and performance.
Queenside Castling on Cardano : Bitwise Operations for Better Solutions and Improved Plutus Scripts
Introduction Currently, MLabs is undertaking the work of bringing bitwise primitive ...
Mastering QuickCheck: Advanced yet Practical Techniques for Property-Based Testing
Introduction QuickCheck is a well-known testing tool in the Haskell community. At MLabs, ...