World: r3wp
[rebcode] Rebcode discussion
older newer | first last |
Geomol 3-Apr-2006 [1439x3] | To new readers: We're testing this Voxel Landscape script, I've made in rebcode: http://home.tiscali.dk/john.niclasen/voxel/NicomVoxel.r Too see what it is, screengrab is here: http://home.tiscali.dk/john.niclasen/voxel/snapshot.png You need View 1.3.50 to run it: Windows: http://www.rebol.net/builds/031/rebview1350031.exe Mac OSX: http://www.rebol.net/builds/024/rebview1350024.tar.gz Linux: http://www.rebol.net/builds/042/rebview1350042.tar.gz |
Use w, s, a and d to move around. | |
Q to quit and F1 to save snapshot.png | |
DideC 3-Apr-2006 [1442] | Nice job, John! I have played with it a bit : the keys were not friendly for Azerty keyboards ;-) And I wanted it to fly without "Control". So the same things, but use Arrows to increase/decrease speed in both directions. do http://membres.lycos.fr/didec/rebol/NicomVoxel.r You can also try page up/down to change the view altitude, but rebcode part is not fully ready for that (can give error if you go too far). |
Geomol 3-Apr-2006 [1443x2] | :-) Unfortunately it doesn't work in MacOS, because of missing timers (rate). |
DideC, I just tried your version on my PC. It's cool! :-) Ok flying experience, and the elevation is fun too. But code is not completely ready for that, as you point out. | |
Anton 3-Apr-2006 [1445] | Not bad. I got around 22 fps on P3 933MHz |
Rebolek 4-Apr-2006 [1446] | I've got 22fps too on P4/2GHz |
Pekr 4-Apr-2006 [1447] | :-) strange, on so much powerfull machine ... maybe it is because of View slow refresh .... |
DideC 4-Apr-2006 [1448] | I get 25fps on my 1Ghz PIII, but the script use "rate 30" so don't expect it to go to high in frame rate ;-) |
Geomol 4-Apr-2006 [1449] | To clarify: my original script only update the window, when moving around, so fps can only be measured when holding a move key. DideC's version use RATE, so it continuously update the window. Using RATE doesn't work with View 1.3.50 under MacOS (I don't know about the Linux version). |
Gabriele 4-Apr-2006 [1450] | note that rate doesn't go past around 20/s on windows. |
Anton 5-Apr-2006 [1451] | I can get up to 48Hz on WinXP. |
Geomol 5-Apr-2006 [1452] | Anton, with my original version or DideC's version using RATE? |
Anton 5-Apr-2006 [1453] | I think there's confusion there between face/rate and the fps reported by your program. I think I have switched to talking about face/rate while everybody else is still talking about your program. I thought that Gabriele was probably talking about face/rate. Now I'm not so sure :) |
Geomol 5-Apr-2006 [1454] | Anton, I read it the same way as you did then. If Gabriele mean, using face/rate can only produce 20 ticks pr. second, then you've proven him wrong, yes. :-) |
Anton 5-Apr-2006 [1455] | I think Gabriele might be remembering the number 20 milliseconds, which is close to the time interval given by 48Hz. |
Gabriele 5-Apr-2006 [1456x2] | i remember not going much past 20 ticks per second on my machines, but i don't recall if i was measuring rate alone (probably not) |
i also think others had similar results... but, if it's 48hz, then that's better :) | |
Pekr 6-Apr-2006 [1458x2] | btw, Gabriele - I hope rebcode is part of rebol 3 big picture? |
What about some security issues Brian pointed to earlier? | |
Gabriele 6-Apr-2006 [1460] | it will certainly be if the security issues are solved in time (i think we can do it for beta, but it might be delayed to final) |
Maxim 21-Apr-2006 [1461] | can anyone tell me if we can access objects! using rebcode... I read the whole document and did not notice any object using examples or explanations. It seems we can, but its not stated explicitely. AFAICT |
BrianH 21-Apr-2006 [1462x2] | You use the DO opcode to access objects using REBOL code. There are currently no opcodes for direct object access, though they have been requested. Time will tell whether such opcodes exist for rebcode in REBOL 3. |
You can also APPLY the IN native and SETW/GETW the resulting word. | |
Maxim 21-Apr-2006 [1464] | They would be really usefull for editing faces,and other object-based REBOL resources... if they are in opcodes, we could expect a big speed improvement, even if that meant to "freeze" some aspects of the object within the rebocode loop. (JIT compile on demand ;-) |
ICarii 7-Jul-2006 [1465x7] | getting a weird variable cross over in a rebcode code block where the function will run fine sometimes then inexplicably swaps its variable contents while under recursion.. |
ill post the code so anyone interested can have a play | |
http://rebol.mustard.co.nz/sudoku_gen.r | |
The issue is in the TestUniqueness function when it recurses within itself - the Gen function works fine | |
the irritating thing is that the TestUniqueness function does work about 5% of the time.. | |
The variables swapping over are yp and sev - yp is an integer and sev is a series.. | |
have tried the same code under rebview1352031.exe and rebview1361031.exe but same results. | |
Ladislav 18-Sep-2006 [1472x2] | Brian: I found my post above: Kru: this really seems to be APPLY related, because the following code crashes too: mulr: rebcode [][return 4] mull: rebcode [][loop 10000000 [apply a mulr []] return a] mull |
is that the crash you mean? | |
BrianH 18-Sep-2006 [1474x2] | Yup. |
I never ran into it myself, but that's what I was talking about. | |
Ladislav 18-Sep-2006 [1476] | this seems to be corrected in >> rebol/version == 1.3.61.3.1 |
BrianH 18-Sep-2006 [1477x2] | If so, cool. |
Did they ever make a new rebcode alpha based on the latest REBOL version? I know I requested it many times... | |
Ladislav 18-Sep-2006 [1479] | The version above is the latest I have got, so I think there is not a newer one |
BrianH 18-Sep-2006 [1480] | Ah well. The rebcode VM was the basis for much of my own research projects. I would really like to see it return, as I am blocked on those projects until I can count on rebcode being there and safe to use. As it is, I rarely get to use REBOL professionally, it's more of an enabling tool. |
Jerry 21-Oct-2006 [1481] | How can I rewrite the following regular REBOL code into REBCODE? There is no REBCODE version of "TO-CHAR". ; data is binary! poke data j to-char data/:i |
Anton 21-Oct-2006 [1482] | Implementing memory move ? |
Jerry 21-Oct-2006 [1483x2] | Yes. Implementing memory move. |
REBCODE is AMAZING ... I am trying to convert a 300+ MB file from little-endian 16-bit Unicode to UTF-8. I am pretty sure that all the characters in this file are ASCII characters, so I can just discard the second byte (0x00) of every 16-bit Unicode character. Beside that, the beginning 2 bytes (0xFFFE) need to be discard too. In these two days, I wrote REBOL scripts for this purpose in different ways, and I suffered in different ways, too. Sometime I got out-of-memory error, sometimes I didn't. Even if I didn't get any error, the performance would definitely dramatically dropped down after few minutes because of the memory issue, I guess. I would take me 30 minutes to convert the file in my PC. I was trying to make it less than 10 minutes, so I kept asking stupid questions in the AtlME REBOL3 World. Few ours ago, REBCODE came to my mind out of the blue. I remembered Carl said something like 10-30 faster. Because I am no REBOL expert, I'd never used REBCODE before. I took 1-2 hours to read the REBCODE document, then I do my very first REBCODE code in my life. Guess what? It turned out very well. The REBCODE version took only 45 seconds. It's AMAZING. | |
[unknown: 5] 21-Oct-2006 [1485] | Good to hear Jerry. |
Maxim 21-Oct-2006 [1486x2] | compared to what when not using rebcode? |
oh, the 30 minutes you write above... , was that using REBOL? | |
Jerry 21-Oct-2006 [1488] | Yes, the 30-minntes version is in REBOL |
older newer | first last |