Saturday, 17 December 2011

Rendering autostereograms

The F#.NET Journal just published an article about graphics:

"An autostereogram is a tiling distorted such that the differences between one column of tiles and the next simulate the differences between images seen by the left and right eyes when viewing a 3D scene. This allows a practiced viewer to stare through the picture such that their eyes view the stereogram offset by a single column of tiles and, therefore, they perceive the image to be 3D. This article describes a simple technique that allows autostereograms to be generated by a parallelized F# program..."


To read this article and more, subscribe to The F#.NET Journal today!

Sunday, 11 December 2011

Metaprogramming: parsing with active patterns

The F#.NET Journal just published an article about metaprogramming:

"Metaprogramming is the art of writing programs that manipulate other programs and includes writing compilers and interpreters as well as more exotic tools such as theorem provers. This article walks through the construction of a mini ML interpreter and, in particular, uses a novel approach to parsing based upon F# active patterns. This allows us to write a lexer and parser for a toy functional language in under 100 lines of vanilla F# code..."


To read this article and more, subscribe to The F#.NET Journal today!