Tag: ClojureScript
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 …
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 …
XIRR Tool
In Properties of Money we have seen the importance of "r" - or annualized returns. As an investor, how would you assess your investments across various assets and compare their relative returns?
MS Excel's "Extended Internal Rate of Return"-XIRR function is one such metric.
XIRR is a money-weighted annualized return …
FIFO Tool
My transactions in and out of Mutual Funds ran into the 100s last financial year.
Here is a generic tool I created to compute gains for tax filing this year.
Given all trades ever (e.g in a MF folio), the tool applies First-In-First-Out logic to compute gains in sales …