World: r3wp
[!REBOL3]
older newer | first last |
Geomol 26-Jul-2011 [9297] | *serialization* |
Maxim 26-Jul-2011 [9298x3] | would you expect something else? each little type conversion has its own idiom. |
IMHO converting to string usually is meant to be used more like FORM than anything else. | |
there are some details which make the datatype conversions different than other forms... such as block to string. | |
Gregg 29-Jul-2011 [9301x2] | Cyphre, my fix for the SPLIT bug is above in this thread, which prompted the long discussion on it. |
Brian, DELIMIT means something very different to me. My DELIMIT func inserts delimiters. I don't have a problem with using a 'skip keyword. As I said, the current behavior wasn't the original design and may be Carl's doing. Check with him on that. There is a conceptual conflict between the treatment of splitting into parts by length and splitting by delimiter... -- I don't see that, but I'm biased. I'm always happy to see alternative designs. | |
BrianH 31-Jul-2011 [9303x2] | I checked a half-dozen online dictionaries to get that definition of DELIMIT. Perhaps you're checking different dictionaries. The conceptual conflict: - Dialected splitting has incompatible dialects, which makes both more limited than they should be. - Splitting a block based on a delimiter of one of the types used by length-based splitting isn't allowed. |
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 ? |
older newer | first last |