Monday, 16 May 2016

Fractal Explorer

The F# Journal just published an article about parsing:
"A fractal is a mathematical set that exhibits a self-repeating structure at arbitrary scales and sizes, and the concept can be used to describe naturally occuring phenomena such as clouds, coastlines, mountains or frost crystals. The advent of modern computer graphics allowed for the complexity and beauty of these structures to be seen in incredible detail by everyone, as first done in the work conducted by Benoƃ®t Mandelbrot at IBM in the 20th century. As technology advances further (in the form of GPUs), real-time fractal explorers have become feasible as well, an example of which will be shown in F# in this article..."
To read this article and more, subscribe to The F# Journal today!

Porting OCaml's Format module

The F# Journal just published an article about parsing:
" The F# programming language took most of its inspiration from the OCaml programming language that appeared in 1996. Like most members of the Meta Language (ML) family of programming languages, OCaml was bred specifically for metaprogramming and, consequently, provides a wealth of tools related to metaprogramming. One of these tools is the Format module that makes it easy to pretty print code and data in a structured way. This article looks at the work required to port OCaml's 1,329-line Format module to F#..."
To read this article and more, subscribe to The F# Journal today!

Sunday, 27 March 2016

Parsing METAR with FParsec

The F# Journal just published an article about parsing:
"The parser combinator libray FParsec is a very useful tool available for the F# language. It encapsulates a very common and useful computing pattern - the parser monad - and allows us to use it effortlessly in everyday programming tasks. We'll be using it to process METAR code, which is an international semi-standard used to report weather information in aviation..."
To read this article and more, subscribe to The F# Journal today!

Saturday, 26 March 2016

F# vs Rust: Dictionary and HashSet

The F# Journal just published an article about the Rust programming language:
"Garbage collection has been the most common way for programming languages to provide memory safety for the past 20 years but it does not come without its disadvantages. All known garbage collection algorithms offer either good throughput or good latency but never both at the same time. Rust is a new programming language that departs from this tradition of using garbage collection to provide memory safety. By tracking memory management in the type system, Rust makes it possible to achieve memory safety without garbage collection. This approach promises to combine speed and safety. In this article we take a look at some simple programs written in both F# and Rust in order to compare their performance characteristics..."
To read this article and more, subscribe to The F# Journal today!

Sunday, 13 March 2016

Going retro: Bresenham's line and circle algorithms

The F# Journal just published an article about computer graphics:
"This is the first article in our "Going Retro" series that takes a look at some old algorithms that were crucially important in the 1980s but disappeared in the 1990s with the emergence of ubiquitous floating point units and consumer-level graphics hardware. This article looks at Bresenham's line and circle algorithms that were widely used in computer graphics..."
To read this article and more, subscribe to The F# Journal today!

Porting OCaml code to F#: Delaunay triangulation

The F# Journal just published an article about computer graphics:
"Daniel Sleator wrote a great little OCaml program implementing the Delaunay triangulation algorithm in quadratic time. This is an important algorithm in many fields including computer graphics and numerical methods. This article walks through the process of translating this program first into working F#, then into idiomatic F# and finally into efficient F#..."
To read this article and more, subscribe to The F# Journal today!

Sum columns

The F# Journal just published an article about a programming challenge:
"The challenge of a summing the columns of data in a CSV file was posed and solved in a variety of programming languages including F#. Several interesting solutions were presented but the space of solutions is remarkably large for this problem. This article looks at a variety of different solutions and highlights the relative advantages and disadvantages of different approaches..."
To read this article and more, subscribe to The F# Journal today!