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

World: r3wp

[!REBOL3-OLD1]

BrianH
11-Sep-2009
[17522]
Maybe there's a trick that --cgi could do with I/O ports.
Maxim
11-Sep-2009
[17523x4]
ah yess.. --cgi could just tell the core to prevent the UTF-16 encoding 
being done on stdout...
but if we need to output latin-1 afterwards (while dumping the html 
content, for example), the output encoding  should be selectable 
as a "current default", and all the --cgi would do is set that default 
to UTF-8 for example.
since AFAICT, the internal string! representation is encoded to whatever 
is needed by the host, in the 'PRINT native already.


Choosing what that is manually would simplify the porting to other 
platforms, since the default host code would already have this flexibility 
covered.
and some systems pipe the std to have it pushed remotely to other 
systems... which can expect a different encoding than what is being 
used by the local engine... I've had this situation in my render-farm 
management software, as a real-life example.
BrianH
11-Sep-2009
[17527]
The trick is that the headers are pushed in ASCII, but the contents 
in whatever binary encoding the headers specify.
Maxim
11-Sep-2009
[17528x2]
yep... which is why it should be switcheable since rebol now does 
the encoding for us.  :-)
some systeme like RSS even support multiple encodings in the same 
xml document!
Pekr
11-Sep-2009
[17530]
how is that Linux and OS-X don't experience any problems? They do 
use UTF-8, but that is not ASCII either, no?
Maxim
11-Sep-2009
[17531x2]
UTF lower's 127 odes are the same as ASII and single byte.  so if 
you don't use special chars, or the null char, you are basically 
dumping ASCII... this is the reason for its existence.
(UTF-8)
Pekr
11-Sep-2009
[17533]
hmm, and why Windows uses UTF-16? Is it because of Windows console 
defaulting to UTF-16?
Maxim
11-Sep-2009
[17534x3]
probably it doesn't even support UTF-8 in any way.
IIRC the whole windows API is either ASCII or UTF-16.
FYI: posted a note on the september plan where I proposed a clear 
meaning of different releases and detail a better approach to deliveries 
where different versions are concurrent. Each one addressing a different 
aspect of the release cycle... this is how releases are handled at 
the larger places I have worked at ... maybe Carl could comment on 
this !?
Pekr
11-Sep-2009
[17537x4]
Apple open sourced Grand Central - I wonder if they do use good concurrency 
system, so we could copy the mechanism :-) 

http://www.osnews.com/story/22152/Apple_Releases_Grand_Central_Dispatch_as_Open_Source
Max - your release 4 version plan sounds complicated to me. Can you 
see? Carl is not reacting to those things. IMO he thought he will 
put R3 into beta in few weeks, and as we know him, he might even 
do so, that is what I fear of. I agree, that unless some things are 
not stable enough, there is no point to go to beta.
On the other hand - I know Doc would like to use R3 to port Cheyenne. 
But concurrency model can't be rushed in imo. Why couldn't it come 
in 3.1? We still have lots of stuff to test. e.g. I think that Module 
system was not tested properly yet by developers. Rushing concurrency 
into R3 nowadays might also mean difficulcy in testing - modules 
plus concurrency ...
But - the situation is more diffuclt. If we want ppl to start using 
R3, we have to provide them at least with R2 funcitonality. But we 
are far from that. Noone imo gave proper thought to networking protocols. 
My question is - would they benefit from concurrency model? If so, 
we should definitely stay in alpha, and work-out to have really feature 
complete Core (kernel) first ...
Maxim
11-Sep-2009
[17541x5]
which is why I say that releasing a Beta with stuff as it is already 
working is a good idea.  but continue working on an alpha which lets 
us give valuable feedback on stuff to come.  The curecode bug squashing 
is concentrated on beta version, design & core implementation is 
limited to alpha/experimental versions.
this way he can let out an experimental version which has threads 
and let any of us with the know-how and use cases to test extensions 
and concurency in parrallel, while he continues to squash beta bugs.
the problem with RT is the parralelism of the development.  its already 
100 times better than it was with R2 since we are giving Carl & friends 
hundreds of man hours of testing which can't perform anyways.
many issues where raised because of the alpha nature of R3 which 
would have ended-up in a screwed up release version, in the old RT 
philosophy.
** But a lot of R3 is working very well right now.  **  


Going to beta could also mean that a select few people have the capacity 
to build the ports to other platforms. Squashing OS related stuff 
in parralel with stuff specifically in beta, meaning they would NOT 
have to concentrate on the latest alpha buggy stuff to fix and port.
Pekr
11-Sep-2009
[17546]
releasing a Beta with stuff as it is already working

 - what is the point in calling it beta then? Carl will surely continue 
 to implement new stuff the way he did it till now. Calling something 
 a beta just for the sake of the word itself, is not important for 
 me. Features and completness is important ...
Maxim
11-Sep-2009
[17547x2]
the beta only has what is complete and bug free in the alpha.  that 
is the point.
once you get to beta, the porting is official, for example... its 
just a definition of what you can expect at this point. what is in 
the beta works... what is in the alpha isn't guaranteed.  but many 
of the bugs are independent of what is new in the language.  so these 
later bugs can still be fixed in the beta stage even if new features 
are being added.
Pekr
11-Sep-2009
[17549x2]
so the point is not to open development on hundred of fronts, having 
all those unfinished, but select some featureset, and finish it, 
then move further ....
The problem is, that some things are interconnected. E.g. not having 
parse enhancements might influence how you parse networking protocols 
or rebol level decoders/encoders, altought it can be later adapted. 
The same goes for concurrency. Guys can be reluctant into writing 
networking protocols, especially if we want something like Uniserve 
inside, unless the concurrency model is well defined?
Maxim
11-Sep-2009
[17551x5]
Yes and more specifically, some of that can be handled by other people 
than Carl.  Probably faster even, cause Carl, like most thinkers, 
hates doing the repetitive work for sure.
yep.  beta is limited up to the point where the alpha stuff works, 
at which point the beta/releases have new but working features just 
needing more testing in order to be sure all is well.  but the important 
thing is that if something really is discovered in the beta, you 
can still officially change and go back.  at which point something 
rolls back to the alpha stage and Carl plies his will to that specific 
problem in priority.


its just a way to make expectations, promise, and procedures clear 
and explicit.
right now... there is no rule to say when "we go into beta"  no way 
to clearly say what will go into the beta and why.  its just some 
vague point in the future... "soon".  having this explicit means 
we can have beta and alpha concurrently, with a clear path to release. 
 today, I still can't know what to expect will be in the beta.
it also makes it clear that at this point, other people can join 
the release team.  some people would probably volunteer for some 
ports if they need it.  but what to port?   ahhh... what's in the 
current beta... don't bother with the alpha stuff its too shaky.
we could have a R3/core beta version next week with a subset of what 
is in the R3 alpha today.  (if the last of the very core issues are 
finished by then).
Henrik
14-Sep-2009
[17556]
so, ideas for how to run R3 through the web console?
Maxim
14-Sep-2009
[17557]
you might want to ask kaj, he beat you to a working example !  ;-)

http://tryrebol.esperconsultancy.nl
PeterWood
14-Sep-2009
[17558]
I think it will depend on the OS. Use ports on Windows and CGI on 
Linux/Mac.
Maxim
14-Sep-2009
[17559]
Henrik: your console is VERY nice,  I think I'd prefer green (maybe 
#00CC00) for Console answer though.
Henrik
14-Sep-2009
[17560x3]
the target is debian lenny for now
maxim, we can build color schemes, if we want.
Maxim, yes, Kaj beat me, but it appears to be a single run R3 process 
per query, so it's different from mine. The challenge would be to:


- Launch an R3 process and bind the process ID to a session ID for 
the user
- Send requests to that process.
- Get response back from that process, one at a time.
- Kill the specific R3 process.

- Build some kind of arbiter to manage R3 processes, time processes 
out, get requests from users, etc.
Maxim
14-Sep-2009
[17563]
maybe just a very simple set "bg", "text", "reply text" fields under 
the console where people can put valid #FFFFFF colors which are used 
by the javascript  :-)
Henrik
14-Sep-2009
[17564x2]
the console divs are very simple, so it should be possible.
BTW, managing the keyboard under various browsers is pretty crazy 
as there is no standard, so if there are places where it doesn't 
work, don't be surprised.
PeterWood
14-Sep-2009
[17566]
Have you looked at dojo.keys - http://docs.dojocampus.org/dojo/keys
Henrik
14-Sep-2009
[17567]
nope, but I don't think I'll need it. thanks, though.
Maxim
14-Sep-2009
[17568]
wow that is a cool library :-)
Maxim
15-Sep-2009
[17569]
btw Carl, it seems, is still open to renaming REBOL.  He seems to 
like "Zen" ... what do you guys think?
Oldes
15-Sep-2009
[17570]
I think it would be hard to find it on Google between all the cca 
62000000 other "zen" pages
BrianH
15-Sep-2009
[17571]
I'm not aware of another Zen language, but there is likely some obscure 
project called that. I like REBOL, but if there is a way to cut down 
on the blank stares when I talk about it I would be for it.