Friday, 30 July 2010

Rigid body dynamics

The OCaml Journal just published an article about game physics:

"A common technique to simulate the dynamics of objects is to model them as interacting rigid components. This article describes the design and implementation of a simple OCaml program that uses rigid body dynamics to simulate balls bouncing around in 2D, using OpenGL for 2D visualization..."

To read this article and more, subscribe to The OCaml Journal today!

Thursday, 8 July 2010

The diff tool

The OCaml Journal just published an article about sequence algorithms:

"The unix program diff identifies differences between text files, line by line. This tool is most useful for comparing two versions of a program. This article develops a simple implementation of the diff tool based upon the longest common subsequence (LCS) algorithm and examines the output from it..."

To read this article and more, subscribe to The OCaml Journal today!