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

World: r3wp

[Core] Discuss core issues

Sunanda
17-Feb-2006
[3432]
Looks like a bug -- can't have a duplicate entry.....Try clicking 
on one of the "cus"s

 unview/all view layout [tl: text-list "cus" "" "ahoj" "" "cus" "cus"]
Pekr
17-Feb-2006
[3433]
it looks for value instead of for index when hilighting? What purpose 
does it have? IIRC it was reported few years ago ... that is rudiculous 
behavior and makes the style completly useless ...
Allen
17-Feb-2006
[3434]
Putting duplicate values in a list is also rediculous.
Pekr
17-Feb-2006
[3435x2]
why? the list should not care ....
but - for simple viewing purposes, when you want to display e.g. 
field values, and some of them are null = empty strings? That design 
is for nothing and there should be no excuse for apparent bug, which 
was reported ages before ...
Brock
17-Feb-2006
[3437x2]
wouldn't this be approriate  ;-)

view layout [tl: text-list do [ tl/data: unique reduce [copy "" "ahoj" 
copy "" "cus"] show tl] ]
I agree that duplicates wouldn't be normal occurance in a list.  
Maybe a multi-column list would have duplicate values in a column, 
but each additional column should have other elements to make the 
row intself unique.  Again, from a 'list' perspective.
Pekr
17-Feb-2006
[3439]
thanks a lot, Brock, that cures list-text pain :-)
Brock
17-Feb-2006
[3440]
not bad, in 3 years hear I solved one problem!
Pekr
17-Feb-2006
[3441]
imo that is not requirement ot have unique values only possible? 
I know that more than one the same value in one column is a bit weird, 
but still the logic is twisted - it should work upon position, not 
the content ....
Brock
17-Feb-2006
[3442]
agreed
Pekr
17-Feb-2006
[3443x4]
imo text-list is totally screwed implementation, I wonder noone else 
found this out yet?
Bobik thanks you very much to save him today's headache :-)
he is kind of half a year Rebol novice and it is good to see those 
opinions ... those shared values etc. are REALLY a pain for beginner 
and such small styles bugs make life of mid-level developer (who 
is not fluent with View internals) View XY percent less sutiable 
to do real work ...
still areas with automatic scrollers, styles as tab, groupbox, etc. 
are missing in default distro ... and we were supposed to know what's 
in the pipeline for VID refactoring "real-soon-now" (c) 2005 RT ;-)
Volker
17-Feb-2006
[3447]
values for highlighting is much quicker coding than translating to 
indexes. ANd for the other stuff, a selfmade list is not that much 
code. although complicated.
Pekr
17-Feb-2006
[3448]
yes, list somehow scares novices :-)
Henrik
17-Feb-2006
[3449]
I'd love to get LIST-VIEW into /view, if the quality can get high 
enough.
Gregg
17-Feb-2006
[3450]
TEXT-LIST definitely has issues, but works well in many simple cases. 
I think we'd all love to have LIST-VIEW in there, though I have to 
spend some time with it to make suggestions, so it's good fit with 
other VID styles (client side, in VID). I think that's what has kept 
changes out of VID in general.
Allen
19-Feb-2006
[3451]
Ideally the Value and Text should be two different elements, like 
they can be in html selects.
CharlesW
20-Feb-2006
[3452]
Can anyone tell me if there are any efforts to embed core into a 
device or embedded controller. Given its light size, it would be 
perfect for routers, applicances, etc..
Graham
20-Feb-2006
[3453]
www.whywire.com runs Rebol in their routers.
Ryan
20-Feb-2006
[3454]
I heard last night that there is a new linksys router that you can 
install linux software into. Of course, REBOL was the first thing 
to come to mind.
Graham
20-Feb-2006
[3455]
Most of the early linksys routers are linux based.
CharlesW
20-Feb-2006
[3456x2]
Do you know what type of controller Whywire is usting?
If an early links router was linux based, wouldnt you need the source 
code for rebol to compile it for that platform?
JaimeVargas
20-Feb-2006
[3458x2]
We use our own mother boards based on x86 cpu(s).
Linksys is planning to discontinue their linux products and move 
to VxWorks based ones.
CharlesW
20-Feb-2006
[3460]
I guess using x86 would simplify things quite a bit from a development 
standpoint. I would assume much more expensive over a rabbit2000 
or similar. Do you know what types of controllers the linksys utilized?
JaimeVargas
20-Feb-2006
[3461]
I believe they are MIPS based cpu(s).
Pekr
21-Feb-2006
[3462x2]
what registry value 'browse refers to? Bobik has some screwed OS 
isntall, after removing FF from his PC, browse does not start IE. 
IE is checked as a default browser, but it still does not seem to 
work ...
ok, solved - there is a button to renew internet related settings 
in control panel/internet settings/programs ...
JaimeVargas
21-Feb-2006
[3464]
I think I found some errors on the tuple math with rebol. This results 
don't make any sense to me. Does anyone agree that these are bugs?

>> 1.2.3 or -253
== 0.0.0
>> 1.2.3 and -253
== 1.2.3
>> 1.2.3 xor -253
== 0.0.0
>> 1.2.3 xor 512
== 255.255.255
>> 1.2.3 or 512
== 255.255.255
>> 1.2.3 and 512
== 0.0.0
Geomol
21-Feb-2006
[3465]
Well, each of the elements (numbers) in a tuple is an integer from 
0-255. Doing a binary operation with that restriction and an integer 
without that restriction should maybe return none or an error? I 
guess, REBOL is optimized for speed doing this, so the result is 
undefined. (You can probably guess some internal rules/side-effects.)
JaimeVargas
21-Feb-2006
[3466]
These operations can be defined correctly. The values returned are 
improper imo. And the speed optimization doesn't gain much.
Anton
21-Feb-2006
[3467]
Jaime, were you expecting each value of the tuple to be compared 
with the first 8 bits of a 32-bit integer ?
JaimeVargas
21-Feb-2006
[3468x4]
Yes. I do to use as many bits as possible.
It also seems the operator have inconsitent behaviour like this.

>> 1.2.3 and -1
== 1.2.3
>> 1.2.3 and -2
== 0.2.2
>> 1.2.3 and -3
== 1.0.1
>> 1.2.3 or -1
== 0.0.0
>> 1.2.3 or -2
== 0.0.0
>> 1.2.3 or -3
== 0.0.0
>> 1.2.3 xor -1
== 0.0.0
>> 1.2.3 xor -2
== 0.0.0
>> 1.2.3 xor -3
== 0.0.0
AND behaves differently than OR and XOR regarding on how they treat 
negative numbers. AND is taking into account as many bits as possible, 
while OR and XOR are just returning a tuple of zeros.
My conclusions is that these operators have bugs.
Anton
21-Feb-2006
[3472x2]
Yes, looks inconsistent.
Probably better to fix to support 32-bits.
JaimeVargas
21-Feb-2006
[3474]
So. You agree that it needs to be posted to RAMBO ?
Anton
21-Feb-2006
[3475x2]
Yes.
If there is some explanation for the behaviour, we will find out 
this way.
JaimeVargas
21-Feb-2006
[3477]
BTW. Orca is using all the bits possible, and its behaviour is consistent 
across the board.
Geomol
22-Feb-2006
[3478x4]
I agree. If it works with 'and', one would expect it to work with 
'or' and 'xor' too.
Isn't it incredible with REBOL. Here are some basic bugs or misbehaviour, 
and it takes us 8 years or so to discover them. :-)
What about, if we started a project to closely investigate the behaviour 
of REBOL native!, action! and op! in relation to the defined datatypes? 
I did something like that in the IOS regarding minimum and maximum 
values for the different datatypes at some time. The idea would be 
to nail down bugs and misbehaviour and lead to a more robust language 
definition. After the initial investigation, the mezzanines could 
be looked at.
The amount of work can be judged by:
>> ? native!
>> ? action!
>> ? op!