MLabs Publications
The many minds at MLabs present news, case studies, editorials, tutorials, whitepapers, Cardano Catalyst proposals, and more.
Do You Even PLift? Bridging Haskell & Plutarch with PLiftable for Efficient On-Chain Data
In this post, discover how PLiftable seamlessly translates Haskell types into Plutarch terms, giving you clear, efficient on-chain data representations. We’ll walk through builtin, SOP, and Data encodings—showing you how to write reversible, performant conversions that boost the reliability and performance of your Cardano scripts.
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.
An Introduction to the Concepts Behind YTxP Architecture
Discover the core principles behind YTxP architecture—a robust approach to modeling Cardano protocols that streamlines smart contract upgrades and optimizes transaction efficiency. Explore how yielding scripts delegate validations to authorized scripts using state thread tokens, paving the way for secure and maintainable protocol designs.
Cardano Plomin Hard Fork - developer upgrade guide
Its an exciting time to be building on Cardano - the Plomin hard fork recently went live. While this exciting for governance and the roadmap ahead, in this guide I want to give a short summary on the major changes and things that Cardano dApp developers should look out for.
Testing dApps on Cardano with CLB emulator
Discover how to test dApps on Cardano using MLabs’ CLB emulator, a cutting-edge tool for property-based and mutation-based testing funded by Project Catalyst in Fund10. Learn about state machine modeling, unified testing with Atlas, and integration with CTL.
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, ...