profile picture

4 pages tagged with "clojurescript"

Pong in ClojureScript

April 23, 2022 - 125 words - 1 mins
Click to start! I'm working predominantly with Clojure at work these days, but I wanted to spend some time with ClojureScript, so I figured making a pong clone would be a fun weekend project. Every time the ball hits a paddle it increases in speed and it's direction is set to a randomized unit v… read more

Adventures in Clojure with core.async - Part 2 - Timeouts and Working with Multiple Channels via Parking and alts!

May 27, 2015 - 847 words - 5 mins
Introduction In part 1 of this series we looked at the basics of core.async via channels and messages. In part 2 we will explore timeouts and working with multiple channels using examples of calling out to web APIs. We will be using the example of a web site that wants to display weather informati… read more

Adventures in Clojure with core.async - Part 1 - Channels and Messages

April 15, 2015 - 1067 words - 6 mins
Introduction In part 1 of this series we will look at the basics of core.async via channels and messages. In part 2 we explore timeouts and working with multiple channels using examples of calling out to web APIs. core.async is a Clojure/ClojureScript library to facilitate asynchronous programming… read more

Visualizing Twitter Connections with D3 and ClojureScript

February 19, 2015 - 495 words - 3 mins
Introduction I was curious about the connections between some of the people I follow on Twitter and wanted to try visualizing it using D3 and ClojureScript using a force directed graph. The end result looks like this: force_directed_graph.core.main('/js/d3-force-directed-graph.json'); Not a lot… read more