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

World: r3wp

[!REBOL3-OLD1]

Arie
5-Feb-2008
[5672x5]
In the next snippet out is a block! and I want it's contents to be 
displayed as the rows of the text-list:
view/options [
  text-list [
  	["header"]
  	[out]
  ] options [size: 300x200]
] [title: "my example"]
I tried it with and without brackets around out
Also I couldn't find the specific options for text-list
Maybe I have to specify it in the options?
Oldes
5-Feb-2008
[5677]
Don't forget it's still Alpha version... it's very far to be complete!
Arie
5-Feb-2008
[5678x2]
I know ;-) But I'm just trying it; it is not for production anyway 
...
Just experimenting with R3
btiffin
5-Feb-2008
[5680]
Arie;  Did you get "out" showing up? 
out: ["1" "2" "3"] 

view [text-list ["col1" "col2" "col3"] [out]]]    will show   out 
none none   in the list, you'll need to compose the out
Gregg
5-Feb-2008
[5681x2]
I wouldn't consider this a real solution, but...

view/options compose/deep [
  text-list [
  	["header"]
  	(out)
  ] options [size: 300x200]
] [title: "my example"]
Ah, there's where the other half of my brain went. It's in Brian's 
head. :-)
btiffin
5-Feb-2008
[5683]
:)  Race ya!
Arie
5-Feb-2008
[5684x3]
Nope, this displays two lines:
header
 and "out" as in all my former tries ;-)
Literally that is I mean.
btiffin
5-Feb-2008
[5687]
Yeah, REBOL treats block data as - don't reduce this - by default. 
 Try Gregg's sample.
Arie
5-Feb-2008
[5688x2]
Same for btiffin and Gregg; it outputs out as a literal string in 
the output row
In R2 you could specify data: out; maybe there is an option doing 
the same trick?
btiffin
5-Feb-2008
[5690]
Try this;    a: 1 b: 2 c: 3    d: [a b c]
Gregg
5-Feb-2008
[5691x2]
Did you use the exact code I posted? It works here.
You can copy it from here and use "do read clipboard://" to run it.
Arie
5-Feb-2008
[5693x2]
Sorry Gregg, I missed the point of the compose! Stupid ... Retrying 
now
Yessss Gregg, it works. But it isn't the most elegant solution. Neat 
trick though :-)
Gregg
5-Feb-2008
[5695]
That's why I said I don't consider it a real solution. I don't think 
we have face accessors in place yet.
Arie
5-Feb-2008
[5696x2]
Maybe Gabriele can shed some light on the inner workings of this.
OK, I'll be patient then. Thanks anyway!
btiffin
5-Feb-2008
[5698]
Arie;  This is a REBOL paradigm.  Block data is literal.  Your [out] 
 block is just that, a block with the literal word 'out  in it.  
It needs to be evaluated (reduced) to get at the value of out when 
inside block markers.
Arie
5-Feb-2008
[5699x2]
btiffin: yes, but I don't know a way yet to achieve this within the 
r3 text-list specs as known today, hence the trich Gregg showed which 
is a kind of meta-reduce :-)
trich is trick
btiffin
5-Feb-2008
[5701]
Ok.
Henrik
5-Feb-2008
[5702]
note that text-list will be replaced in upcoming VID prototypes. 
it's a stopgap solution.
Arie
5-Feb-2008
[5703]
Henrik: ah, thanks; that is useful info!
Henrik
5-Feb-2008
[5704]
(it's just too damn ugly :-))
Ingo
5-Feb-2008
[5705]
Are some parts of R3 already considered "final" (minus bugs, the 
need to reconsider, ...) just like "for the moment we believe there 
won't be any major changes"? 
And if yes, are these documented somewhere?
Pekr
5-Feb-2008
[5706x2]
I am not sure. Some kernel parts for sure. Just recently we await 
release of Unicodised R3, which internally changed many things. Then 
Unicode will be kind of final :-) Modules and plug-ins should follow.
Dunno, maybe networking kernel is final, we just need more schemes. 
Currently we have only http scheme.
Ingo
5-Feb-2008
[5708]
I was specifically thinking about network part, and wether it would 
be worth digging in deeper.
btiffin
5-Feb-2008
[5709x2]
I would guess that until unicode & modules & tasks are given some 
soak time, many many things are up for change.  Nothing in the area 
of mezzanines would be stamped final yet (imho) as Mr. Hawley hasn't 
optimized away  each and every (while few) stray bit yet  :)  (plus 
DevBase has yet to roll large).   Umm, in details ... I'm pretty 
sure Carl has nailed down most (or all) of the conceptual layers 
and the interfaces won't change as much as internals might.
Ingo;  I would say dig in.  If only to blaze trail for the rest of 
us.  :)
Pekr
5-Feb-2008
[5711]
Hmm, but maybe networking will not be affected that much. It is already 
device based propably, running upon async core. I think that studying 
it, including http 1.1 Scheme from Gabrile Santilli laboratories, 
is worthy experience anyway :-)
Ingo
5-Feb-2008
[5712x2]
While we're at it ... I just tried 

>> echo %http-scheme.r 
>> probe System/schemes/http

and got a "Rebol system Error #1405: I/O error"
 Program aborted abnormally ....
... I forgot ... this is on linux through wine, so maybe it's not 
really rebols fault. I'm not sure about the current when and wheres 
of error reporting for us "outsiders" ;-)
btiffin
5-Feb-2008
[5714x2]
Confirmed with 2.99.4.3.1 4-Jan-2008/17:22 build native Win98
Umm, confirmed crash
Ingo
5-Feb-2008
[5716]
Is it possible to get the source somewhere else?
sqlab
6-Feb-2008
[5717]
write %http.r mold system/schemes/http
Ingo
6-Feb-2008
[5718]
Thanks sqlab, I was actually stuck in my own thoughts here ...
Rod
7-Feb-2008
[5719]
Question on alternate UI options, specifically ChUI (terminal style) 
or mobile options would be of interest to me.  Is anything planned 
or expected that would apply to those areas of UI implementation?
Henrik
7-Feb-2008
[5720x2]
it's not planned right now, unless someone steps in and does it, 
but it requires VID3 to be about done, before that can happen. The 
focus is currently on a scalable DRAW based user interface.
but it would be fun to do a low-color, low-res VID3 GUI. :-)