« first day (3547 days earlier)      last day (233 days later) » 

11:41 AM
@HostileForksaysdonttrustSE "... the Red team values consistence. That means that pretty much everything that was said about Red 7 years ago, it’s still valid today ..." in other words: no progress at all.
 
 
1 hour later…
1:06 PM
@HostileForksaysdonttrustSE I think back in March they announced some official Red products, including a parse diagram tool. The announcement stated they'd share more details soon, but that's the last I saw of it... ~4 months ago. Understandable for new prods to be late, but the lack of communication doesn't inspire confidence.
 
 
1 hour later…
2:33 PM
@Edoc How many times must that clock go through its cycle before the next release?
Interesting info on Perl MySQL on https://github.com/perl5-dbi/DBD-mysql/blob/master/lib/DBD/mysql.pm
And also using the C-API to call MySQL http://www.yolinux.com/TUTORIALS/MySQL-Programming-C-API.html using include <mysql.h>
 
 
4 hours later…
6:52 PM
>> parse "N" [set direction ["N" | "E" | "S" | "W"] end]
== true

>> direction
== #"N"
^-- R3-Alpha and Red do this, but I don't like it. I asked to match the string "N". It should be a TEXT!, not a CHAR!.
Furthermore, I'd like this:
>> parse "N" [set direction ['N | 'E | 'S | 'W] end]
== true

>> direction
== N
Ren-C's UTF-8 Everywhere enables this to be done efficiently; WORD!s and TEXT!s are both UTF-8, so the match code is the same...you don't get into UCS-2 or UCS-4 expansions of the WORD! (or UTF-8 encodings of the TEXT!) to be able to do it.
@rgchris ^-- agree?
The line between SET and COPY doesn't make all that much sense to me.
There's a slew of cool things we can throw in that mash up PARSE and TRANSCODE now that they both operate solely on UTF-8.
 
7:15 PM
I think THEN and ELSE might have more application in parse than just what I describe, as today in order to get an alternate midstream like [rule1 rule2 [rule3 | (fail "whatever")] rule4] you always have to introduce a block. If you could make something that was effectively "enfix" you could avoid this block, which on one line isn't so bad but if multi-line gives you indentation headaches. [rule1 rule2 rule3 else [(fail "whatever")] rule4].
In its "one-rule-ness" it might even allow [rule1 rule2 rule3 else (fail "whatever") rule4]
@gnarlybracket If you are a teacher for the deaf in El Salvador, you might be interested in some aspects of the Rebol language's flexibility w.r.t. keywords and other fluidity.
    >> append [a b c] 'd
    == [a b c d]

    >> adjuntar: :append

    >> adjuntar [a b c] 'Ñ
    == [a b c Ñ]
I've been wanting to see adaptations and dialects of it maybe bringing programming to new audiences. It's always been in the back of my mind that there would be someone out there interested in this.
 
 
1 hour later…
8:50 PM
@HostileForksaysdonttrustSE Yes, I don't see any conflict with any other aspect of string parsing.
 
@rgchris What about something like parse "A10" [A set value '10 end], making value the INTEGER! 10?
 
@HostileForksaysdonttrustSE On the surface I think this looks cool. (Thinking selfishly) It would be helpful to me, for sure.
 
@HostileForksaysdonttrustSE I don't know—COPY operates on a zero-to-many return-series concept. SET gives you a single binary value (it did or it didn't). I like what you're on to here that SET could return the value in the Parse dialect instead of a unit of the series (chars for a string).
 
Well I want us to be able to do things ultimately like parse "A4143" ["A" set value integer! end]
e.g. handoff to TRANSCODE scanner logic.
 
@HostileForksaysdonttrustSE Even in cases where there's no strict Plan -4? e.g. parse "A4134B" ["A" integer! "B"]
 
8:55 PM
Even though it's more than one character that parse "North" [set direction ['North 'East 'South 'West]] should be able to work, even though the SET spans multiple parse elements.
@rgchris That's a question to ask, I don't know, as maybe enforcing the Plan -4 ness is you saying a space has to be after it at the higher level. I don't know how feasible it is to do such things. It may be you have to have a space or end.
 
@HostileForksaysdonttrustSE I think it's a more worthy SET usage. (should there be bars in that example?)
 
@rgchris Yes
Well, maybe someone can write up a theory of the difference between SET and COPY in a way that I fully understand it. I'll see if the implementation gives me any hints.
I do think BINARY! on a string shouldn't be looking for the molded representation but the UTF-8 byte pattern.
 
Would anyone disagree that COPY always gives you a sub-string/sub-series—including zero length?
 
I don't know enough to know what I think... if COPY always matches the input series type (?) then parse "North" [copy direction ['North | 'East | 'South | 'West] end] might set direction as a TEXT!... "North"... always.
One aspect I think of SET might be that it doesn't create new series.
 
@HostileForksaysdonttrustSE Would it always use the series as provided by the parse rule, and not the parsed series?
 
9:01 PM
Well that's something I was kind of thinking about.
If that is what the difference is.
But not so easy if you said set direction ["N" "o" "r" "t" "h"]
 
Yep, was just thinking that:
>> parse "abc" [set foo ["a" opt "b" "c"]]
== ""

>> uppercase foo
== #"A"
 
Same problems arising for parse "{abc} 10" [set t text! set i integer!], you have to synthesize, there's no series in the rule or the source that captures what you're doing.
 
In such a case, would you compose a series of the values as the product? ["a" "b" "c"]
 
No clue how to go about such a thing. Anyway, your SET rule above [set foo ["a" opt "b" "c"]] kind of demonstrates the "uh, what?" of this. The behavior may be well-defined, but not obviously intuitive or useful.
 
@HostileForksaysdonttrustSE I'd assume in this case that there'd be a loading of the sub-string.
 
9:06 PM
Those interested in performance might like the idea that SET doesn't introduce new series, which may be its m.o. vs. COPY.
And maybe that does point to the idea that SET can only match one "thing".
 
But it has to match a single value?
Right. Even if it's branched.
Or is some form of concatenation of the values matched in the PARSE dialect (and not a sub-series of the underlying series).
@rgchris @MarkI
 
I'm thinking that in the interests being more "fun" I'd like to make it easier to work with words, e.g. things like join 'x 'y should work to get xy, or join 'x 10 to give you x10.
 
Can't think of any objection to that.
 
@HostileForksaysdonttrustSE Man where has this been all these years.
 
@Edoc Note you can alias ANY-WORD! as a read-only string now if you like without creating a new series.
>> for-each c as text! 'some-word [print mold c]
#"s"
#"o"
#"m"
#"e"
#"-"
#"w"
#"o"
#"r"
#"d"
Rebol2 could do this, but R3-Alpha and Red can't.
It hinged on the "CHAR! is a byte" assumption. Anyway, a lot of these operations which might have been avoided due to complex or costly conversions aren't limited by that anymore.
 
9:23 PM
@HostileForksaysdonttrustSE Cool thanks. I've written quite a number scripts where I need to dynamically create words and the join technique above is much more straightforward.
 
 
2 hours later…
11:04 PM
All this emoji stuff, and "emoji joiners", is so psychotically damaging and complex that it is making systems much more insecure. I can't shake the feeling it's part of some general hacking strategy; making more places to hide backdoors etc.
I certainly feel hacked any time I try to make a multiple choice list and type something like (a) in Skype or whatever, and get back an icon of an "angel" round yellow face wearing a halo, because obviously that's what I meant when I typed (a). It just corrupts everything it touches, until no one can communicate.
The emoji joiners are these codepoint combinators that join so even when you were trying to type emoji in a sequence you get the combination. A cat followed by a rocket is no longer cat-rocket, but a cat in an astronaut suit. I don't see how this can be seen as anything other than an attack on our ability to communicate...even if we were trying to communicate with emoji.
We definitely need some layer to mitigate these threats; I already took the step on the CR LF sanitization, and the zero bytes legal internally to BINARY! but not TEXT!.
 
11:43 PM
Given that we allow APPEND to append a NULL as a no-op, it seems MOLD of NULL should at minimum just return NULL.
A better idea in the new age for a protection would be a MOLD/ANY that accepts voids as legit. Molding NULL to result in null seems fairly reasonable, better than "", I'd think.
 

« first day (3547 days earlier)      last day (233 days later) »