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

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

mhinson
17-May-2009
[2710x2]
so no interactive console any more?
or at least not for any code that splits across 2 lines
Maxim
17-May-2009
[2712]
what do you mean by interactive?  its the same but instead of being 
a separate windows app, the console is directly within the dos prompt.
mhinson
17-May-2009
[2713]
but it works complety differently?
Maxim
17-May-2009
[2714]
no its pretty much the same.
Sunanda
17-May-2009
[2715]
Sadly: <The R3 alpha uses the default Windows console. This is a 
temporary situation until the new console has been created. >
http://www.rebol.net/wiki/Notes_about_Windows_Console
mhinson
17-May-2009
[2716]
>> print [
** Syntax error: missing "]" at "end-of-script"
** Near: (line 1) print [
Maxim
17-May-2009
[2717]
I hadn't noticed the multi-line difficency !
mhinson
17-May-2009
[2718]
So I just have to paste unformatted code only?
Maxim
17-May-2009
[2719x3]
sunanda... for my part, I'd rather it stay there.  at least we have 
real stdio.
working in a telnet/ssh session for example, I can (in theory at 
least) use rebol remotely.
for my part, I'd rather use a rebol session as a remote shell, than 
bash.
mhinson
17-May-2009
[2722]
I have to format the code in indented blocks to not lose track of 
what I am trying to do. Sorry to be so lame.
BrianH
17-May-2009
[2723]
I do clipboard://
mhinson
17-May-2009
[2724]
Ah that sounds like a plan
BrianH
17-May-2009
[2725]
You don't even need a REBOL header anymore (I changed that).
mhinson
17-May-2009
[2726x2]
The R3 documentation shows this example for view
view layout [
    h2 "The time is currently:"
    h3 form now
    button "Close" [unview]
]

But it does not work. Am I expecting too much from the documentation 
(sorry)    Could someone give me a graphics example that works please 
to start me off.
Sorry, I see the R3 docs are a work in progress.  I better back out 
of R3 graphics for now I think or I will get classed as a troll. 
sorry.
Henrik
17-May-2009
[2728]
there are actually two sets of GUI documentation. The right one is 
located here: http://rebol.net/wiki/R3_GUI
mhinson
17-May-2009
[2729]
Thanks Henrik, now I have some things that work to play with.. I 
also want to study Glayout...  AND Maxim's SSH-tool project sounds 
very interesting... Off to bed now, back to parsing tommrow I think.
mhinson
18-May-2009
[2730]
I have found an example for R3 here  (about the only one I could 
spot so far)

http://rebol.net/wiki/Script_Writing_With_The_Visual_Interface_Dialect

It looks quite nice with rounded corners to the buttons too.

The example crashes when you try to exit so I suppose there is lots 
to do before this is ready for general use. I know how long developmnet 
cycles can take so I won't be holding my breath :-)    


I suspect the R2 functions built in will do more than enough for 
what I want & that I just need stick with one thing till I can understand 
it enough to know what it will do & what its limitations are. 


I showed my parsing project ot a work coleague & he suggested some 
additional data that it should colect, he was very impressed when 
I implimented his suggestion & tested it all in under 3 minutes.
Janko
19-May-2009
[2731]
I am reading about these mezzaines 3 times per day here and I still 
don't have any clue what they are... I googled but found nothing 
either.. .so what are mezzaines?
Graham
19-May-2009
[2732]
mezzanines are functions written in Rebol as opposed to C
Izkata
19-May-2009
[2733]
In the Rebol console, look at the help for, for example, Foreach 
and Forall.


Under the description of Foreach, it says "FOREACH is a native value" 
- this means it is implemented directly in C in the interpreter. 
 FORALL says "FORALL is a function value" - it is written using other 
Rebol commands, and you can see the source of it using "source forall". 
 Mezzanine refers to this second type.
Graham
19-May-2009
[2734]
mezzanines vs native functions
Steeve
19-May-2009
[2735x2]
does that mean something in English ?, because in French it does
hmm... same meaning
Janko
19-May-2009
[2737]
then all functions that I make when I program REBOL in REBOL are 
mezzanines? I thought there is something special about them
Steeve
19-May-2009
[2738x4]
they just must have an abstract polymorphic usage
and staying small enough, i think
well, the exact definition is, all functions in Rebol which are not 
natives are mezzanines :)
But it''s Carl who makes the choice.
Janko
19-May-2009
[2742]
aha :) so it's more analog thing
Steeve
19-May-2009
[2743]
Final definition:

All functions in Rebol that Carl don't want code as natives are called 
"mezzanines"
Janko
19-May-2009
[2744]
:))
Steeve
19-May-2009
[2745]
Perhaps a new group "Bash Carl" should be more convenient
Janko
19-May-2009
[2746]
O don't want to be in that group :)
Maxim
19-May-2009
[2747]
all functions written in rebol, *shipped with rebol* are mezzanines.
Henrik
20-May-2009
[2748]
Janko: http://hmkdesign.dk/rebol/files/385cc7420409fa08f768a537a52ce4d8-76.html
Janko
20-May-2009
[2749]
thanks guys, very nice article Henrik!
Oldes
20-May-2009
[2750]
very ugly link:]
Henrik
20-May-2009
[2751]
That's RapidWeaver. :-)
Geomol
20-May-2009
[2752]
Good short article, Henrik. The link to me is outdated. You can use 
http://john.niclasen.name/, if it's needed.
BrianH
20-May-2009
[2753x2]
Nice article. The Google ads are funny too :)
You missed op! functions, but that is probably OK.
mhinson
21-May-2009
[2755]
Hi, I am puzzling over this and would really appreciate some pointers 
please.  How do I get from this:
d1: "random1"
d2: "data2"

;;to this?
b1: [random1 ["data2"]]

so I can reference the data2 by its association with random1 e.g.
b1/random1/1
Henrik
21-May-2009
[2756]
well:

b1: reduce [to-word d1 reduce [d2]]
mhinson
21-May-2009
[2757x3]
ah, nice. Thanks.  I was looking here http://www.rebol.com/docs/core23/rebolcore-16.html#section-3.10
which for once looks like it was the right area. Thank you.
I was hoping to get something like this working with the data structure 
Henric helped me with above.
foreach bb b1 [ print b1/:bb/1]

but the foreach itterates all the vlaues, not just the words.

I have been thinking about this for a week or so, but dont really 
know how to get any further with it.


I suspect that if I had the right structure I could use it to store 
my data, then add additional details when I find some more, and finaly 
export the whole lot, grouped together by the key value (that I will 
only know when the script is running).


Im aproaching this in the right sort of way?  Or is there a recognised 
way to create these sort of structures please?
Sorry about my typing Henrik. I know how to spell your name really.