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

World: r3wp

[rebcode] Rebcode discussion

Henrik
9-Dec-2006
[1525]
if we also could have direct access to the buffer that is used for 
outputs so we can skip the View engine, but throw pixels directly 
on screen, even more speed can be gained.
Maxim
9-Dec-2006
[1526x4]
this would be very cool.
I'd also like a way to copy to/from an external image source... to 
allow easier access to DLL rendered gfx.  (opengl and others)
and things like capture cards or output framebuffers...
it would just allow us to stay within REBOL platform instead of having 
to resort to lib useage....
Henrik
9-Dec-2006
[1530]
this could also be useful in situations where you don't need anything 
but rebcode. what if it were possible to build a rebol core that 
only consist of rebcode? that would be pretty small, wouldn't it?
Maxim
9-Dec-2006
[1531x2]
imagine being able to call rebcode directly within AGG draw loop 
 :-)
we could probably define our own primitives.
Henrik
9-Dec-2006
[1533]
possibilities, possibilities... :-)
Gregg
11-Dec-2006
[1534]
I think a big issue was security. Because of the same issues that 
let you crash the system, bad things could be done by talented people. 
I'd love to see it included though, even if they had to take out 
the buggy and unsafe bits for the time being.
Oldes
18-Jan-2007
[1535]
Opcodes of the new AVM+ runtime system: http://lxr.mozilla.org/mozilla/source/js/tamarin/core/opcodes.tbl?raw=1
Oldes
23-Jan-2007
[1536]
maybe someone may find it useful: cvs -d :pserver:anonymous:[anonymous-:-cvs-mirror-:-mozilla-:-org]:/cvsroot 
co mozilla/js/tamarin
Steeve
17-Feb-2007
[1537]
where can i find rebcode vm ?
Maxim
17-Feb-2007
[1538x2]
its a specific beta version or rebol/view downloads are on rebol.net.
brian is your best bet for rebcode help, he helped a lot in designing 
and testing it with Carl.
Steeve
17-Feb-2007
[1540x2]
found it: The current beta release is 031/rebview1352031.exe.
i think i will ahve no problems to covert Z80 opcodes in rebcode, 
it's a similar approach
Maxim
17-Feb-2007
[1542]
just that if you have some bugs or wandering about specifics, he 
has deep knowledge of it, he might even be able to give you hints 
on how to go around a few missing things.
Steeve
18-Feb-2007
[1543]
is there a way to test if a var is set to none ?
Anton
18-Feb-2007
[1544]
NONE? word
Steeve
18-Feb-2007
[1545]
yep
Anton
18-Feb-2007
[1546]
ah sorry - rebcode - not sure :--x
Steeve
18-Feb-2007
[1547x6]
^^^
is the T flag positionned after AND opcode execution ?
i should test that
seems not
so, i have to do something like that, to set the T flag, i mean :
 
AND tmp 255
eq.i  tmp 255
i have to do many operations like that to emulate the Z80 8-bit ship, 
Z80 modify his T-flag after any logical operation. i think Rebcode 
should do that  too :-)
Oldes
18-Feb-2007
[1553]
Please write it to Rambo, better now, before R3
Steeve
18-Feb-2007
[1554x5]
done
another prob is that all opcode operate on 32 bit integers only, 
in my case it would be cool if they can act as well on chars (8 bit)
i can do without, but my code is more verbose
...and slower
espacially with bit rotation opcode, which are useless in my case 
^^^
Steeve
19-Feb-2007
[1559x2]
i need a speed reverse byte function with rebcode , for example 1100 
0000 => 000 0011
any idea ?
* 1100 0000 =>  0000 0011
Coccinelle
20-Feb-2007
[1561]
I get strange result from the sin opcode, is there something special 
to know or is it a bug ?
Maxim
20-Feb-2007
[1562]
rad or degres?
Coccinelle
20-Feb-2007
[1563x2]
degree
I try with rad too but I should make a mistake
Maxim
20-Feb-2007
[1565]
I'm not an expert only that I know by having many 3d cgi scripts 
that many apis have a mix and match of rad and degres... but it seems 
you looked at that too...
Coccinelle
20-Feb-2007
[1566x3]
To test, I use this code :
test-sin: rebcode [value [decimal!]][sin value return value]
>> test-sin 90.
== 0.893996663600558
>> test-sin 100.
== -0.506365641109759
>> test-sin 0.0
== 0.0
>> test-sin 1.
== 0.841470984807897
>> test-sin .1
== 9.98334166468282E-2
>>
Maxim
20-Feb-2007
[1569x2]
hum... its possible that some values just don't map directly to precise 
values (floating point errors)
but I agree that sin 90 should give you something closer to 1
Coccinelle
20-Feb-2007
[1571x2]
et sin 1 devrait donner quelque chose de proche de 0
sorry in english, and sin 1 should give something near to 0
Maxim
20-Feb-2007
[1573x2]
just tested  and well... the values supplied really are in radians 
 :-)
>> sine/radians 90
== 0.893996663600556