Posts tagged "clojure":
Clojure Performace and the Billion Row Challenge
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 →Pong in ClojureScript
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 →Create a Clojure AWS Lambda function in Docker and deployed via AWS SAM
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 →Creating an Apache Commons Daemon using Component with Clojure
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 →Exploring Stack Exchange data with Clojure using Apache Spark and Flambo
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 →Adventures in Clojure with core.async - Part 2 - Timeouts and Working with Multiple Channels via Parking and alts!
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 →Adventures in Clojure with core.async - Part 1 - Channels and Messages
core.async is a Clojure/ClojureScript library to facilitate asynchronous programming using channels.
Read more →Writing a Kafka Producer and High Level Consumer in Clojure
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 →Running a Dockerized Clojure Web App on CoreOS
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 →Dockerizing a Clojure, Compojure, and HTTP Kit Web Application
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 →Clojure on the BeagleBone part 4 - Digital Input with ClojureScript
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 →Clojure on the BeagleBone part 3 - Blinking an LED with ClojureScript
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 →Clojure on the BeagleBone part 2 - Blinking an LED with Clojure
This is inspired by an example from the excellent book Getting Started With BeagleBone by Matt Richardson.
Read more →Clojure on the BeagleBone part 1 - Installing Java, Leiningen, and Emacs 24
The BeagleBone is a small and low cost ($55) 1Ghz ARM board with 512Mb of RAM capable of running Linux.
Read more →