« first day (1766 days earlier)      last day (2014 days later) » 

12:11 AM
I'm liking the ANY_ARRAY a lot, and it heralds the necessity of a similar step for STRING!.
The path of least resistance would be to call the category ANY-TEXT!
But... I sort of like TEXT! for {foo} and "foo" better than STRING!, with ANY-STRING! for the classname.
Text does have an awkward typing thing on qwerty keyboards though. It's not very smooth to enter.
 
12:37 AM
@giuliolunati I don't know about thinking of the spec as a class vs. meta information, although there is a motive to coming up with a better solution to reused code in objects in general. See the problem here: stackoverflow.com/q/31682205/211160
For starters I was thinking that the methods would still live in the body, but the spec would merely point out which of them you meant to link up as "overloads" for functions, and that's as far as I've gotten in the thinking of the design. My general instinct is that all the code should be in the body and the spec really be just meta-info.
With the caveat of "it would be nice if we could find a way that each object didn't need to copy the bodies of the functions inside it in order to get those functions to refer to its instance of words."
The problem is very similar to CLOSURE!, and I have a couple of ideas on how to address it.
(I do not know how good those ideas will turn out to be, or if they will work at all, but being able to try them is important...and hence why I worry about the "lockdown" needed in order to have the level of control needed to try such new things.)
 
 
2 hours later…
2:52 AM
 
3:26 AM
Here's an idea... because + is used in boolean algebra as associated with OR and * with and, why not call the infix bitwise or or+ and the infix boolean and and*
I don't know if not- is a good idea or not, and I don't know what one would do with xor.
not~ and xor- ?
On that front, FIRST+ needs a better name.
>> help first+
 
; Brought to you by: try.rebol.nl
USAGE:
    FIRST+ 'word

DESCRIPTION:
    Return the FIRST of a series then increment the series index.
    FIRST+ is a native value.

ARGUMENTS:
    word -- Word must refer to a series (word!)
 
It's kind of like "take but don't remove"
Perhaps TAKE/ONLY ? (Only take the next value, but don't remove it)
You can lean on what the word take means a bit there. "TAKE the next value and then REMOVE it from the series"
/ONLY - Just take a copy of the value and advance the series (don't remove)
If you "take" my advice, I still have it. :-)
Advancing the series mutates it, you have in a sense "taken" something just by advancing the position (taken an index...)
It still allows the default interpretation as take-and-remove, it still is a mutating operator.
Doesn't adapt well to the tail case though...
>> help take
 
3:48 AM
; Brought to you by: try.rebol.nl
USAGE:
    TAKE series /part length /deep /last

DESCRIPTION:
    Removes and returns one or more elements.
    TAKE is an action value.

ARGUMENTS:
    series -- At position (modified) (series! port! gob! none!)

REFINEMENTS:
    /part -- Specifies a length or end position
        length (number! series! pair!)
    /deep -- Also copies series values within the block
    /last -- Take it from the tail end
 
You can't take from the last successively without actually removing the element. But there's a reasonable question as to why that refinement is in there. Which I guess is because there's no good word for "back tail". :-/
take last x would read fine, except last is the last value, not the last position.
 
 
2 hours later…
6:12 AM
@HostileFork very interesting!
 
6:44 AM
@giuliolunati I think there are some angles that haven't been tried to reduce the resource needs there. But if they work at all, they'll be tricky and one can't have leaks here and there...needs control.
 
 
1 hour later…
7:47 AM
posted on September 01, 2015 by hostilefork

Rebol's wrapper for memory allocation internally is called Make_Mem. I've gone in and commented about why it's done the way it is (or why I think it is, anyway). One thing it would do was that it would zero memory by default. This takes that off, which brings two benefits. One benefit is not paying for the initialization if those zeros are just going to be overwritten anyway. The oth

 
@ShixinZeng --^ take note... I ran the gtk demo and the qsort example and they worked for me under Linux.
 
 
1 hour later…
9:15 AM
posted on September 01, 2015 by hostilefork

Because it's necessary to protect series from garbage collection when you know they aren't reachable from the root set, there is Save_Series and Unsave_Series. These routines are for temporarily keeping a series alive, and use an efficient stack approach for pushing and popping the protections. If an error is trapped in the middle of a state, then after the longjmp any protections in th

 
^-- @johnk / @GrahamChiu If that branch (under hostilefork/rebol, not integrated on Ren/C yet) could be tested out on something networky like RebolBot it would be helpful... I want to get rid of that Guard_Series thing and it seems to be okay to drop it (it's live as long as the port is live, and the port is live as long as the request is alive--no need for the redundancy I think).
The last two things I think I need to do for my "Coherence II" landmark completion is get everything to valgrind zero leak and then get the definitionally scoped return in.
The problem with the definitionally scoped return though is that I'm feeling a bit uneasy about how nested functions work with locals collection, and whether function specs want to say return: in light of that. Add that onto my existing suspicion of blessing the word RETURN too much, or even blessing the decision of whether return should take a parameter or not. So even though it's mechanically all sorted out and ready as it was, I'm going to think a little more...
 
9:41 AM
@HostileFork The make AnyValue always makes me think of boost::any (or std::any in a few years) to which you can assign values of any type.
But it's not a base class from anything.
 
Well there's no make any-value! [...], you can't use a typeset as a make target
The tests could also be "anyArray()" instead of "isAnyArray()"
 
If generally prefer my functions which return LOGIC! types (or booleans) to start by "is", "has" or "can".
 
..."was", "should"...
 
Well yeah, you get it. Two minutes...
Auxiliary verbs.
 
10:45 AM
@HostileFork built and running rebolbot successfully
 
@johnk Thanks! Odds are it will turn out to be fine.
 
 
1 hour later…
12:11 PM
@HostileFork These are all excellent points HF, thanks tons. Changes coming up. This is the "publishing" stuff I haven't finished yet.
 
 
2 hours later…
2:05 PM
@RebolBot
print "hello"
 
; Brought to you by: try.rebol.nl
hello
 
2:48 PM
@HostileFork using your tweaked version of the analogue literals stuff for a talk at CppCon potential, thought you'd be interested. You going to be there?
 
 
3 hours later…
6:01 PM
I have been pondering how to publish my code changes.
In particular, @HostileFork's objection to publishing any code that has tabs in it.
So, I have on the one hand, code changes, and on the other hand, tab changes.
If I combine the two into one commit, diff readability will clearly suffer.
But I have also been told that every commit needs its own branch.
So how do I indicate "this branch makes changes I would like to publish, but in order for you to understand what those changes are, you have to diff it against this other branch I've also created."?
I am hoping you don't need me to list the resultant difficulties, even if you propose a "way" to indicate this.
Have we universally agreed to coding conventions for Rebol 3?
The experimenting I see going on with %source-tool.reb would seem to indicate not.
Anyway, I am wandering off-topic, sorry.
Here is my problem: How do I publish code changes and styling changes so that it is obvious how to readably diff either one?
 
 
4 hours later…
9:51 PM
@MarkI You rebase and rewrite the commit. You only have to worry about messing with the content of a commit (and screwing up its hash, etc.) if there are other commits depending on it (that you know of or don't)
Which is a very simple rebase that just touches up your last commit. So you stage your changes as usual, but when you commit you say --amend
@OMGtechy Nope, that's far away. And if I went I'd have more substantial things to talk about... like Ren/C++
 
10:05 PM
@MarkI The key is understanding the "never amend commits in a public repository" is a rule that is okay to be broken when the public response was people looking at something in your PR that hasn't been requested and going "fix that". The idea being that we don't want to pull a lot of do-thing and undo-thing individual commits into the main branch.
But once we commit something to the main branch line of commits, we don't do things like spelling changes on comments or whatever. Because even a comment change will change the hash.
 
@HostileFork eh it's only a lightning talk, although I'm thinking I should do something else regardless...just gotta think of something!
 
@OMGtechy If it's a very short talk it might be okay.
 
10:31 PM
@HostileFork time wise it's fine; talk needs to be between 5 and 15 mins, but I would still like something more substantial yet short
 
@OMGtechy Bringing (some) good things about C++ casting to C: blog.hostilefork.com/c-casts-for-the-masses
 
10:53 PM
@HostileFork yeah that kinda thing, thanks :)
 
11:23 PM
posted on September 01, 2015 by qtxie

FIX: cannot handle some unsafe url

 

« first day (1766 days earlier)      last day (2014 days later) »