New Approach to Formal Verification Methods for Combating Vulnerabilities in Smart Contracts

Embedding formal specification constructs directly into programming languages could revolutionize smart contract development and eradicate vulnerabilities in smart contracts.

March 12, 2025

Zero-Cost 'Tagless Final' in Rust with GADT-style Enums

A deep dive into implementing the ’tagless initial’ pattern in Rust using enums and the never type to achieve zero-cost abstractions, demonstrated with optimized assembly output.

June 3, 2025

Game-Theoretical Assessment in DEX Protocols

Exploring how game-theoretical modeling can be applied to decentralized exchange (DEX) protocols to identify design weaknesses and strategic attack vectors. We discuss the incentives and strategies of participants in Uniswap, SushiSwap, Cetus, and KyberSwap, illustrating how game theory can reveal exploits and inform more secure DEX design.

May 23, 2025

Abstract Methods with Auto-Inferred Arguments in Rust

Demonstrating how to define a single-argument abstract Method trait in Rust, and use a PhantomData-based hint technique to automatically infer generic types.

May 18, 2025

Choosing the Right C Library for Embedded Systems: Newlib, picolibc, nanolib, and dietlibc

A look into specialized C standard libraries like Newlib, picolibc, nanolib, and dietlibc, designed for resource-constrained environments where standard libraries like glibc are too large or complex.

April 10, 2025

Simplifying Continuation-Passing Style (CPS) in Rust

In this post, we explore an advanced CPS (Continuation-Passing Style) implementation that leverages local memory pointers alongside arrow statements to declare an abstract program.

March 25, 2025

Arena-Based Allocation in Compilers

Arena-based allocation is a memory management strategy in which a large block of memory is pre-allocated, and then many small objects are quickly carved out from that block.

February 24, 2025

Understanding the C Runtime: crt0, crt1, crti, and crtn

The C runtime (CRT) is a collection of startup routines, initialization code, standard library support, and sometimes system call wrappers that form the environment in which a C program executes.

January 15, 2025

Introduction into Logic in computer science

This blog outlines the basics of propositional logic, as explained by the book “Logic in compuer science”.

November 9, 2024

Commit to marriage with TLA+ pt.2

The second part of the conspect of the “Intoduction to TLA+” course by Leslie Lamport.

May 1, 2024