Re: What atoms ought to be!

new topic     » goto parent     » topic index » view thread      » older message » newer message

For the Euphoria Fractal program to end all Euphoria Fractal programs,
read on....


Bernie Ryan wrote:
.......<snip>
> If someone really wants to use complex numbers in Euphoria then maybe one
> of the Mathematicians on the list can write a library for complex numbers
> using assembler in an include file because it would be easier
> than having Rob rewrite the language. The Mathematicians could work on it
> just like the EE editor or any other project, but how many users will use
> it.
<snip>......

This is precisely what I intend to do eventually, although it may not be
quite as simple as just math functions.

I have found that having the math functions in assembler and the formula
in Euphoria is actually _slower_ than using all Euphoria math.  This is
due to the overhead imposed by having to poke, peek and translate large
floating point numbers with every call to a function.  This easily
swamps any benefit to using assembler in the first place.

To get real speed, I intend to make something that dynamically assembles
routines from entire complex number formulas.  This will be used purely
for fractals, so the iterator will probably be a part of it too.  I
cannot say how useful this will be to anybody but me, really.

Anyway, complex number affectionados are probably better off with my
c_math.e library as it stands.  Though lots of benchmarking, I
understand it to be more or less the fastest, if not the prettiest
arrangement of each function.

Fractal lovers also take note: my long-promised program Fractal Factory
alpha version v0.9a should have been made available by the time you read
this.  It's a reasonably complete fractal explorer with animations, 3D,
online help and more.  Download it from the Fractal Factory home page,
http://www.alphalink.com.au/~metcalfn in the downloads section.  I would
appreciate feedback or questions of most any kind at this stage.

As alpha software you should realize that it probably still has some
whopper bugs!  It shouldn't break anything except perhaps itself,
though.

Fractal Factory makes extensive use of the complex number library and
generates all it's fractals using native Euphoria math.  It is
consequently nowhere near as fast as Fractint or others, but it has many
unique features and still makes some pretty "wow" images.

Euphoria fractal programmers may be interested to note that Fractal
Factory can write fractal code in Euphoria.  The "External" drawing
methods write the current fractal and all parameters as a simple program
with all the procedure calls, generic conditionals and so forth taken
out, then executes it in a shell.  This program, with minimum library
support, could be taken and used for any other purpose...?

The formula parser uses the Euphoria language syntax, and new formulas
can be typed in, debugged and then added into the code of the program
itself permanently.  Lists of additional plug-in fractal types can be
created or downloaded as they become available and easily added into the
code as if they were already there.

If you want to assist me with the alpha testing, downloaders please send
me your opinions, any bug reports and a quick description of your system
configuration.

Thanks all,
--Nick

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu