profile picture

Posts tagged "clojure":

Clojure Performace and the Billion Row Challenge

21 Jan 2024

I recently discovered The One Billion Row Challenge and thought i'd give it a shot using Clojure. TLDR: the solution I ended up with is ~41% faster than the Java baseline provided by the challenge.

Read more →
Tags: clojure

Pong in ClojureScript

23 Apr 2022

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.

Read more →
Tags: clojure clojurescript

Create a Clojure AWS Lambda function in Docker and deployed via AWS SAM

17 Oct 2021

In this post I will cover using Clojure to write an AWS Lambda function that will run on a schedule of once per minute. It will be deployed via the AMS SAM CLI tool and use the Docker runtime. The complete code is available at this GitHub repo.

Read more →
Tags: clojure

Creating an Apache Commons Daemon using Component with Clojure

29 Oct 2015

One way to write a long running server application that runs on the JVM with proper start/stop semantics is to the the Apache Commons Daemon. In this post we'll see how we can do so in Clojure and also use the Component framework to structure our application.

Read more →
Tags: clojure

Exploring Stack Exchange data with Clojure using Apache Spark and Flambo

07 Jul 2015

Apache Spark is a is a fast and general engine for large-scale data processing (as in terabytes or larger data sets), and Flambo is a Clojure DSL for working with Spark. Stack Exchange is a network of question and answer websites with a variety of topics (the most popular one being Stack Overflow). They periodically provide a creative commons licensed database dump. We'll be using data from the Stack Exchange Gaming Site as a toy dataset to work with them.

Read more →
Tags: spark clojure

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

27 May 2015

We will be using the example of a web site that wants to display weather information and will be making mock calls to the OpenWeatherMap API and Weather Underground API to demonstrate using multiple channels with core.async

Read more →
Tags: clojure clojurescript

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

15 Apr 2015

core.async is a Clojure/ClojureScript library to facilitate asynchronous programming using channels.

Read more →
Tags: clojure clojurescript

Writing a Kafka Producer and High Level Consumer in Clojure

14 Jan 2015

Kafka is a platform for handling real-time data feeds. In some ways it is like a database that exposes semantics of a messaging system.

Read more →
Tags: clojure kafka

Running a Dockerized Clojure Web App on CoreOS

06 Dec 2014

In the previous post we created a Clojure web service and ran it in a Docker container. Here we will deploy that container on a 3 node CoreOS cluster running in Vagrant on a local development machine.

Read more →
Tags: clojure docker coreos

Dockerizing a Clojure, Compojure, and HTTP Kit Web Application

29 Nov 2014

Docker is "an open platform for developers and sysadmins to build, ship, and run distributed applications. With Docker, developers can build any app in any language using any toolchain. Dockerized apps are completely portable and can run anywhere - colleagues' OS X and Windows laptops, QA servers running Ubuntu in the cloud, and production data center VMs running Red Hat."

Read more →
Tags: clojure docker

Clojure on the BeagleBone part 4 - Digital Input with ClojureScript

23 Oct 2014

The BeagleBone is a 1GHz ARM board with 512Mb of RAM capable of running Linux. The Debian image ships with node.js and a javascript library in [Bonescript][bonescript] for interacting with the hardware. Clojurescript provides a compiler for Clojure that targets Javascript, here we will use it to and two methods of reading digital input and light an LED on a breadboard using the BeagleBone GPIO.

Read more →
Tags: clojure beaglebone

Clojure on the BeagleBone part 3 - Blinking an LED with ClojureScript

14 Jul 2014

The BeagleBone is a 1GHz ARM board with 512Mb of RAM capable of running Linux. The Debian image ships with node.js and a javascript library in BoneScript for interacting with the hardware. Clojurescript provides a compiler for Clojure that targets Javascript, here we will use it to blink an LED on a breadboard using the BeagleBone GPIO.

Read more →
Tags: clojure beaglebone

Clojure on the BeagleBone part 2 - Blinking an LED with Clojure

25 May 2014

This is inspired by an example from the excellent book Getting Started With BeagleBone by Matt Richardson.

Read more →
Tags: clojure beaglebone

Clojure on the BeagleBone part 1 - Installing Java, Leiningen, and Emacs 24

24 May 2014

The BeagleBone is a small and low cost ($55) 1Ghz ARM board with 512Mb of RAM capable of running Linux.

Read more →
Tags: clojure beaglebone
Other posts