The alias method, or transforming data to increase efficiency (Clojure).

This post is dedicated to describing a wonderful and beautiful small algorithm that is not widely known. It allows to pick a random element among an enumerated distribution of elements, where each element is associated a weight. This need is frequently encountered, for instance in property based testing libraries. In test.check, it correspond to the... Continue Reading →

Clojure High Performance Fibonacci

Having recently finished reading the Clojure programming book named Clojure: High Performance JVM Programming, I found in it quite a bunch of useful information to increase the performance of Clojure (and more generally JVM-based) applications. The book contains many examples of different constructs we can use in Clojure to increase the performance of arithmetic operations.... Continue Reading →

Building a Clojurescript game: AI

This post is the sixth in the series of posts focused on the design and implementation of a port in ClojureScript of the game named Tribolo. You can try the game at the following address. Our first post described the game and identified the following responsibilities, each of them will be developed in a different... Continue Reading →

Building a Clojurescript game: Application state

This post is the sixth in the series of posts focused on the design and implementation of a port in ClojureScript of the game named Tribolo. You can try the game at the following address. Our first post described the game and identified the following responsibilities, each of them will be developed in a different... Continue Reading →

Building a Clojurescript game: Rendering

This post is the fifth in the series of posts focused on the design and implementation of a port in ClojureScript of the game named Tribolo. You can try the game at the following address. Our first post described the game and identified the following responsibilities, each of them will be developed in a different... Continue Reading →

Building a ClojureScript Game: Thoughts on Spec

This post is the fourth in the series of posts focused on the design and implementation of a port in ClojureScript of the game named Tribolo. In our first post, we discussed the game, described its rules and came up with a basic target architecture. In our second post, we tested this architecture on a... Continue Reading →

Building a ClojureScript game: Tribolo Game logic

This post is the third in the series of posts focused on the design and implementation of a port in ClojureScript of the game named Tribolo. In our first post, we discussed the game, described its rules and came up with a basic target architecture. In our second post, we tested this architecture on a... Continue Reading →

Building a ClojureScript game: Architecture POC

This post is the second in the series of posts focused on the conception and implementation of a port in ClojureScript of the game named Tribolo. In our previous post, we discussed the game, described its rule, and discussed its basic target architecture. This post will use this target architecture to build a much simpler... Continue Reading →

Building a ClojureScript game

In the next posts, we will implement a small web game using ClojureScript and Reagent. Our ultimate goal will be to build an equivalent of the old Tribolo DOS game as a Web game, including: The graphics and the rendering of the game board in SVG The game mechanics and the implementation of the rules... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: