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

World: r3wp

[!REBOL3-OLD1]

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.
Henrik
8-Oct-2009
[18972x2]
I think we should ask Cyphre, whether this property can be added.
unless it's possible to perform the transformation prior to stating 
the grad-pen.
Steeve
8-Oct-2009
[18974]
Do you mean, taking the matrix and extraction the different components 
(rotation, translation, scaling) ?
I don't know if it's possible, i'm not good enough with maths ;-)
Henrik
8-Oct-2009
[18975]
I think it's possible to transform the gradpen alone before stating 
the shape to fill, but I haven't tested it.
GiuseppeC
9-Oct-2009
[18976]
I have one curiosity: REBOL3 VID is going to be an old style 2D interface. 
New interfaces, expecially for mobile device are PSEUDO 3D and touch 
based. Could this kind of interface be inplemented to support current 
and future generations of  products ?
Henrik
9-Oct-2009
[18977]
yes, both touch and 3D are possible.
Steeve
9-Oct-2009
[18978]
Btw, doing my SVG renderer with R3, i can't convert my drawings into 
images, it's crashing.
Using the draw function or to-image as well.

I can post a bug, but i don't know what's the problem because it 
depends of the drawing. Sometime it crashs, sometimes not.
Maxim
9-Oct-2009
[18979]
there are a few specific things, even in R2 which cause the render 
to crash outright.
Steeve
9-Oct-2009
[18980]
Actually,  it's not crashing the interactive rendering. it's crashing 
the to-image conversion.
So that, we can't save our drawings as images.
Maxim
9-Oct-2009
[18981x3]
that is strange... never had one without the other in R2... although 
in R2 if you put the to-image call in an attempt and the effect was 
invalid (and would usually cause a rebol error), that face will never 
render again, whatever you do with it... is stays in a corrupt internal 
state.
might be based on the same very core handling of view.
note the above effect doesn't happen in all setups, but I've had 
this happen to me in an earlier version of my image expression application.