Multi-platform Mandelbrot set plots
slithymatt / multi-mandlebrot Goto Github PK
View Code? Open in Web Editor NEWMulti-platform Mandelbrot set plots
License: GNU General Public License v3.0
Multi-platform Mandelbrot set plots
License: GNU General Public License v3.0
Been hoping to port this code to my own CPU and so reading the repo.
But I've gotten stuck on this shared function.
Can't for the life of me see how it works.
Is it used or is it junk and buggy?
Seems for positive numbers it return zero, and for negative numbers other weird results, non zero fraction value gets returned and so on.
Any clues?
fp_floor looks sane tho.
Slightly tweaked as BASIC does not allow jumping out of FOR loops, so replaced with a WHILE.
'
' Matt Heffernan's BASIC benchmark
'
' 9.66s ; 6.29Mhz 65C02
'
cls
start = time()
for py= 0 to 21
for rx= 0 to 31
px = 31 - rx
xz = px*3.5/32-2.5
yz = py*2/22-1
x = 0
y = 0
i = 0
while i <= 14 & x*x+y*y <= 4
xt = x*x - y*y + xz
y = 2*x*y + yz
x = xt
i = i + 1
wend
rect px*8,py*8 ink i-1 solid to px*8+7,py*8+7
next
next
print (time()-start)/100
Hi Matt
Just a quick heads up that Uze (Alec), the designer of the open source Uzebox console, has implemented your mandelbrot test on the Uzebox after I alerted him to it so you may want to integrate it into your repo and mention it if you do another update video on the 8-bit battle?
https://uzebox.org/forums/viewtopic.php?f=4&p=34375#p34375
The code is GPL 3 licensed like your repo so no issues there.
Uze commented:
"For the kicks I made a little demo with the same code, parameters and resolutions as the video in order to have a fair comparison. Happens I either screwed up my calculation or was too optimistic. It's more like 1 second flush. So "just" 26x faster than the C64 and 3.5x faster than the X16. When the video is turned off, 0.08 second! 8-) "
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.