With Holidays come days off, so I had a chance to explore OM and core.async in ClojureScript.
First, I created a simple scoreboard sans timer, to keep track of various states in a structure like this:
With the scoreboard driven by events put on a core.async channel, I had the idea to test the state changes with an event generator:
The rendered results were kind of humorous: BenchWarmer
Watching the numbers on the scoreboard whiz by, I decided to redo my implementation of Conway's Game of Life using OM:
The results ended up a lot faster than my last attempt.
Old: Life
New: OM-Life
(the new one has drag-to-draw capabilities)
Check out the project on github.
No comments:
Post a Comment