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

World: r3wp

[!REBOL3]

BrianH
31-Jul-2011
[9304]
I think that the word for inserting delimiters the way your old DELIMIT 
function did is "intersperse", but we can do better than that.
Kaj
31-Jul-2011
[9305]
DELIMIT sounds OK to me for inserting delimiters, with TOKENIZE probably 
its reverse
Steeve
31-Jul-2011
[9306]
what about SIFT ?
Kaj
31-Jul-2011
[9307]
That sounds identical to FILTER
Gregg
1-Aug-2011
[9308x4]
It will me (me at least) to make things concrete. Put together your 
versions and we can all compare and discuss A versus B.
http://en.wikipedia.org/wiki/Delimiter


I'm open to better words, but INTERSPERSE implies an element of randomness.
It will me
 == "it will help me"

(I need help)
Oy. You get what I mean...I hope. Time to sleep.
Pekr
1-Aug-2011
[9312]
wouldn't DELIMIT/ENLIMIT make sense? We have already en/decloak, 
de/encode, de/enbase, en/deline ....
Kaj
1-Aug-2011
[9313]
Hm, good suggestion
Gregg
1-Aug-2011
[9314]
delimit:  set, mark, or draw the boundaries of something 

ENLIMIT doesn't make sense to me.
Kaj
1-Aug-2011
[9315]
Agreed, but neither do REBOL words such as enbase and enline
Gregg
1-Aug-2011
[9316]
Agreed, so we shouldn't emulate them. :-)
Robert
2-Aug-2011
[9317x2]
Short update, we received a R3 Core version for OSX / Linux with 
the WAIT bug (consuming 100% CPU time) fixed. I still need to give 
it a try but I expect it to work. With this we now can use R3 on 
the non-GUI server side with our event driven BEEP based communication 
layer.
This is great in the sense that this will make it possible to use 
R3 for all kind of server side stuff.
nve
2-Aug-2011
[9319]
Great Robert ! Don't hesitate to communicate. That what was missing 
to Carl last months...
Endo
2-Aug-2011
[9320]
Robert: could you explain shortly what is "event driven BEEP based 
communication layer" please? I'm just curious.
Kaj
2-Aug-2011
[9321]
BEER 3?
Rebolek
2-Aug-2011
[9322]
yes, BEEP is based on BEER.
Kaj
2-Aug-2011
[9323]
I thought the other way around :-)
Rebolek
2-Aug-2011
[9324]
I may have the acronyms confused but on the other hand, I'm from 
CZ. There's whole republic based on BEER ;-)
Kaj
2-Aug-2011
[9325]
:-)
Robert
3-Aug-2011
[9326x2]
BEER was / is a Rebol implementation of BEEP (the protocol). Our 
communication layer is a C based multi-threaded BEEP implementation 
that we make available to R3 as an extension.
As it's multi-threaded it works via callbacks with R3. For this we 
need a working WAIT on the Rebol side since it WAITs until something 
happend, that is signaled via a callback. Than the Rebol side can 
handle the request and send an answer via the C level.
Pekr
3-Aug-2011
[9328]
Robert - nice, thanks for update. btw - what type of application 
you are using it for? IIRC, BEEP(R) is high performanace solution 
(although I found it quite difficult to handle/utilise).
Robert
3-Aug-2011
[9329]
We use / will use it for all applications that need to communicate 
between a client, server or peers. It's high-performance and pretty 
simple to use. Just send a message of any size :-)
Pekr
3-Aug-2011
[9330]
Could be used to get Altme faster :-) (although I think that the 
throughput is not the problem, but message store is).
Henrik
3-Aug-2011
[9331]
there's an extension for that too :-)
Pekr
3-Aug-2011
[9332]
Hmm, SQLite? We also have ODBC one, although only for Windows ....
Robert
3-Aug-2011
[9333x3]
When I call a callback from C to R3 can I return a result from R3 
to C from the R3 callback handler?
I understand it in that a SYNC callback can return something to the 
C side.
And for ASYNC case I somehow can use RXICBI.result to return something. 
But there is not much doc how to use it. Any exmaples out there?
Gregg
4-Aug-2011
[9336]
On the DELIMIT func name topic, my original suggestion, long ago, 
was to add /SKIP to INSERT, but that never went anywhere. What is 
the current feeling toward that (knowing that getting it added might 
be an obstacle).
Pekr
4-Aug-2011
[9337]
I generally like /skip. Just recently I used find/skip - very usefull, 
as it treats series as a set of records.
Kaj
4-Aug-2011
[9338]
It's currently associated with fixed length records. I'm not sure 
that's flexible enough for DELIMIT
Henrik
4-Aug-2011
[9339]
Interesting... Carl wants R3 to run on DirectFB.
GrahamC
4-Aug-2011
[9340]
where?
Henrik
4-Aug-2011
[9341]
presumably for the project he's working on
Kaj
4-Aug-2011
[9342x2]
That makes sense. It's the only Linux video system that's not incredibly 
bloated. It's in Syllable Server and they claim it's in WebOS
I was planning to port R3 to it until it all went poof
onetom
4-Aug-2011
[9344]
+1 for DirectFB. although it required callbacks, thats why i had 
hard time to interface it with gforth many years ago.
Kaj
4-Aug-2011
[9345]
It's a low level subsystem. But it's written in C, so it shouldn't 
be too hard
Steeve
4-Aug-2011
[9346]
Is Carl trying to run R3 on some embedded system ?
Henrik
4-Aug-2011
[9347]
I think he wants to do that.
Steeve
4-Aug-2011
[9348]
a TV probably
Henrik
4-Aug-2011
[9349x2]
mm.... close :-)
I thought he would blog about it, but I guess he forgot.
Robert
4-Aug-2011
[9351x3]
Trying to get back a result from an async callback to Rebol. This 
is the code I use:

	int cb_error = RL_CALLBACK(cbi);

	// check error
	if(cb_error==0){
		printf("to_rebol_processor: R3 callback failed");
		return false;
 	}

	// let's access the result from the callback (string! for now)
	char *callback_result;
	RL_GET_STRING(cbi->result.series, 0, (void**)&callback_result);


The problem is that I get back a (null) pointer for callback_result 
and not the string.
Any idea? The rebol call just returns a fixed a string at the end 
of the callback function.
Ok, as usal I just need to post my problem to solve it :-) I did 
return the string! from a wrong place. Works.