Partition with Game of Thrones Pugs

Clojure’s partition and partition-all functions are very useful. However, I have been bitten a few times using partition when I really wanted partition-all. So to help myself and all of you to remember it, I have made some diagrams with pugs from the Game of Thrones In code, partition takes a collection and returns a lazy sequence of lists, each containing n items. To demonstrate this with pugs, we will partition 5 pugs into groups of twos. ...

January 26, 2015 · 2 min · Carin Meier

Gigasquid's Radar 2014

It’s that time of year for radars to be published. So this year, I thought I would publish one of my own. Here is what is on my radar. Languages Adopt: Clojure - It is fantastic language. Really. Trial: Pixie - The promise of a really fast startup Clojure inspired language. I am impressed already and it is only a few months old. Assess: Idris - I have only seen this lang briefly, but was impressed by the typing and proofing abilities. Hold: JavaScript - I don’t have to say more, you know what I mean. Cute Animals Adopt: Llamas Trial: Alpacas Assess: Wombats Hold: Hedgehogs Robots Adopt: Parrot AR Drone Hackable flying drone with sonar and cameras. Doesn’t injure your fingers too much when you get them caught in the blades. Trial: PhantomX Hexapod A bit pricey and delicate, but built from kit and is super cool when you get it going. Assess: Myo Armband Control things with a flick of your wrist. Mine finally arrived after a year and a half wait. I haven’t had time to play with it, but I have high hopes for it. Hold: Roombas - I love my Roombas, but I am not sure the latest models have an ROI port to hack :( Tasty Food Adopt: Crumpets - Put lots of butter on them toasted. Yum! Trial: Mint Tim Tams- Minty, just the right amount of crunch. Hard to find in the US, but a treat when you do. Assess: Raclette - I have never actually had it, but it is melted cheese, it has to be incredible. Hold: Egg Nog - Don’t drink it directly from the bowl. Happy Holidays Everyone!

December 17, 2014 · 2 min · Carin Meier

Clojure FizzBuzz without Conditionals

Sure you may have done FizzBuzz before. Maybe you have even done it in Clojure. But have you done it without the use of any conditionals? As your brain starts to work on the how this we be done, you might be wondering why you should do this in the first place? There are two very good reasons for this. The first is that it is a kata. Katas build your code practice ...

November 13, 2014 · 2 min · Carin Meier

The Five Stages of Writing a Book

Denial: I am not really writing a book. Anger: Why did I ever decide to write a book? Bargaining: If I just finish this book, I promise never to write another one. Depression: I am never going to finish this book. Resolution: I am writing a book and I am going to give it my frigging all.

November 10, 2014 · 1 min · Carin Meier

Notes and Tips on Working from Home

Recently, I switched from a traditional, “go to an office” job, to working from my home. It took some time to setup my home work space and get used to working remotely, but I finally have a system working for me. In this post, I thought I would share some things that I found useful. Window Seat Please If at all possible, locate your home work space near a window. The natural light does wonders for you mood and being able to glance up and look at trees and real life is a refreshing break from staring at code all day. ...

October 31, 2014 · 5 min · Carin Meier

Green Eggs and Transducers

A quick tour of Clojure Transducers with core.async with Dr. Seuss as a guide. Follow along at home by: lein new green-eggs modify your project.clj to include the following: (defproject green-eggs "0.1.0-SNAPSHOT" :description "try them" :url "http://en.wikipedia.org/wiki/Green_Eggs_and_Ham" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.7.0-alpha1"] [org.clojure/core.async "0.1.338.0-5c5012-alpha"]]) Start up a repl and hack in! Green Eggs and Ham Transducers are a new feature of Clojure 1.7. Instead of trying to explain them with words, let’s take a look of them in action. First we need some data. Let’s def a vector of all the places you could try green eggs and ham. ...

September 6, 2014 · 4 min · Carin Meier

The Proper Pronunciation of Clojure's Assoc

Sometimes I pause before talking to someone about Clojure code. Not because I am unsure of the code, but because I am unsure of how to pronounce the code. The particular code in question is Clojure’s assoc. I have heard it pronounced two ways. One is “assosh”, the other is “assok”. So, to determine it, I decided to conduct a scientific poll of the Clojure community. I posted the poll on twitter to the Cojure community who follow me. The control group poll was not viewed by those who do not follow me, and/or, are not on twitter. ...

July 28, 2014 · 1 min · Carin Meier

Clojure X-Men

Nobody knows how it happened. Some people think it was due to the rapid expansion and adoption of Clojure. Other people say that the language itself was caused by something deeper and more magical. No one knows for sure. All that we really know is that people starting being born with extraordinary powers. Powers that no human had had before. They were strange and unique to each person they touched. The only thing that they all had in common, was that each was an aspect of the Clojure programming language. ...

July 27, 2014 · 4 min · Carin Meier

Love Songs Through History and Why You Should Create

The Earliest Known Love Song The earliest known love song was found in an Egyptian tomb. The fragment found in the 4,300 year old tomb read: I love and admire your beauty. I am under it. Medieval Love Songs Moving forward in history to Medieval times, there are many examples of love songs. One of them from a great composer in the 14th century, named Guillaume de Machaut:, went something like this: ...

July 6, 2014 · 2 min · Carin Meier

A Taste of the Star Programming Language

A while ago, I was exploring creating a programming language with Instaparse. I ended up exploring some concepts of Speech Acts proposed by John McCarthy by creating my first toy language called Babar. Shortly after posting a blog about it, I got an email from someone saying that I might be interested in a full blown, real programming language that also incorporated Speech Acts. I happily started composing an reply to the email that started off with ...

June 11, 2014 · 7 min · Carin Meier