Understanding Decentralized Exchanges
To understand decentralized exchanges (DEX), we should try and understand how its centralized counterpart (CEX) functions at a high level. CEXs are Order Book based. The price of an instrument at any moment is the outcome of several "match" operations between ask and bid orders executed at high speeds. On …
Fireworks
In this post, we will learn how to put together a spectacular animation like Anthony Galea's Fireworks. I have enhanced the source a bit in my implementation. It helped me unravel the role "blend mode" and g - acceleration due to gravity played in the animation. I have also simplifed the …
Rule 30
In Fun Life, we looked at Conway's Game of Life and implemented it in functional style. In this post, we see another cellular automation - Stephen Wolfram's Rule 30 in action. We see what makes it work and also get acquainted with other related automata. Lastly, I share notes from my …
Fun Life
Computer simulations can be excellent teachers. This essay explores the beauty of one such simulation - Conway's Game of Life aka simply Life. We will describe the game rules, see it in action and reflect on it. Finally, I share notes from my implementation. We also get a sense of how …
D3 - Part 2 Intro
This is part 2 of our introduction to d3. In the first part, we looked at bar charts based on divs. In that post, we also looked at the join operator (hardcoded version) briefly. In this post, we will see how we can make a bar chart out of svg …
D3 - Part 1 Intro
This series explores the popular JavaScript data visualization library d3 through the lens of ClojureScript. The d3 philosophy nicely fits the ClojureScript-Reagent-React functional paradigm. If you wish to narrate interactive stories with visualized data, d3
might be right for you. Let's dive right in...
Assume you want to visualize the …
A Billion Consents
Day after each passing day, analysis and opinions pouring in India around Covid-19 seems to be sensational, politically motivated and numerically challenged. India is a mega diverse sub continent. During emergencies like these, along with lockdown and economic strategies there needs to be data/analytics strategies that take these mega …
srimux
This post is a journey of abstractions. These abstractions stand on the shoulders of a few command line utilities that combine well. If you are the kind of programmer who dwells in command line terminals for much of your waking hours, read on. Your productivity is about to get booster …
On Immutability
Programming languages are super fun. Like people, they too belong in family trees and follow an evolutionary graph. They liberally copy, adapt and improve upon ideas from each other all the time. You know an idea/style is a good one, if you see it being retained, borrowed or made …