32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
|
## Introduction
|
||
|
|
||
|
TODO: write something nice after reading.
|
||
|
|
||
|
Steps:
|
||
|
|
||
|
1. Mandelbrot set with Haskell OpenGL
|
||
|
2. Mandelbrot edges
|
||
|
3. 3D Mandelbrot because its fun
|
||
|
4. Clean the code from full impure and imperative to purer and purer.
|
||
|
5. Refactor the code to separate nicely important parts
|
||
|
6. Improve efficiency
|
||
|
|
||
|
From 1 to 3 it will be _dirtier_ and _dirtier_.
|
||
|
At 4, we will make some order in this mess!
|
||
|
Hopefuly for the best!
|
||
|
|
||
|
One of the goal of this article is to show some good properties of Haskell.
|
||
|
In particular, how to make some real world application with a pure functional language.
|
||
|
|
||
|
I know drawing a simple mandelbrot set isn't a "real world" application.
|
||
|
But the idea is not to show you a real world application which would be hard to follows, but to give you a way to pass from the pure mindset to some real world application.
|
||
|
|
||
|
To this, I will show you how should progress an application.
|
||
|
It is not something easy to show.
|
||
|
This is why, I preferred work with a program that generate some image.
|
||
|
|
||
|
In a real world application, the first constraint would be to work with some framework.
|
||
|
And generally an imperative one.
|
||
|
Also, the imperative nature of OpenGL make it the perfect choice for an example.
|
||
|
|