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

World: r3wp

[!REBOL3-OLD1]

BrianH
8-Oct-2009
[18922x2]
R3 is targeted at low-memory applications as well.
Think about it: Even on a high-memory system, you might have dozens 
of concurrently rnning R3 instances, particularly once we start compiling 
ouur own hosts. Maybe hundreds. Memory adds up - better to start 
small.
Pekr
8-Oct-2009
[18924]
Does raising the stack to 1mil for e.g., consumes much more memory?
BrianH
8-Oct-2009
[18925]
Yes, much more.
Pekr
8-Oct-2009
[18926x3]
Hmm, more on evoke:

>> evoke '?
Flags: crash-dump delect watch-recycle watch-obj-copy crash
... so its help is not adapted to reflect stack-size parameter. Will 
CC it ...
BrianH: I DDed Console2 - how can I make R3 to open in the Console2? 
:-)
BrianH
8-Oct-2009
[18929]
You can't, because it unnecessarily allocates its own console, as 
I noted before. To be fixed.
Pekr
8-Oct-2009
[18930]
hmm, but even if it would not - how do you tell to general app, that 
Windows has now new console available to be used?
BrianH
8-Oct-2009
[18931x2]
I want to be able to run R3 from the *Windows* command line, not 
its own copy of the Windows command line.
You call the app from that console.
Pekr
8-Oct-2009
[18933]
aha, so it just "switches" to >> prompt, and here we go - R3?
Henrik
8-Oct-2009
[18934]
Running from the windows command line: that would also remove the 
side effect that a console would be opened, when starting a R3 GUI 
app from the desktop.
Pekr
8-Oct-2009
[18935]
will it be difficult to fix? If not, we could get it for the beta, 
no?
BrianH
8-Oct-2009
[18936]
Yup, just like Mac or Linux.
Pekr
8-Oct-2009
[18937]
We should CC it, as a 'wish :-)
BrianH
8-Oct-2009
[18938]
This would be trivial to fix. I even planned to fix it myself once 
the host code was released.
Henrik
8-Oct-2009
[18939]
One thing I don't like under OSX/Linux is that you can't create a 
new console. A new instance is piped to the same console "melding" 
the two together, making them both nearly useless.
BrianH
8-Oct-2009
[18940]
I like that effect - it's what makes CGI work on Linux.
Henrik
8-Oct-2009
[18941]
it's not useful for end users, but of course I see your point.
BrianH
8-Oct-2009
[18942x2]
And the lack of that effect is what makes CGI not work on Windows 
(in addition to Unicode issues).
I want to be able to pop up a new console if I need to, but it should 
be a GUI console and I should be able to pop up more than one in 
the same R3 process, in different tasks. Text mode console usage 
should use the text mode console.
Pekr
8-Oct-2009
[18944]
I am curious about HOW do we actually fix the unicode issues. This 
might be more deep problem, that might seem. Because If I am not 
able to print in UTF-8, I need to first print the header, using some 
conversion, and then the content = the code is not easily cross-platform 
...
Henrik
8-Oct-2009
[18945]
I'm OK with that, as long as you can debug a launched script in OSX.
Pekr
8-Oct-2009
[18946]
isn't there 'launch for launching a new REBOL process? Messing 2 
consoles in one is a bit weird ..
BrianH
8-Oct-2009
[18947]
No, but it doesn't need to be cross-platform - it's in the host code.
Henrik
8-Oct-2009
[18948]
Pekr, it's not really weird. It's just how proper piping works. REBOL 
just doesn't pipe to a different console in those cases where we 
would want it to.
BrianH
8-Oct-2009
[18949]
As for launch, that function needs a rework. It's not done yet.
Pekr
8-Oct-2009
[18950]
BrianH: so what is the fix for the Windows Unicode related header 
print problem? ;-)
BrianH
8-Oct-2009
[18951x2]
Make the shift in response to the --cgi option.
CGI output should be binary, and the headers output in 7bit ASCII 
(not UTF-8) through that binary output.
Pekr
8-Oct-2009
[18953]
--cgi option is not working now, or is it?
BrianH
8-Oct-2009
[18954]
Any encoding is none of the business of the CGI channel - it is a 
matter between the script and the cliennt.
Pekr
8-Oct-2009
[18955]
As to your remark - I wonder, how R3 itself decides, what is, and 
what is not a header :-) You probably mean, that I have to be responsible 
for the conversion?
BrianH
8-Oct-2009
[18956]
The --cgi option is not working on Windows. It works on Linux.
Pekr
8-Oct-2009
[18957x2]
That should be fixed, no? :-) I want to start to do some tests with 
CGI, and no will to mess with Linux here :-)
(I have a linux box with Fedora 1, but R3 does not work there)
BrianH
8-Oct-2009
[18959x2]
I mean that there should be a header output function that is loaded 
in the CGI module. HTTP header format is cross-platform, even down 
to the line endings. The header output function could be mezzanine.
By the way, the line endings are supposed to be CRLF, even from a 
web server running on a Linux box. It's the standard.
Pekr
8-Oct-2009
[18961]
What do you think about CGI module or any such special modules - 
would you make some of them default part of the distro, just modularised? 
Or you want them to be external? I think that CGI is basic functionality, 
which should be included in default distro, just with better support 
for sessions, not just decode-cgi, read-cgi ...
BrianH
8-Oct-2009
[18962x4]
CGI is a part of the default distro for R3 when used to run CGI apps, 
but completely useless for other apps.
Session support is specific to the web server - the CGI standard 
doesn't handle them at all.
External

 doesn't mean it won't be built in to your particular copy of R3, 
 just that it won't be built into Henrik's GUI app.
R3 isn't going to be monolithic like R2.
Pekr
8-Oct-2009
[18966]
I wonder how convenient such "build" tool is going to be. R2 encap 
was really very easy to see. I hope we will not push users to mess 
with C IDE, in order to build their R3 distro ...
BrianH
8-Oct-2009
[18967]
Well, we were careful to design the module system so that you could 
specify requirements and relationships statically. This makes it 
relatively easy to adapt modules to a preprocessor that collects 
them into a single script, without necessarily needing special directives. 
This might make encapping easier.
Steeve
8-Oct-2009
[18968x2]
I'm trying to build a svg converter (yes another one, but for R3).

As you can see here http://sites.google.com/site/rebolish/svg, it's 
pretty decent for the frogs (Rebol draw version at right)
But for the lizard, there's missing something, gradients.

But i'm stuck with the speciifications of grad-pen http://www.rebol.net/wiki/Grad-Pen

I don't  know how to build it from http://www.w3.org/TR/SVG11/pservers.html#Gradients
If someone can decipher that...
Henrik
8-Oct-2009
[18970]
can grad-pen do all the properties of SVG gradients that you need?
Steeve
8-Oct-2009
[18971]
I think so.
The only remaining problem will be the transform attribute.

They can apply a matrix to transform the gradient. But we don't have 
that, as-is in Draw.

We can apply rotate, scalling, and translation (i guess) on gradients, 
but separatly, not as a matrix.