« first day (1708 days earlier)      last day (2072 days later) » 

4:38 AM
@draegtun See also: YouTube
@JacobGood1 My questions will arrive phrased in the form of an answer.
@iceflow19 Er, behind the 8-ball? Why? Coherence one worked, and master's not? What platform?
Master is likely to take... a bit of time before it works, it was more the 800 commit fast forward in version history...
That I decided was important to do
Also, I know some of us are old and we don't see each other every day and so if I have a month of gout and am in godawful pain that is not generally factored into everything
That's over, but now it's sinus issues
Not an infection but a pretty heavy inflammation and we rely upon our head when looking at like, computer screens
And I hate doctors and hospitals. Well, I don't hate @GrahamChiu. I mean like, other doctors.
So there probably is one of those drugs that would fix this, but I don't want to go get it.
I'm pretty stubborn.
2
Don't star that.
Anyway, sharing moment aside, I'm not able to work as fast as I'd like.
 
 
6 hours later…
10:47 AM
@HostileFork Linux
 
 
2 hours later…
12:46 PM
@HostileFork I starred it just because you said not to. If you had not said anything I would not have thought about it lol
 
 
1 hour later…
1:47 PM
posted on July 05, 2015 by rheber

#1251 There's probably a better way to phrase the new message.

 
@iceflow19 As predicted, inserting a binary into a string was simple copy in R2 but it -- wrongly here -- molds the binary in R3.
>> load/all head save to-binary "" [123]
 
; Brought to you by: try.rebol.nl
== [123]
 
>> head remove back tail transcode head save to-binary "" [123]
 
; Brought to you by: try.rebol.nl
== [123]
 
In case you were wondering, @iceflow19, there's your Rebol inverse of save "". Totally intuitive, I am sure you'll agree :)
 
1:58 PM
Absolutely...
 
@HostileFork @earl @rgchris &others, do you find head remove back tail a common idiom? I do. Am I missing something?
@iceflow19 @JacobGood1, do Lisps have a, similar, lop function? Chops the tail but returns the head?
 
So any thoughts on the behavior that should occur? Why are we even casting it to binary in the first place?

>> save/all "" [123]
== "[123]"
@MarkI Personally I think that behavior would be a could candidate for a new mezzanine
 
@iceflow19 Save in R2 only worked on binaries. Strings can be written to files only once they have been converted to binaries.
So normal "save of string" operation would do the binary conversion.
"Save to string" is new in R3, and I believe should work as we both want it to, no binaries please.
I believe @HostileFork wanted this to be the new mold. I am not so sure yet.
 
Well in r3 the save to file is the first thing that occurs if the where is a file or url. Otherwise the binary conversion happens much farther down.
>> source save
 
; Brought to you by: try.rebol.nl
save: make function! [[
    {Saves a value, block, or other data to a file, URL, binary, or string.}
    where [file! url! binary! string! none!] "Where to save (suffix determines encoding)"
    value "Value(s) to save"
    /header {Provide a REBOL header block (or output non-code datatypes)}
    header-data [block! object! logic!] "Header block, object, or TRUE (header is in value)"
    /all "Save in serialized format"
    /length {Save the length of the script content in the header}
 
2:05 PM
Yes, preparatory to storing the result in a binary, since that used to be the only other choice.
 
Oh nvm I was looking at the wrong thing. It still writes to file at the end.
 
Obviously it should now properly handle the new-in-R3 fourth possible choice, direct-to-string only.
But I also have some other gripes with save.
I think save into a none! should default to string-save, not binary-save, for example.
And then, forget that, why doesn't save take an accumulator (/only refinement parameter) instead.
It just goes on after that ... :(
 
You mean use only instead of all, making it by default include the block?
And then have it disregard the outer block on only?
 
@iceflow19 No, I meant the string/binary argument should be used properly as an accumulator, similar to /only parameter to reduce.
But the outer block thing is a good point, and one that needs much clarification and/or regularization IMO.
Argh, sorry, I meant /into, not /only.
Just like English, those little words are pesky to get right.
 
 
6 hours later…
8:28 PM
@MarkI Don't know about common—I see it a couple of places in my code, but not that many. I'd say it's as good as you're going to get for what it does...
Of course, remove back series series will preserve series position, although is two statements (not sure if statement is the right word).
 
 
3 hours later…
11:19 PM
@MarkI @rgchris With expression barriers I'd probably prefer (take/last series \ series) to head remove back tail series for most purposes if you need that.
But for Mezzanine code where you are penny-pinching your series and don't want to use two and don't want to pay for the refinement, you'd use the latter.
It's good to have choices...
 

« first day (1708 days earlier)      last day (2072 days later) »