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

World: r3wp

[!REBOL3-OLD1]

Steeve
7-Oct-2009
[18896]
Have we a built-in function to decode xml data, currently ? Perhaps, 
i missed something...
Sunanda
7-Oct-2009
[18897]
R2 has 'parse-xml and its helper function 'xml-language.

You can copy their sources to R3 .... but they are currently seriously 
buggy there.


Gavin's XML parser was better in R2....It has no equivalent in R3 
yet:
    http://www.rebol.org/view-script.r?script=xml-parse.r


I guess we are waiting for parse to settle down before getting decent 
XML tools.
Steeve
7-Oct-2009
[18898]
Well, i only wanted construct a block of tags and strings.
So i came with that, it's enough for me currently.

src: read %frog.svg
out: []
parse src [
	any [
		copy str to [#"<" | end]
		opt [if (not empty? str) (append out to-string str)]

  not end src: (set [data src] transcode/next src append out data) 
  :src
	]
]
Claude
7-Oct-2009
[18899x2]
demo error with sub-panel !!!!
error => append2 has no value
Henrik
7-Oct-2009
[18901x2]
known bug
http://www.rebol.net/wiki/Devices

New document on devices.
GiuseppeC
7-Oct-2009
[18903]
I have read that Carl asked your opinion about embedding SQLLite 
in REBOL. What about it ?
Henrik
8-Oct-2009
[18904]
http://www.rebol.com/r3/docs/functions/bind-q.html


Carl posted a note in the BIND? function, that there are two types 
of bindings. I hadn't noticed that before, so it may be old news, 
but now we know.
BrianH
8-Oct-2009
[18905]
Good to see the old news documented somewhere outside of CureCode 
and the blog :)
Pekr
8-Oct-2009
[18906]
BrianH: what is Console2?
BrianH
8-Oct-2009
[18907]
http://sf.net/projects/console/
Pekr
8-Oct-2009
[18908]
BrianH: did you know about the 'evoke function? :-)
BrianH
8-Oct-2009
[18909]
Only of its existence, not how to use it.
Henrik
8-Oct-2009
[18910]
evoke 'someword gives instructions
Pekr
8-Oct-2009
[18911x5]
it is now clearer, because of my stack-size request ...
I had to put new ticket there though, as we need stack keyword for 
secure ...
secure none
evoke [stack-size 1000000]
I don't like the entire removal of security in order to be able to 
raise the stack. We need secure [stack allow] or even better secure 
[stack 1000000], and in such a case evoke is not needed ...
Apart from that, I don't regards #1252 to be solved. Carl just allowed 
the stack to be settable, but he left default value to be at 1/4 
of the R2 value. 4009 recursion stack limit? Come-on ...
BrianH
8-Oct-2009
[18916]
Secure evoke.
Pekr
8-Oct-2009
[18917]
Secure evoke? Yes, if 'evoke will be used for some other magic things 
than setting the stack :-) I wonder what is its another usage :-)
BrianH
8-Oct-2009
[18918]
A suggestion, not something that yet exists.
Pekr
8-Oct-2009
[18919x3]
I know - you might add it as a comment to #1259
it is maybe better than secure stack ...
as for Console2 - but that is gfx console, no? Will it work on terminal 
set-up?
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.