Tuesday, 26 February 2008

High-fidelity graphics with OpenGL 2

The OCaml Journal just published an article describing how GLSL shaders can be used in OCaml programs using the new GLCaml bindings to OpenGL 2:

"The single most important advancement made in consumer-level graphics accelerators in recent years was the advent of the programmable graphics pipeline. OpenGL 2 introduces the high-level GLSL shader language as a way to program the graphics pipeline. This article describes how the latest version of the GLCaml bindings for OCaml allow GLSL shaders to be used to improve the fidelity of high-performance graphics using per-pixel Phong shading..."

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


Wednesday, 20 February 2008

GLCaml 20080215

Following our GLCaml fix, Elliott Oti has shipped a new GLCaml with extensive bug fixes as well as lots of API improvements. In particular, these are the first working OpenGL 2 bindings for OCaml , including support for GLSL shaders.

Hopefully this will usher in a new era of visualization software written in OCaml.


Monday, 11 February 2008

Language-oriented programming: The Term-level Interpreter

The OCaml Journal just published an article that walks through the construction of a simple term-level interpreter for a new programming language:

"Modern software is using a wider variety of languages than ever before. The ability to parse and interpret these languages is of growing importance. Fortunately, OCaml inherits incredibly powerful language features (algebraic data types and pattern matching) for program manipulation from its predecessors and augments these with an excellent suite of tools and libraries. This article explains how OCaml can be harnessed to write a complete term-level interpreter for a programming language in only a tiny amount of code...."

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