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

World: r3wp

[Rebol School] Rebol School

Anton
17-Feb-2009
[2251]
(-; 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?
kib2
18-Feb-2009
[2281x2]
Oldes: sorry, it was diner time for me: thank you !
Oldes: can you explain the last one ? It's sort of voodoo to me.
Pekr
18-Feb-2009
[2283]
The smallest LLVM binaries download is 14MB? Ouch :-)
Oldes
18-Feb-2009
[2284x2]
use "action" instead of 's.. the function name is word so you have 
to use word to access it.
I'm not sure what you want to do.. maybe there is some better method 
then using objects.
kib2
18-Feb-2009
[2286]
Oldes: ok, that's very clear and it works fine for me. (and no, I 
really need to use thoses objects).
Oldes
18-Feb-2009
[2287x2]
You can also use shortcut for the method of the object:
>> c: context [v: 1 f: func[i] [print v: v + i]]
>> ff: get in c 'f
>> ff 2
3
>> ff 2
5
(I never used such a code before:)
kib2
18-Feb-2009
[2289]
Nice, really: so many ways to do this!
Henrik
18-Feb-2009
[2290]
IN is a nice way to tell whether a specific word exists in an object:

if in word 'foo ['bar]
kib2
18-Feb-2009
[2291x2]
Henrik: yes, in seems really helpful.
I just managed to get my new LaTeX backend working for my markup 
engine.
Here's the HTML output: http://kib2.free.fr/REBOL/index.html
And the PDF (from LaTeX): http://kib2.free.fr/REBOL/index.pdf
Now, I have to work on lists full time :)
Vladimir
18-Feb-2009
[2293]
@Anton: I work on Linux and win... :)

So if you have something usefull I would be glad to test it with 
tunnel script ...
Currently making c64 version of tunnel mapper :)
Anton
19-Feb-2009
[2294]
Can't upload to my website at the moment for some reason, so I'll 
just post it to Vladimir privately for the moment, and try again 
later.
Claude
19-Feb-2009
[2295x6]
hi i would like to give you a example i am trying to do of a CRUD 
application
here it is http://users.skynet.be/fc078613/client/client.rip
you mus just de-rip the file with rebol
do client.rip
that create a folder and you must  execute the script with rebol 
START.R
i use rebGui 118 and rebDB203 to do it