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

World: r3wp

[!REBOL3-OLD1]

Henrik
6-May-2009
[13939]
and returns none
BrianH
6-May-2009
[13940]
Could you post system/options from R3 on Mac? Just run R3 and type 
in system/options
Henrik
6-May-2009
[13941x2]
I can't paste here, as copy/paste is broken. Will be a couple of 
minutes...
http://rebol.hmkdesign.dk/files/sysops.txt
BrianH
6-May-2009
[13943]
I look forward to AltME 3.
Henrik
6-May-2009
[13944]
I look forward to a VMWare with working copy/paste :-/
BrianH
6-May-2009
[13945]
Does LAUNCH work for you?
Henrik
6-May-2009
[13946x2]
It launches a script alright, but am not sure what proper behavior 
would be for returning.
NONE is returned, even though the script itself returns an integer. 
I suppose that's correct?
BrianH
6-May-2009
[13948x2]
Yeah. CALL doesn't return a value yet. I'm waiting for the host source 
before I make proposals.
Or rather, CALL retrns none.
Henrik
6-May-2009
[13950]
LAUNCH also returns none.
BrianH
6-May-2009
[13951]
>> source launch
launch: make function! [[
    {Runs a script as a separate process; return immediately.}
    script [file! string! none!] "The name of the script"
    /args arg [string! block! none!] "Arguments to the script"
    /local exe
][
    if file? script [script: to-local-file clean-path script]
    exe: to-local-file system/options/boot
    args: to-string reduce [{"} exe {" "} script {" }]
    if arg [append args arg]
    call args
]]
Henrik
6-May-2009
[13952]
oh
BrianH
6-May-2009
[13953]
I see bugs already. LAUNCH could use a revamp like LOAD.
Henrik
6-May-2009
[13954]
could you explain?
BrianH
6-May-2009
[13955]
Not correct for script = none. Might be some other tweaks too.
Graham
6-May-2009
[13956x2]
Does R3 have a way to launch a Rebol console?
apart from calling the R3 binary.
BrianH
6-May-2009
[13958x2]
LAUNCH, perhaps?
I don't get the question, sorry. Please explain what you want.
Graham
6-May-2009
[13960x3]
sometimes you want to start a Rebol console from an encapped application.
but you don't want to have to need to have rebol.exe locally.
That can be used to debug the application with access to all the 
variables etc.
BrianH
6-May-2009
[13963]
Encapping is going to be different in R3, as is the console. It is 
intended that a graphical console will be developed, and callable 
from any graphical host. Hosts will be the new encapped apps.
Graham
6-May-2009
[13964]
a graphical console will be good.
BrianH
6-May-2009
[13965]
We want our REPL :)
Graham
6-May-2009
[13966]
How is error handling handled?
Henrik
6-May-2009
[13967]
I suppose that restricting console access for encapped apps would 
involve simply not including console code?
BrianH
6-May-2009
[13968x2]
Similar to R2, though the errors start disarmed and need to be armed 
with DO. CAUSE-ERROR wraps this.
Henrik, sure :)
Henrik
6-May-2009
[13970]
I have some radical ideas for a console. Carl will hate them. :-)
BrianH
6-May-2009
[13971]
Carl doesn't have to use them - behold the power of modules.
Henrik
6-May-2009
[13972]
That's good. Perhaps for R3/Plus
Rebolek
6-May-2009
[13973x4]
Ah, vector! fixed, great! :)
#460 not fixed
Now it's not possible to make signed/unsigned vectors using "make 
vector! [- 16 integer! 100]" ? Or is the syntax different? I cannot 
find it anywhere.
Ah, #460 is not fixed because maximum-of doesn't work at all. This 
should be first line in the 'maximum-of function: "if not skip [size: 
1]"
Pekr
6-May-2009
[13977]
Rebolek - by testing in console - you have wrong order of arguments, 
try:

make vector! [integer! 16 100]

make vector! [unsigned integer! 16 100] ; there was change from hyphen 
to work "unsigned", dunno why - http://curecode.org/rebol3/ticket.rsp?id=350
BrianH
6-May-2009
[13978x3]
The new syntax for unsigned vectors is to use the 'unsigned word, 
not the '+ word. The optional '- word for signed vectors is gone 
too.
The reason why is because people didn't understand that '+ was for 
unsigned, and '- was forr signed.
Bug #460 was a FORSKIP bug, not a MAXIMUM-OF bug. FORSKIP now works 
with vectors, so the bug is now fixed.
Pekr
6-May-2009
[13981]
why + was for unsigned and not the reverse? :-)
BrianH
6-May-2009
[13982]
Are you aware of any negative unsigned numbers? :)
Pekr
6-May-2009
[13983]
I don't work at that level of REBOL. So we now have vector! datatype 
mostly fixed. One thing I don't understand is, that we are heading 
for performance, and then we can see minimum-of and maximum-of becoming 
mezzanines. The other thing is - what now? What is now available 
at practical level? What can we do with vector! type?
BrianH
6-May-2009
[13984x2]
They can be mezzanines and still be as fast because FORSKIP is now 
native. Making the looping functions native makes REBOL faster overall. 
One thing people don't get is that mezzannes can be really fast in 
R3.
Vector types take up less space for the same data, and you don't 
have to use type tests when working on them. They're for fast processing 
of numeric data, conversions, all sorts of low-level goodness.
Pekr
6-May-2009
[13986]
Could vector type help with stuff like DLL interfacing?
Henrik
6-May-2009
[13987x2]
We could use some practical vector! recipes in the cookbook list. 
This will give people a good idea for what they can do.
I suspect things like audio samples and very large data sets (geographical 
data, 16-bit image data) could be used for this.