Logo by mclarekin - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 27, 2024, 02:34:11 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: WIP -- LuaFractal Editor  (Read 2298 times)
0 Members and 1 Guest are viewing this topic.
ker2x
Fractal Molossus
**
Posts: 795


WWW
« on: November 11, 2010, 04:20:25 PM »

Friendly greetings !
i'm currently working on a little projects (i'm not sure about the name yet. internally it's "wxFractal").

Why ? Tired of rewritting a full program everytime i have an idea

I started it as a blitzMax program + the Lua blitzmax module.
If you don't know about lua : http://www.lua.org/ , roughly said : it allow to embed a scripting language (lua) easily. Lua can call C code, and C code can call Lua code.

Blitzmax is awesome, but have some limitation that can't fit in my project. (32bits only, old lua version, ...)
I discovered more and more about lua and found that there is a tons of lua library : http://lua-users.org/wiki/LibrariesAndBindings

The most interestings for me are :
1) WxLua : http://wxlua.sourceforge.net/
2) lots of good math library :
- lqd - a high-precision (double-double & quad-double) mathematical library for Lua based on [qd].
- lbc - a big-number library for Lua.
- lmapm - an arbitrary precision library that contains transcendental functions.
- ldecNumber - wrapper for IBM [decNumber]. Implements General Decimal Arithmetic standard IEEE 754r. Full control over rounding modes and working precision.
- LGMP - use [GMP] the GNU multiple precision arithmetic library from Lua.
- lmathx - an extension of the standard math library based on C99.
- lcomplex - a library for mathematical operations with complex numbers based on C99.
- linterval - an interval arithmetic library based on [PROFIL/BIAS]; implements interval type, vectors and matrices of this type. Includes an implicit curve plotter.
- lgpc - a library for Boolean operations on polygons based on [GPС] the General Polygon Clipper library.
- Numeric Lua - a numeric package for Lua with support for complex numbers, multidimensional matrices, random number generation, and special functions. Most of the routines are wrappers for the Netlib libraries.
- LuaMatrix - matrix operations in pure Lua. [*L]

Enough to use Lua as the primary language for my application.

The application itself will embed a Lua editor, a graphic output, and some usefull stuff around it (a lua interpreter, some logging facility, ...)
(See attachment)

It's planned to be multiplatform (thank you lua)

It will have multiple mode of operation.
The first one will be as simple as "for each pixel : execute the code written in the editor" (think about it like a shadder, or ultraFractal code).
i'm planning other mode of operation like : execute the code once for the whole graphic buffer, allowing to read/write any pixel anywhere (eg: for buddhabrot)

Since the application allow to write lua code, it will allow to call C library. So you can write your "pixel code" in C, C++, or anything that lua can call.
Hopefully including OpenCL code (in the far future unless someone write an openCL binding for lua before me)

Ho... it will be opensource, of course smiley
More to come soon.


* luaFractal-plan.jpg (41.45 KB, 1008x630 - viewed 361 times.)
Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
ker2x
Fractal Molossus
**
Posts: 795


WWW
« Reply #1 on: November 11, 2010, 05:00:50 PM »

The main interface is born.
(the code in the background is part of the app's lua code in the SciTE editor)


* wxFractal-1.jpg (191.48 KB, 1677x897 - viewed 457 times.)
Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
ker2x
Fractal Molossus
**
Posts: 795


WWW
« Reply #2 on: November 11, 2010, 11:33:18 PM »

working on the editor

Job done :
- line number
- fixed font
- 4 characters visible tabs
- select all, cut/copy/paste/delete, undo/redo

to do :
- automagic indentation (based on { })
- syntax highlighting
- file load/save/save as...
- huh?

in the far future :
- autocompletion
- inline help


* wxFractal-2.jpg (50.21 KB, 799x598 - viewed 385 times.)
« Last Edit: November 11, 2010, 11:36:44 PM by ker2x » Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Graphical formula editor? Mandelbulb Implementation bib 2 8856 Last post November 04, 2010, 11:27:05 AM
by bib
New hybrid types? (basic formula editor) Mandelbulb 3d bib 1 3500 Last post February 02, 2011, 04:03:53 PM
by Jesse
JWildfire with animation/morphing editor: V0.45 release Announcements & News thargor6 1 3178 Last post April 28, 2012, 11:36:41 PM
by thargor6
comfortable buddhabrot editor around !? Fractal Programs « 1 2 » cKleinhuis 18 7161 Last post September 06, 2013, 07:42:57 AM
by ker2x
Any recommendations for good free video editor (OSX) Non-Fractal related Chit-Chat toxic-dwarf 10 2996 Last post April 08, 2013, 07:17:38 AM
by toxic-dwarf

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.156 seconds with 24 queries. (Pretty URLs adds 0.009s, 2q)