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

World: r3wp

[!REBOL3]

AdrianS
10-Sep-2010
[4842x2]
maybe the file you got from the link you posted is only core?
I built this one using the host kit
Ashley
10-Sep-2010
[4844]
That's what I was alluding to ... earlier alpha builds had VIew built 
in, the latest does not. Oh well.
AdrianS
10-Sep-2010
[4845x2]
I was trying to make a build with r3-gui.r included, but when running 
the generation step of the build make-host-init.r outputs the error 
"Invalid tuple -- 2.147484e9x2.147484e9" when processing this file. 
Is there something wrong with this tuple?
the offending line in r3-gui is:
        max-size: 2.147484e9x2.147484e9
Graham
10-Sep-2010
[4847x2]
Ashley, you need to build your own R3 .. the downloadable ones are 
old
This is A105 that I built http://r3alpha.s3.amazonaws.com/r3.exe
AdrianS
10-Sep-2010
[4849]
did you include Henrik's view source?
Ladislav
10-Sep-2010
[4850]
Is there something wrong with this tuple?

 - sure, first of all, it is not a tuple, it is a pair, which your 
 version does not recognize
AdrianS
10-Sep-2010
[4851x2]
heh, of course it's not a tuple - my brain was trying to focus too 
hard on what was wrong with the pair - why wouldn't my bersion recognize 
it? Because make-host-init was done before the float pair support 
was added?
and it's confusing the definition with a tuple somehow?
Graham
10-Sep-2010
[4853]
No, it doesn't need Henrik's view source which is a moving target
AdrianS
10-Sep-2010
[4854]
it doesn't need it - I wanted to put it in
Henrik
10-Sep-2010
[4855]
skimming... r3-gui.r3 requires A105. anything below will give a size-text 
error.
Graham
10-Sep-2010
[4856x3]
Anyway, it wasn't available when I built my r3.
See http://www.rebol.com/r3/changes.htmlfor binary downloads of 
hostkit builds
ie. Carl is now releasing compiled builds as well
Henrik
10-Sep-2010
[4859]
A107 released

http://www.rebol.com/r3/changes.html
AdrianS
10-Sep-2010
[4860]
Carl, or anyone else who remembers - I don't recall what is holding 
things up in terms of making the source available so that people 
can try their hand at a client for R3 chat
Robert
10-Sep-2010
[4861]
Why do you need the Rebol source code to make a R3 chat?
AdrianS
10-Sep-2010
[4862]
just to see what the back end is doing - what API it exposes, etc. 
Of course you could find some of this out by sniffing, but why should 
this be needed. BTW, I'm talking about a client (say a web one) for 
the chat server that the built-in client connects to
Maxim
10-Sep-2010
[4863]
I think Adrian means the source to the R3 chat server?
AdrianS
10-Sep-2010
[4864]
yes - I seem to remember Carl saying that he could make it available, 
but something still had to be done before he could do that
Claude
10-Sep-2010
[4865x2]
why ?
>> demo
Fetching demo...

Script: "R3 GUI - Development Test Script" Version: 0.1.2 Date: none
This R3 release does not provide a graphics system.
The demo cannot be shown.
>> do http://rebol.hmkdesign.dk/files/r3/gui/r3-gui.r3
Script: "Untitled" Version: none Date: none
** access error: cannot open: %shape.r reason: none

>> system/version
== 2.100.107.4.2
Henrik
10-Sep-2010
[4867]
Claude, does it show the same, if you *don't* run the demo first?
AdrianS
10-Sep-2010
[4868x2]
I believe that the build that was posted didn't have the draw stuff 
in - on my own build, I get this error when I try the demo after 
loading your r3-gui script:

>> do %r3-gui.r3
Script: "Untitled" Version: none Date: none
>>
>> demo
Fetching demo...

Script: "R3 GUI - Development Test Script" Version: 0.1.2 Date: none
Fetching GUI...
GUI Version: 0.2.1
(Developer test GUI theme)
** Script error: expected command! not font

** Where: size-text font-char-size? make make-text-style parse fontize 
do do either load-gui case catch either either applier do try demo
** Near: size-text gob
this makes sense because of the change to using command! in the dialect, 
I guess
Robert
11-Sep-2010
[4870]
Ah, you mean the R3 chat source code. I thought you need the R3 source 
code.
Graham
11-Sep-2010
[4871]
Adrian, the client source is readily available .. just not the server 
source
Maxim
13-Sep-2010
[4872x5]
converting code to R3 isn't a piece of cake!!!  I mean real-world 
pieces of mature and optimized/tuned code... there are gotchas just 
about everywhere.
but I've now got slim working in R3  ;-)   am now working on converting 
liquid and other libs.
I'll eventually redesign slim so it uses modules though.
shoudn't resolve have a refinement called /bind  making it easier 
to rebind data to target context in a single pass?
is there a way to tell R3 to automatically show stack information 
when errors occur (and aren't trapped)?


python allows (on by default IIRC) this and its a MUCH more usefull 
error report.

for the same reason as for Rebol... many errors don't occur in user 
code, but in mezzanines, called by user code, sometimes several deep.


knowing why and where an error occurs is usually as usefull as what 
is the error  (and often, even more).
Pekr
13-Sep-2010
[4877]
stack
Maxim
13-Sep-2010
[4878]
yes, I can call it... but that means *I* have to call it.
Pekr
13-Sep-2010
[4879]
http://www.rebol.com/r3/docs/functions/stack.html
Maxim
13-Sep-2010
[4880]
which means I have to put exception handling in all functions... 
and even then, when an error occurs within a mezz... its not going 
to be reported there... so I won't have the stack based on its calling 
... so the end result isn't near as usefull.
Pekr
13-Sep-2010
[4881]
trace/back ?
Maxim
13-Sep-2010
[4882]
so for example, if an application halts due to an error... the stack 
is effectively empty, since its back to the command-line.  :-(

ex:  I added a voluntary 0 / 0 to generate an error.

liquid/add[3]/instigate() [
** Math error: attempt to divide by zero
** Where: / unless cleanup switch foreach either if insti
** Near: / 0 plug/dirty?: plug/valve/purify plug if all [
    plug/re...

>> stack 10
== none
shadwolf
13-Sep-2010
[4883]
whaooo  you don't even need me to feud anymore nice work guys continue 
that way ;)
Maxim
13-Sep-2010
[4884x4]
this is a welcome change in R3   :-)

>> a: to-integer to-binary red
== 16711680

>> to-tuple to-binary a
== 0.0.0.0.0.255.0.0


as opposed to in R2

>> a: to-integer to-binary red
== 16711680
>> to-tuple to-binary a
== 49.54.55.49.49.54.56.48
to anyone holding back on using R3... with A107, I think we can really 
start to get serious in using R3
after a little bit more work on translating to R3... it seems to 
be much less work than it started out to be   :-D


I've got the basics of my dataflow canvas engine working in R3 (which 
is the basis for GLASS and many other tools of mine).


most of the time spent was in fiddling around with learning the changes 
in R3 view engine itself.   this is a 40kb lib running over another 
50kb lib... and its working as-is (once I removed references to the 
word 'FACE and system/words, mostly).
strange load behaviour.....   it doesn't load a file as rebol data... 
its only a string... I just had to do:

load load %datafile.r

just like if I was doing:

load read %datafile.r
Gregg
13-Sep-2010
[4888]
What is in the file?
Maxim
13-Sep-2010
[4889x2]
it seems to be related to the extension....  only a file with .r 
as extension is loaded as data... this insn't very cool.
the file name actually didn't have the .r in my script.
Gregg
13-Sep-2010
[4891]
Indeed. LOADing should not be affected by the filename.