r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

Geomol
16-Feb-2009
[2231]
and REBOL got the speed, I think, if you try Cyphres demo:

do http://www.rebol.com/view/demos/cyphre.r
kib2
16-Feb-2009
[2232]
Fun! And you can had more control points I suppose ?
Geomol
16-Feb-2009
[2233]
yes, shouldn't be too hard.
kib2
16-Feb-2009
[2234x2]
Whao, cypher is really quick and beautiful.
cypher --> cyphre
Geomol
16-Feb-2009
[2236x2]
yup
LOL just found this:

do http://www.rebol.com/view/demos/imagination.r

move your mouse around.
kib2
16-Feb-2009
[2238]
Yes, wonderful job. Who did these demos ? Amiga fans ?!
Geomol
16-Feb-2009
[2239]
hehe, they may be from a contest a few years ago. You can find them 
on the ViewTop under REBOL.com/Demos/
RZoom is also nice (by Henrik).
kib2
16-Feb-2009
[2240]
I'm amazed by cyphre source file : just a few lines.
Anton
17-Feb-2009
[2241x2]
I've made a C DLL on linux which has the rudiments of an image processing 
function. At the moment it just sets one pixel.
I've made C DLL on windows previously, so I will try to make it cross-platform.
kib2
17-Feb-2009
[2243]
Anton: interesting...do you have any screenshot ?
Anton
17-Feb-2009
[2244]
Boring... my test image is 2x2.
kib2
17-Feb-2009
[2245]
:)
Anton
17-Feb-2009
[2246]
What platform are you on ?
kib2
17-Feb-2009
[2247]
Windows (Seven)
Anton
17-Feb-2009
[2248]
Ugh...
kib2
17-Feb-2009
[2249]
I never had a problem with it since a month. It's really stable.
Anton
17-Feb-2009
[2250x2]
Ok, whatever. :-P
(-; I don't mean to be rude by that..)
kib2
17-Feb-2009
[2252]
No problem
Vladimir
17-Feb-2009
[2253]
Anton, have you seen new speedy version of my tunnel script ? :)

Lookup table for pixels position and tunnel coordinates helped a 
lot...

I guess your dll would help. Would you keep acceleration only for 
pixel drawing? or maybe some higher functions?
Anton
17-Feb-2009
[2254x4]
Oh no! Calling a DLL function just to draw one pixel would be so 
slow! I will of course make it process a whole frame at a time. So 
basically, I think the tunnel drawing function will move into C.
Just tried latest version - framerate at least double.
Ok, so you've pre-calculated the pixel mapping, avoiding the square-root 
and arc-tangent etc. in the main loop.
You lost some possible dynamism by making this move. The C should 
be fast enough to calculate it on demand.
Pekr
17-Feb-2009
[2258]
Anton - how's that your following demo is decently fast? Is it completly 
different technique?


do http://www.rebol.net/demos/7B191CB087929081/christmas-drive2.0.1.r
Geomol
17-Feb-2009
[2259]
heh, fun! Makes me think of Out Run: http://en.wikipedia.org/wiki/Out_Run
Anton
17-Feb-2009
[2260]
Yes, in that one I used AGG to scale and composite a relatively low 
number of frames, zoomed to different distances.
Pekr
17-Feb-2009
[2261]
looks nicely smooth, and fast. Almost screams for addition of small 
car and doing some simple game upon it :-)
Anton
17-Feb-2009
[2262]
Yes, I was thinking of the techniques used in games like Out Run 
while I making it.
Pekr
17-Feb-2009
[2263]
Reminds me also of Lotus Turbo Esprit (Amiga)
Anton
17-Feb-2009
[2264x2]
Pekr, on my old machine, I was hitting the limits of detail I could 
put in without reducing the framerate too much. I had to tweak it 
a lot to keep it looking fast and detailed enough. It was difficult.
Yes, Lotus Turbo Esprit I played a lot.
Geomol
17-Feb-2009
[2266]
All the good old racing games: http://eager.back2roots.org/RAC.html
:-)
Anton
17-Feb-2009
[2267]
I've nearly ported tunel.r to C. I've got some expanding circles. 
Time for sleep...
Vladimir
17-Feb-2009
[2268]
waiting to see C and Rebol working together :)
Anton
18-Feb-2009
[2269x6]
Well, I finished port to C on linux today. But you're on windows, 
aren't you? You'll have to wait while I port to windows.
I'm looking into TCC.
TCC doesn't look good to me. It seems the project is moving slowly, 
and there was infighting about the version control system being used.
Tiny C Compiler (TCC).

I've installed an older version of TCC and tried compiling a simple 
example program, but it failed to compile, and the error messages 
led back to the above-mentioned problems, where patches to fix the 
compiler can be found in a non-main maintainer's forked repository, 
which is no longer supported by him.
Thus, I will try PCC next and then Clang/LLVM (as also mentioned 
by BrianH).
They both look very promising.
kib2
18-Feb-2009
[2275]
Hi. Is there a way to call a method (an object function) programmaticaly 
? ie supposed I've got a Car object with a function "drive-to" inside. 
Now, I've got a string "action" equal  to "drive-to". I want to do 
Car/action but that does not work (I can understand why), but is 
there any workaround ?
Oldes
18-Feb-2009
[2276x4]
>> c: context [v: 1 f: does [print v]]
>> do in c 'f
1
>> do in c to-word "f"
1
>> c/('f)
1
>> s: "f" c/(to-word s)
1
Pekr
18-Feb-2009
[2280]
LLVM - isn't it just virtual machine?