Technical Articles & Insights
A collection of my technical writings on blockchain development, Rust programming, DeFi protocols, and emerging technologies.
Recent Articles (2025)
Ultimate Arbitrage Strategies
April 2025
A deep dive into arbitrage strategies in crypto.
Inside Drift: Architecting a High-Performance Orderbook on Solana
April 2025
A deep dive into Drift Protocol’s architecture, exploring how Solana’s largest open-source perpetual futures DEX achieves high performance through innovative design patterns including Just-In-Time liquidity, cross-margined risk engines, and hybrid AMM approaches.
An Engineer’s Guide to Building and Validating Quantitative Trading Strategies
January 2025
From data collection to statistical validation — a rigorous framework for developing profitable trading algorithms. Covers everything from backtesting methodologies to risk management strategies.
Unofficial Guide to Rust Optimization Techniques
June 2025
Rust’s unique ownership model and zero-cost abstractions make it exceptional for high-performance systems. This guide covers advanced optimization techniques for Rust developers.
Recent Articles (2024) - Medium
There are just too many AI Frameworks
December 2024
An analysis of the current AI framework landscape and why the proliferation of tools might be hindering rather than helping developers build production-ready AI systems.
Borsh and its Role in Anchor for Solana
October 2024
Unlike familiar formats like JSON, Borsh is designed specifically for Solana to optimize speed, compactness, and performance. Learn how it integrates with Anchor framework.
The Best Engineer I Have Ever Met
September 2024
During my year and a half at Chainlink, I had the privilege of working with one of the best engineers I’ve ever met. Before that, I had worked at various startups and tech companies, but this individual stood out for their exceptional technical skills and collaborative approach.
Grid Search for Optimizing Liquidity in Raydium: A Deep Dive
April 2024
Grid search probably helps find the best combination of order sizes and price points to ensure there’s enough liquidity on Raydium DEX. Technical analysis of algorithmic liquidity optimization strategies.
Solana AMM Under the Hood: Raydium Insights for Solana Builders
April 2024
Diving deep into Raydium AMM - a technical exploration of Raydium’s Automated Market Maker implementation, providing insights for developers building on Solana.
Maximizing Your Cursor Use: Advanced Prompting, Cursor Rules, and Tooling Integration
February 2024
Productivity tips with Cursor - advanced techniques for getting the most out of Cursor IDE, including custom rules, workflow optimization, and tooling integration.
Solana Geyser Plugins: Powering High-Speed Data Streaming Guide
January 2024
Wondering how to speed up your Dapp for Solana? Look no further with Geyser! A comprehensive guide to Geyser plugins for real-time data streaming and performance optimization.
Earlier Works (Published on Medium)
2024 Articles
The Best Engineer I Have Ever Met
September 2024
During my year and a half at Chainlink, I had the privilege of working with one of the best engineers I’ve ever met. Reflections on exceptional engineering practices and leadership.
Design Of Solidity AST Optimiser
September 2024
From idea to implementation: creating a Solidity gas optimizer for smart contracts. A deep dive into AST manipulation and optimization techniques.
Smart Contract Audit Primer
September 2024
Preparing for a comprehensive smart contract audit - a primer covering security considerations, common vulnerabilities, and best practices.
2023 Articles
Building a Rust Library
October 2023
My experience building RustyGram, a Rust library that garnered over 4000 downloads on crates.io. Lessons learned in Rust ecosystem development.
Zero Knowledge Soul Bound Token
August 2023
Exploring the intersection of identity and privacy through ZK-SNARKs implementation in soul bound tokens. Part 3 of “The Construction of the Soul” series.
How does Ethereum work under the hood?
June 2023
Understanding EVM basics in simple English - a comprehensive guide to Ethereum’s inner workings, virtual machine architecture, and execution model.
2022 Articles
NFT Vesting
November 2022
NFT vesting with time locks - implementing sophisticated tokenomics and vesting mechanisms for NFT projects using smart contracts.
Why Do We Need Modular Blockchains For Scalability?
September 2022
Exploring modular blockchain architecture as a solution to the blockchain trilemma. Analysis of execution layers, data availability, and consensus mechanisms.
For the complete archive of my technical writings, visit my Medium profile.
Arbitrage Trading Guide
June 21, 2025
Introduction
Let’s start with the textbook basics - the definition. What is arbitrage afterall? Well, the dictionary will give you this definition:
the simultaneous buying and selling of securities, currency, or commodities in different markets or in derivative forms in order to take advantage of differing prices for the same asset.
I’d say this is a fairly good definition for arbitrage in the traditional sense, but in the modern sense… I’m not really sure this is true. Most advanced arbitrage trading doesn’t hedge the other side of the trade simultaneously at all. If you are in and out of the position in a couple seconds, then why would you even care about being hedged? Especially if you know that the side you are trading is the one doing all the moving.
Read more →There are just too many AI Frameworks
December 1, 2024
There are just too many AI Frameworks
Originally published on Medium
We’ve all been here before. A new technology emerges, frameworks proliferate to make it accessible, and eventually, we hit the ceiling of complexity and fragmentation. The AI ecosystem today feels eerily similar to the early days of JavaScript frameworks or the explosion of NoSQL databases — too many choices, too little consolidation, and a growing sense that we might be making things harder, not easier.
Read more →Unofficial Guide to Rust Optimization Techniques
June 3, 2024
Unofficial Guide to Rust Optimization Techniques
Originally published on Medium
Rust’s unique ownership model and zero-cost abstractions make it an exceptional language for building high-performance systems. However, writing fast Rust code requires understanding both the language’s performance characteristics and the underlying hardware. This guide covers advanced optimization techniques that can help you squeeze every bit of performance out of your Rust applications.
Understanding Rust’s Performance Model
Zero-Cost Abstractions
Rust’s promise of zero-cost abstractions means that high-level constructs don’t impose runtime overhead. However, this doesn’t automatically make your code fast - it just means the abstractions won’t slow you down.
Read more →Inside Drift: Architecting a High-Performance Orderbook on Solana
April 2, 2024
Inside Drift: Architecting a High-Performance Orderbook on Solana
Originally published on Medium
Drift Protocol is Solana’s largest open-source perpetual futures DEX, enabling low-slippage, high-leverage trading with cross-margining. It’s crucial for DeFi, handling over $20B in volume since 2021, per CoinGecko.
Architecture of Drift
The architecture of Drift Protocol is built upon the high-performance capabilities of the Solana blockchain, which are essential for supporting a derivatives exchange with features like high leverage and complex order types. Solana’s inherent speed and low transaction costs directly contribute to a smoother and more cost-effective trading experience for users on the Drift platform.
Read more →An Engineer's Guide to Building and Validating Quantitative Trading Strategies
January 1, 2024
An Engineer’s Guide to Building and Validating Quantitative Trading Strategies
Originally published on Medium
From data collection to statistical validation — a rigorous framework for developing profitable trading algorithms.
Introduction
Quantitative trading has evolved from a niche discipline practiced by a few Wall Street firms to a democratized field accessible to individual developers. However, the gap between a profitable backtest and a live trading system remains vast. This guide provides a systematic approach to building, validating, and deploying quantitative trading strategies that can survive the transition from theory to practice.
Read more →