Logo by AGUS - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. March 29, 2024, 06:13:50 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Mandelbrot symbolics / combinatorics web interface  (Read 2528 times)
Description: using client-side javascripts compiled from Haskell
0 Members and 1 Guest are viewing this topic.
claude
Fractal Bachius
*
Posts: 563



WWW
« on: March 09, 2016, 11:35:43 PM »

I've been writing various Haskell code to explore symbolic / combinatorial algorithms related to the Mandelbrot set.  Yesterday I installed GHCJS (compiler from Haskell to Javascript) and this is the result:

http://mathr.co.uk/mandelbrot/web/

No documentation yet, but hopefully clicking around the examples should be enough to get you going.

There are a few hard-coded limits to avoid DoSing your browser, if you find them too restrictive I recommend playing with the Haskell code native on your system.

Source code is spread across a few git repositories:
http://code.mathr.co.uk/mandelbrot-symbolics the meat of the algorithms
http://code.mathr.co.uk/mandelbrot-text parsing and pretty-printing
http://code.mathr.co.uk/mandelbrot-web the web interface itself

It might render images eventually, but for now it's all just symbolic stuff (external angles, angled internal addresses, etc).
If anyone knows of an arbitrary precision floating point browser-compatible javascript library that isn't jank, let me know!
Logged
Adam Majewski
Fractal Lover
**
Posts: 221


WWW
« Reply #1 on: March 10, 2016, 04:26:36 PM »

very nice, but :
"binary angle too large, period limit 64"

When you add gmp ? (:-))
It would be great if your library could have such www interface

one can also use program Mandel by Wolf Jung ( also limited to period 64) :
http://mndynamics.com/indexp.html





« Last Edit: March 10, 2016, 04:52:55 PM by Adam Majewski, Reason: \"binary angle too large, period limit 64\" » Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #2 on: March 10, 2016, 05:50:20 PM »

that is an arbitrary limit, GHCJS uses JSBN for arbitray precision integers so going higher works, it just takes a long time and the browser pops up a dialog about it...
the other arbitrary limit is not listing things of period (plus preperiod) > 8, because the list has length O(2^n).

I can increase (or even remove) the first limit, and maybe I will next time I rebuild it, but the second limit will stay in case you type p1000 and get multi GB of HTML generated...
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #3 on: March 10, 2016, 08:14:35 PM »

ok I lifted the first limit, and also avoided the timeout popup by using async threads (things can take a long time with high periods, and the browser might lag a bit, but it works)
Logged
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #4 on: March 15, 2016, 09:35:06 PM »

Added image rendering (coloured using exterior and interior distance estimate):

http://mathr.co.uk/mandelbrot/web/#!q=-0.75+0.0i@1.25

The rendering is implemented in plain JavaScript because I couldn't get the Haskell version compiled with GHCJS to be fast enough to be practical.

No deep zoom support, expect glitches beyond 1e-11 or so.  Friendly zooming by clicking on the canvas is done now too still to do, for now you have to enter numbers manually.

« Last Edit: March 16, 2016, 05:00:04 PM by claude, Reason: zooming works » Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
"Alien Interface" revisited Images Showcase (Rate My Fractal) David Makin 3 2971 Last post January 26, 2007, 01:08:39 PM
by David Makin
(1) Hello, (2) Sad interface (3) my book and web site Meet & Greet Ventrella 6 2977 Last post October 08, 2012, 02:14:53 AM
by M Benesi
Mandelbrot Maps: An open-source Mandelbrot/Julia explorer for Android Smartphones / Mobile Devices withad 0 9533 Last post March 20, 2012, 07:35:07 PM
by withad
Chaotica 1.5 animation features and user interface improvements Chaotica lycium 0 1978 Last post January 07, 2014, 05:45:26 AM
by lycium
next will be Mandelbulber 2.0 with Qt interface Releases « 1 2 ... 5 6 » Buddhi 83 17939 Last post October 10, 2014, 12:03:19 PM
by Buddhi

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.164 seconds with 24 queries. (Pretty URLs adds 0.008s, 2q)