« first day (3362 days earlier)      last day (418 days later) » 

12:42 AM
I think more data is needed before sudden moves but I think it's worth asking questions.
And sorry to bring you up again @Morwenn but I kind of really do want to know what you think of the situation.
 
 
2 hours later…
3:07 AM
>> something? print "hello"
hello
== #[true]
is void something or nothing?
 
3:38 AM
@GrahamChiu VOID! has ultimately kind of in a way re-settled on what Carl thought UNSET! was supposed to be, which is something.
I managed to re-engineer the code to have a "null"
Which is "true nothing" as in "thing that can't be put in a block". Almost like inventing zero.
 
so a true nothing is a something?
 
that's kind-of confusing
 
Look just like with inventing zero, things have properties.
So you study the properties of the thing
And in Rebol's world, nothing would mean "cannot be a value"
And that sounds rather abstract but you can concretize it as like "can't be put in a block"
I have to say, the whole process of this really did eventually make me sort of appreciate why zero was such a hard concept back in the day.
 
4:07 AM
@HostileForksaysdonttrustSE nothing? Returns TRUE if argument is either a BLANK! or NULL
 
 
2 hours later…
5:44 AM
@GrahamChiu Well, fair point, but I guess I couldn't think of a better name for the test.
 
 
1 hour later…
6:48 AM
@GrahamChiu In case you didn't notice, NULL? is the specific question, you can also ask TYPE OF and if you get back NULL that's null. I know it seems complicated but I worked through it pretty well.
So I thought, that if you needed a NULL-OR-BLANK? macro that NOTHING? was good enough, but that's not etched in stone.
 
7:01 AM
@MarkI Something interesting about editing that you might not know is that if you're trying to pull together things that weren't actually together in the initial speech delivery that a tendency to say "ummm" provides various breaks and you can actually edit in an "ummm" so you can bridge the edit.
And at the risk of sounding a little egotistical... I'm way easier to edit than the rest of you, because the original material was pretty tight and I don't interrupt my own sentences. :-)
But where I failed was putting too much into a package, it was really... too dense.
I'm so not looking forward to having to edit my other talk. That is the stuff nightmares are made of.
Not due to me interrupting myself or saying umm but like trying to figure out exactly how to process that
If people are wondering why no New Year's post yet... well. I delayed because of the edits and then I started feeling like because @giuliolunati's stuff was so good I have to figure out how to... do it, with subtitles and/or maybe overdub it, and that is a lot of work.
 
7:47 AM
@HostileForksaysdonttrustSE let someone else do it eg. youtube.com/…
Vuepress is pretty neat. It indexes all your H1, 2 headings so that you can search on these in what is a static website (SSR)
 
8:16 AM
@HostileForksaysdonttrustSE No overdubbing please. There was a transcript of some kind and I threw that in Google Translate I think, it was pretty good. just make subtitles for the intent, not literal translation if that saves you time.
 
 
2 hours later…
9:47 AM
unfortunately my cgi experiment stranded. No success.
** Access Error: cannot open: %%25../rebolscript/test.reb reason: make error! [ type: _ id: _ message: "No such file or directory" near: [fail make error! [...] ~~] where: [fail read if load _ do console] file: 'tmp-boot.r line: 5147 ] ** Where: read if load _ do console ** Near: [... data: read source ~~ if block? data ...] ** File: tmp-boot.r ** Line: 5147 ** Line: 5147
Where the exact same thing works on the R2 version. Too bad, I change my focus to something more productive Ren-c related.
 
 
3 hours later…
1:16 PM
Yes I looked at some things again and now it, the CGI scripting with renc, is successful! (At least in part, like I used it on my php website, not like direct scripting, but that will follow hopefully)
 
1:38 PM
@HostileForksaysdonttrustSE maybe I can help with subtitles?
 
 
1 hour later…
2:42 PM
@GrahamChiu VuePress does look pretty neat. I've never been one to write much documentation in markdown, however. But still, it looks like it has a lot of good features. The SPA part of it being the least interesting part to me.
I started looking at Workbox recently, and it looks like it offers nice SSG features also without the SPA rigamaroll. It leverages service workers to keep things speedy. article
With regard to search, for any documentation site, I'm used to ripping through the content and metadata to generate a JSON index file for Typeahead.js It's more like a type-ahead menu than true search, but it works quite well and you can populate that index with as many options as you like.
 
 
1 hour later…
4:02 PM
I should be able to hook in a free algolia search account once I get the domain.
There's also an official spa plugin so the site can be used in off line mode but I'll need the SSL certificate.
However, at this point I need examples for the content rather than web optimisations!
 
 
3 hours later…
7:19 PM
5
A: Thank you, Robert Cartaino

Bill WAnother hard working CM lost to the community. :( It seems that there is less and less support for a good community.

As mentioned there, Shog9 is gone now too. :-/
 
@rgchris I got something pretty close, although not with any fancy ren-c updates.
`; Converted to Ren-C. Lightly tested, there's room for improvement.
build-markup: func [
{Return markup text replacing <%tags%> with their evaluated results.}
content [text! file! url!]
/quiet "Do not show errors in the output."
<local> out eval value
][
content: either text? content [copy content][read content]
out: make text! 126
eval: func [val <local> tmp err][
either error? err: trap [tmp: spaced load/all val][
if not quiet [
append out spaced ["***ERROR" err/id "in:" val]
]
][
if something? tmp [append out tmp]
 
I find it rather compelling that in Rebol you can write things like if not quiet [...]
 
Yuk. Shows you how often I upload code snippets around here
Nervous to try this again and pollute the forum
 
I'll be updating this function (or more likely) creating a very similar function for eval'ing rebol blocks-- the above fn only supports string interpolation.
That's right. That's where I was going the whole time.
(Noticing the above isn't very clear) i.e., eval'ing words/tokens in blocks for dialects.
ts: now
tide-status: [if ts/time > 12:00 ["high"] else ["low"]]
my-status: "holding on"
report: {Surf conditions, <%ts/date ts/time%> -- The tide is <%do tide-status%> but I'm <%my-status%>.}
build-markup report
== {Surf conditions, 14-Jan-2020 14:04:46 -- The tide is high but I'm holding on.}
report: {Surf conditions, <%1 / 0%> -- The tide is <%do tide-status%> but I'm <%my-status%>.}
build-markup report
== {Surf conditions, ***ERROR zero-divide in: 1 / 0 -- The tide is high but I'm holding on.}
build-markup/quiet report
== {Surf conditions, -- The tide is high but I'm holding on.}
 
7:55 PM
probably needs a [to text! read content]
 
@GrahamChiu Yasss. There's a few opptys in there to put some newer idioms in. I kept it closer to a straight conversion. As reported yest, I got stuck with trapping errors in that eval fn. I ended up creating another variable err so there's likely a way of doing that more elegantly too.
 
@Edoc Yeah, read is now binary
 
@GrahamChiu Yes-- good catch. I didn't test on URL! or FILE!, doh.
 
I myself now prefer if [ ] else [ ] instead of either [][] because it's so easy to forget putting in the second block!
2
 
I like having the option. For simple code, to my eyes the if else keeps it simple.
 
8:09 PM
@GrahamChiu I like having the choice.
 
it's read/string but it's to text! read ... shouldn't it be read/text ?
 
Unless I'm mistaken, I think it's to text! read.... I believe R3 or thereabouts might have been read/text and later versions ignored?
 
@GrahamChiu That's legacy. But moving forward, I think that if we are to follow the principles then there should be some sniffing of the header information that tells you what the content is. If you read http://example.com or what not then either one of two,er, three things is true: you always get binary -or- it senses -or- there's some over verb like LOAD that senses.
 
What's the preference here? https://rebol-docs.org or https://reboldocs.org ?
 
And I thoutht that the introduction of either was one of the best Rebol decisions ever :-)
 
8:14 PM
@HostileForksaysdonttrustSE I miss the automatic detection of file types with load
@pekr if you write code it's easy to miss the second block
either [ ] or [ ] sounds better to me than either [][]
 
@pekr I use either constantly. But the example fn above is something where you'd almost reach for a pick ["this" "that"] <condition>
And for something like that I think the if else just clicks a little better. Otherwise, yes, either all day long. My code is choked full of them, which is a code smell I'm sure.
 
I use gladly either for ages and never ever had any problem of that. It seems to me like a made-up argument.
 
It's not an argument unless you make it one. Fortunately you get to use either to your heart's content.
 
Wasn't if/else an exception in lexer? Wonder how Ren-C does so internally.
 
8:20 PM
@pekr Aaaaah please watch the video!! I do not do these things for my health.
 
But I am absolutly not versed on either of them. What looked more scarry was some of Carl's thoughts on various function constructors and the idea to unify them via just one block and subblocks ... something like [[...][...]] did not look pleasant to me ...
OK, will look at the video trying to understand the reasoning ...
 
It was a lot of thought to get it to work and the code is well commented.
But, as mentioned, you don't have to do it that way if that's not how you think. It's like sentence structure, whether you like passive or active voice or whatever.
 
Carl would often use pick ["this" "that"] <condition>, which I think was an attempt to keep options next to each other. For that type of scenario, I like the if [] else [] ...
 
x: either condition '1 '2 ; legal in Ren-C
x: either condition '{this} '{that}
All possibilities open. You go with what order makes sense for what you want to say. I think the comparison to active and passive voice is on point.
 
@Edoc that pick thing is an old forthism
 
8:25 PM
I have never seen the pick ["A" "B"] condition pattern ...
 
I had a (lame) college teacher who said "passive voice obscures agency" and I said "yeah, well what if you want to obscure it?"
He was such a jagoff that when I dropped the class I got the paperwork and he had to sign it, and I took it to him and I said "Your class was dropped. By me."
 
feel weird, because Rebol has 1 base indexing, so first position is 1, second is 2 .... how is that 2 = false?
 
The point is freedom of expression. Carl said it's about language.
 
what's function! now?
action! ?
 
 
1 hour later…
9:45 PM
@HostileForksaysdonttrustSE :)
 

« first day (3362 days earlier)      last day (418 days later) »