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

World: r3wp

[rebcode] Rebcode discussion

BrianH
25-Oct-2005
[851]
DideC, I'd prefer the second or fourth (with -) choices.
shadwolf
25-Oct-2005
[852]
REPLY TO URGENT NOTICE:  i propose i.add, i.mult, i.div etc... this 
way we include to rebcode a some object like stuctrure but only applayable 
on fonctions /operation names 

this allow us to not mistake betwin rebol/core  funtions and rebcode 
ones. As type take a  !  in rebol syntax we can use i!add i!mult 
i!div i!sub etc... I think this syntaxe would be really attractive 
for coders abit to object language. I.add or i!add is directly understable 
i -> interger add -> the operation applyed to integer! args ...
Volker
25-Oct-2005
[853]
rebcode uses a full value for an opcode, 16 bytes? not something 
comprimized? if so, that works badly with cache-prefetch. But i agree 
the opcodes should have word-based names. so 2 if we think we stay 
with int/decimal, 1-2 others, 4 if we think we get special code for 
more types than the alphabet has letters.
BrianH
25-Oct-2005
[854]
shadwolf, please no ! in opcodes. That would be against the minimal 
use of the shift key that directs the syntax of hte rest of REBOL.
shadwolf
25-Oct-2005
[855]
lol and i->add lol
Volker
25-Oct-2005
[856]
in rebol function comes first, then arguments. no oops-syntax here.
shadwolf
25-Oct-2005
[857]
too C like .... it's rebol  dude not python !!!
BrianH
25-Oct-2005
[858]
I prefer the opcodes first, before their typing.
shadwolf
25-Oct-2005
[859]
<---- dude @_@
Geomol
25-Oct-2005
[860]
I prefer 1, as it is now. Keep it short. I think of the decimal variations 
like the normal ones, but with some extra (decimal has better precision 
and gives you decimals, so it's something extra than integer). It 
also take up more bits -> more bits, longer name. That's the way, 
I think. Also reminds me of C, where 10 is a short integer, and 10L 
is a long integer. (Not the same, but kind of the same thoughts.)
BrianH
25-Oct-2005
[861]
REBOL is not an object-oriented language shadwolf.
Volker
25-Oct-2005
[862x2]
and addi minimizalkeystrokes too. :) and since Carl has choosen that 
way, but before he had addd etc, i opt for the smallest adjustion.
i clash with seti and such. then we should make everything integer, 
and have a setv for any-value.
shadwolf
25-Oct-2005
[864]
hum and for decimal! value 1) gives addd
.... not clear enought i think
BrianH
25-Oct-2005
[865]
I never liked that integers were treated like a default value in 
C. This leads to its typing problems, excessive casting, character 
as integer, ...
DideC
25-Oct-2005
[866x2]
About previous Alert (rebcode), and to filter noise, please vote 
in the "Opcode naming survey" checklist.

Add 2 to your prefer naming convention
Add 1 to your second choice
Thanks
BrianH
25-Oct-2005
[868]
Has choice 4 been added?
shadwolf
25-Oct-2005
[869]
hum noise is for me ?
DideC
25-Oct-2005
[870]
No.
BrianH
25-Oct-2005
[871]
vote cast.
Volker
25-Oct-2005
[872]
was late. had to wait, everytime i wanted to vote the vote-list jumped.. 
:)
Geomol
25-Oct-2005
[873]
I don't like democracy, when my opinion is not choosen. ;-P
BrianH
25-Oct-2005
[874]
Well I am in Chicago, but I'll still vote only once :)
Henrik
25-Oct-2005
[875]
rebcode is like politics for me. I don't really care :-)
Volker
25-Oct-2005
[876]
I do like it if your opinion is not choosen, as long as mine is! 
Have to look if i like democracy now. :)
Henrik
25-Oct-2005
[877]
as in the voting part
BrianH
25-Oct-2005
[878]
Something non-vote-related, would it be possible to have to-dec just 
assign the source to the destination when the source value is already 
a decimal? And the same for to-int, types adjusted?
Volker
25-Oct-2005
[879]
then you cant convert in-place, as in your example. to-dec  a a
BrianH
25-Oct-2005
[880x2]
Right now to-dec sets the destination word to none if the source 
word refers to a decimal already.
And to-int works the equivalent way.
Volker
25-Oct-2005
[882x2]
oops. misreaded just for only.
I agree then.
BrianH
25-Oct-2005
[884x6]
This is a place where I'd be willing to add a couple cycles just 
to prevent extremely obscure bugs.
By the way, I would prefer that randz and the trigonometric opcodes 
not be renamed unless you are planning to make versions of them for 
each type. They are already documented as being type-specific and 
there's only one of each, so it shouldn't be a problem.
Sorry, to-dec assigns 0.0 when the source is a decimal, not none. 
At least you can count on the dest being a decimal afterwards...
See what I mean by obscure bugs?
And to-int assigns 1 when the source is an integer. They're not even 
consistent with each other.
Submitted to RAMBO.
Benjamin
26-Oct-2005
[890]
hoo third option seems fineto me
BrianH
26-Oct-2005
[891]
Does anyone still need to vote?
Ladislav
26-Oct-2005
[892]
looking at the checklist I see, that there was somebody not adhering 
to the rules :-)
Henrik
26-Oct-2005
[893]
never send a checklist to do a voting applications' job :-)
BrianH
26-Oct-2005
[894x2]
Yeah, I noticed that the votes didn't add up to a multiple of three.
Whoops, I guess they do now.
Ladislav
26-Oct-2005
[896]
:-)
Alan
26-Oct-2005
[897]
1
DideC
26-Oct-2005
[898x2]
The survey helped (even with those who didn't play the game ;)
Thans to all
thanks
BrianH
26-Oct-2005
[900]
I've written a patch to the assembler that implements a working OFFSET 
directive and label value fixups. I will submit it to RAMBO as an 
enhancement request.