I was inspired by my recent attempt at creating a parallel Mandelbrot generator for Minnow to learn some javascript and make a javascript version of it.
Here is an actual example of this code in use.
The javascript itself is pretty simple:
function point(t_x, t_y) { this.x = t_x; this.y = t_y; } function color(t_r, t_g, t_b) { this.r = t_r; this.g = t_g; this.b = t_b; } function get_color(t_point, t_center, t_width, t_height, t_scale) {
Mandelbrot ZoomedThe second alpha of the Minnow programming language was released recently. Minnow is a new programming language designed around the idea of actors and using a new datastructure building paradigm called ligomorphism.
While programming in Minnow every object is an actor which behaves like it is an independent thread. An actor may or may not actually be tied to an operating system thread at any given moment depending on how many CPU cores you have available. By managing its own notion of timeslices it is able to not overload the OS with too many threads while simultaneously letting you take advantage of every hardware thread available. All function calls between actors are asynchronous messages. Also, the programming language compiles to C, which then compiles to native code, so there is very little runtime overhead.
Using minnow (SVN, and working with the author) I was able to put together the following bit of code which generates a rendering of the mandelbrot fractal set.
Recent comments
1 day 15 hours ago
5 days 11 hours ago
5 days 11 hours ago
6 days 7 hours ago
1 week 4 days ago
1 week 4 days ago
2 weeks 3 days ago
9 weeks 6 days ago
14 weeks 1 hour ago
16 weeks 5 days ago