« first day (1390 days earlier)      last day (2390 days later) » 

12:09 AM
>> print func [] [print "Unset might be okay, but I really think this is uncalled for to be valid as a parameter to print."]
 
; Brought to you by: try.rebol.nl
make function! [[][print {Unset might be okay, but I really think this is uncalled for to be valid as a parameter to print.}]]
 
 
1 hour later…
1:26 AM
>> x: [{Something} now]
== ["Something" now]

>> y: [x x]
== [x x]

>> print [{A} y {B}]
A Something 20-Aug-2014/21:23:41-4:00 Something 20-Aug-2014/21:23:41-4:00 B

>> print [{A} 'y {B}]
A [x x] B

>> print 'y
[x x]

>> print y
Something 20-Aug-2014/21:24:57-4:00 Something 20-Aug-2014/21:24:57-4:00
Anyone have thoughts on the above? @earl @grahamchiu @rebolek etc?
That is a combine-based PRINT, with the enhancement that if an evaluation terminates in WORD! or PATH! (probably usually by way of literal) then it is fetched and molded.
As with sub-rules in PARSE, you can build sub-print-blocks.
It uses spaces at all nesting levels, which is not the default for COMBINE. So it's like combine/with blk (func [depth] [space])
@happyspoon --^
 
2:00 AM
I am starting to have second thoughts on the default behavior of passing delimiters not just putting the same delimiter at every level of depth, because of this PRINT behavior. :-/
Putting the burden of making a nested sub-print "rule" being different on a special function is starting to seem not that hard to do if you want it...my opinions were formed before I'd thought of the function at all, and I hadn't thought about PRINT doing a COMBINE with SPACE as its default behavior.
It's just easier to model print [...] as print combine/with [...] space and pushing the burden of other behavior onto those with the concerns. I don't remember who all was trying to convince me of that before but I'm starting to agree.
 
2:48 AM
0
Q: stdout and stderr ports in Rebol3?

HostileForkYou can read bytes from system/ports/input, and if you convert them from BINARY! bytes to a STRING! of unicode codepoints you get something coherent: >> to-string read system/ports/input Hello == "Hello^/" But if you try writing to system/ports/output in Rebol3 you get: >> write system/ports/...

0
Q: Issue with red hues in image processing with image

user3962448I have an image (620x1024), that I want to turn into a same sized image of equally luminous red. What do?

0
A: Issue with red hues in image processing with image

jbbj94Is this the type of thing you're looking for? function h = redifyImage(fname, luminosity) img = imread(fname); img(:,:,2:3) = 0; img(:,:,1) = luminosity; h = image(img); end

 
 
1 hour later…
4:10 AM
Welcome to the Rebol and Red room. See our FAQ.
 
>> print ["Hello" reverse ".KrorD@"]
 
; Brought to you by: try.rebol.nl
Hello @DrorK.
 
That kind of bots.
red> print "me too"
 
; Brought to you by: try.rebol.nl
me too
 
Oh, attack bots :)
 
4:12 AM
So you are new to C you said
You have no other language tags. Any other experience?
 
Technically I had plenty of experience, but it was too superficial, too long ago, and I remember nothing of it
 
Well, Rebol is 15-17 years old, depending on how you count I guess.
 
Where does he live?
 
The RebolBot lives in the cloud. The Rebol creator (who hasn't been around lately) lives in Ukiah and shoots mountain lions. Well, one mountain lion.
Ever used any Lisp or similar?
 
I'm not sure if similar, I had experience over 10 years ago with more than I could remember
I've learned Pascal for 3 years, touched Assembly for a few months
 
4:17 AM
@RebolBot
code: [print 1 + 2]
print [{The length of code is:} length? code]
do code
append code [+ 3]
print [{After appending, length of code is:} length? code]
do code
 
; Brought to you by: try.rebol.nl
The length of code is: 4
3
After appending, length of code is: 6
6
 
So you've not worked with anything like that, for instance?
 
I ran a PCB and played with its PPEs
I had a few eggdrops, tcl based
 
I did like Tcl in the day, there is similarity in some ways
 
I've touched plenty of things, the problem was that I've touched too many and only superficially... today I remember nothing
 
4:19 AM
So there a couple of things to know about the Rebol/Red mission.
 
Here's an example: I've learned French for 3 years, I could actually speak and write French
 
Red's creator is French
 
Today I wouldn't know how to begin to structure a sentence
How is he 17 years old?
Where was his home? Which network?
 
Rebol is 17 years old. Rebol's creator was born in 1950 something.
Red is coming on 3 years old if not 3 yet. I guess I'm not keeping track.
We consider our languages to have ages. :-)
 
Oh, so not the actual bot-entity?
 
4:22 AM
Oh, the bots are relatively recent in the scheme of things...
21
Q: RebolBot - a chat bot for the chat rooms

Graham Chiu RebolBot is a chat bot with a natural English dialect interface, specifically targeting the StackOverflow chat rooms. Yet it has a modular design, can post tweets to Twitter, and could be modified with only a little effort to work with other chat systems. An instance of the bot hangs out...

@RebolBot good evening
 
@HostileFork good evening to you too
 
@RebolBot Who's your daddy?
 
@DrorK. Can you elaborate on that?
 
@RebolBot Your dad?
 
@DrorK. What do you mean?
 
4:23 AM
To understand RebolBot requires understanding the language itself.
 
@RebolBot Who's your creator?
 
@DrorK. What do you mean?
 
It has a fallback on a sort of eliza-like set of responses if it doesn't get you.
 
@HostileFork He doesn't know his daddy?
 
Someday.
But let me ask you a question...
About C
 
4:24 AM
@RebolBot Help!
 
@DrorK. FAQ
 
So how often do you type a curly brace in C?
 
"Looks like something went wrong!"
 
Vs. how often do you type, a square bracket, I'm just wondering if off the top of your head you can say how often you type one vs. the other
 
Good question
I guess 10 to 1 ratio?
 
4:27 AM
Probably. I don't know your locale, but I do know the defaults... which do you have to hit shift to get?
 
{}
 
Ok. Well, I don't want you to think any one thing I say is an argument for what we are doing here, but I want to paint a picture. In Rebol, the block delimiters for code structure is square brackets.
All things being equal, we like them better, and you don't have to hit shift.
But they are very different, I'll come back to that.
>> print {"It's interesting," said {@HostileFork}, "how many languages do not use asymmetric delimiters for strings, given the advantages."}
 
; Brought to you by: try.rebol.nl
"It's interesting," said {@HostileFork}, "how many languages do not use asymmetric delimiters for strings, given the advantages."
 
@DrorK. So once curly braces are freed up they are used for strings, can you spot any advantages?
 
I'm not sure
 
4:33 AM
@DrorK. Well, I used quotes, an apostrophe, and curly braces and didn't need any escaping.
Nested braces are legal as long as they are a matched pair, you see. Starting and ending a string with " does not offer that. Some languages like JavaScript offer an alternative like ' but it's hard to say what strings you might use that are more or less likely to have single vs double quotes and switch between them.
Pairings are rare on the keyboard. ( and ), < and >, [ and ], { and }, and without some stretches of the imagination that's kind of it.
 
Makes sense
 
v and ^, maybe. :-)
 
pd seems like a pair to me :)
 
Could be.
So, there are two starting points of "thinking different"
But let's think really different.
@RebolBot
code: [foo: 10]
print [{Length of code is:} length? code]
do code
print foo
 
; Brought to you by: try.rebol.nl
Length of code is: 2
10
 
4:38 AM
@DrorK. Does that make sense?
 
Nope
 
Well the first line assigns a block of symbols to be stored in a variable we will say is code
 
Why length? 's return is cat'd into the string?
 
PRINT is able to take in a block of structural code, and evaluates it. It stitches things together.
@RebolBot
print "Hello"
 
; Brought to you by: try.rebol.nl
Hello
 
4:41 AM
>> print [{Hello} x]
 
; Brought to you by: try.rebol.nl
; rebol.com/r3/docs/errors/script-no-value.html
    *** ERROR
** Script error: x has no value
** Where: print
** Near: print ["Hello" x]
 
@RebolBot
x: 10
print [{Hello} x]
 
; Brought to you by: try.rebol.nl
Hello 10
 
@DrorK. The evaluator can be a little strange to get your head around, it's kind of a machine... some things it does nothing to, like strings or integer literals...they have been as "evaluated" as they'll ever be. But if you use a symbolic word, then it will look up that word and see if there's anything it can do with it.
 
@HostileFork Hey, it's almost 8AM here- I'm about to crash
Nice meeting you, btw
 
4:44 AM
You too. Come back sometime. If you want to be forward looking, Red has some interesting upsides compared to C
It can be a distraction from what the rest of the world is doing, but these days, so is C... it's like if you aren't programming in JavaScript you're wasting your time... in some people's minds. :-)
 
We're a generation of 'instant' :)
 
@DrorK. You need to learn some of my generation's patience, while the UMRN is typed
 
Peter Varo, Budapest, Hungary
3.5k 1 8 27
Welcome to the Rebol and Red room. See our FAQ.
 
4:59 AM
wuuu.. scary :)
 
@PeterVaro We are the robots.
Know any Lisp?
 
Common Lisp, yes
 
Rebol has some similarities, I was showing earlier...
@RebolBot
code: [print 1 + 2]
print [{Length of code is:} length? code]
do code
append code [+ 3]
print [{New length of code is:} length? code]
do code
 
; Brought to you by: try.rebol.nl
Length of code is: 4
3
New length of code is: 6
6
 
nice
 
5:01 AM
You can presumably follow that
Little tricks here, though.
@RebolBot
code: [foo: 10]
do code
print foo
 
; Brought to you by: try.rebol.nl
10
 
Okay, so... what... is foo: exactly?
>> type? first [foo: 10]
 
; Brought to you by: try.rebol.nl
== set-word!
 
So there's a subclass of the "symbol" type (word!), which is denoted by ending with a colon, it's a flavor called "set-word!"
There's more than that, though.
>> type? first [:foo]
 
; Brought to you by: try.rebol.nl
== get-word!
 
5:03 AM
I see.. all righty then -- I was just checking by => since you linked this room in C
 
If something starts with a colon, it's a... get-word! hmmm
Well, you will like it, it is written in C (Rebol is)
I recompiled it under C++ and it got smaller, YMMV
 
zuppa! ;)
bye!
~
 
Ah well, not everyone cares about new things.
For me, it's not so much even caring about new things, it's caring that people would take the time to talk to me about a new thing.
(I also care about new things)
 
 
6 hours later…
10:38 AM
Kamiccolo, Night
1.5k 1 9 14
Welcome to the Rebol and Red room. See our FAQ.
 
meh... FAQ link is broken :(
 
@Kamiccolo Looks like a transient github error
It's not a 404.
 
@HostileFork aye, wiki is unreachable. For some reasons :|
 
And Internet archive didn't pick it up
Hmmm. I guess I should have made a copy of that somewhere else!
Not that it's all that important, when you can just ask. Hello.
Rebol is written in C. Red/System is C-like. So if you are a C fan, there is some C around.
@Kamiccolo Here is a surrogate link: blog.hostilefork.com/why-rebol-red-parse-cool
 
@HostileFork thanks :}
 
10:58 AM
>> print [{"It's also the case,} (reverse {oloccimaK@}) {that we have the bots here to help demonstrate," said {@HostileFork}, "and there's interesting stuff to be shown."}]
 
; Brought to you by: try.rebol.nl
"It's also the case, @Kamiccolo that we have the bots here to help demonstrate," said {@HostileFork}, "and there's interesting stuff to be shown."
 
 
2 hours later…
12:30 PM
@RebolBot
parse to-string read stackoverflow.com [
    thru <title>
    copy title to </title>
]
print title
 
; Brought to you by: try.rebol.nl
Stack Overflow
 
1:03 PM
red> print print "Hello"
 
; Brought to you by: try.rebol.nl
Hello
unset
 
red> print [10 (print "Hello") 20]
 
; Brought to you by: try.rebol.nl
Hello
10 unset 20
 
red> compose [10 (print "Hello") 20]
 
; Brought to you by: try.rebol.nl
Hello
== [10 20]
 
1:18 PM
In doing PRINT redesign based on COMBINE, I think that unsets should be ignored and not molded.
red> compose [10 (none) 20]
 
; Brought to you by: try.rebol.nl
== [10 none 20]
 
red> print [10 none 20]
 
; Brought to you by: try.rebol.nl
10 none 20
 
There's a case where I think it should be different, BUT:
x: none
print [10 'x 20]
That would print "10 none 20". If you say "no, literally...what this value contains, not treating the value as a potential sub-rule of print" then it should render that. But should that throw an error if x is unset? :-/ Currently I do not, I mold whatever you GET
x: none
print [10 x 20]
That would just be 10 20
 
1:43 PM
I don't suppose anyone would happen to know of any quick substitute I could use for the functionality of map! while waiting for it to be written in Red, such as a library or binding written by Kaj or something?
Something where the equivalent of this wouldn't return "key2":
red> select [{key1} {value1} {key2} {value2}] {value1}
 
; Brought to you by: try.rebol.nl
== "key2"
 
red> select/skip [{k1} {v1} {k2} {v2}] {v1} 2
 
; Brought to you by: try.rebol.nl
== none
 
red> select/skip [{k1} {v1} {k2} {v2}] {k2} 2
 
; Brought to you by: try.rebol.nl
== "v2"
 
1:45 PM
@WiseGenius ^^
 
2:01 PM
Welcome to the Rebol and Red room. See our FAQ.
 
2:53 PM
@earl I asked for that, didn't I.
Goodnight all.
 
 
5 hours later…
7:53 PM
@skiwi The feedbot is picky, but Atom feeds are fine. I've tried RSS before and had the same temperamental behaviour—it's not the feed, it's the bot!
Don't know why you wouldn't want to use Rebol though, it's great for this type of thing!
Good timestamps seem to be essential, though if it's clocked a particular ID, then you have to change the ID and the timestamp to try and force an item.
(actually, Rebol's great for any type of thing, there's a world of suckers that suffer other languages :)
2
 
8:17 PM
@rgchris Hey chris, I've meanwhile figured out that it is most likely something with a <published> tag vs an <updated> tag... I'm not exactly sure, but I'm using the wrong one
@rgchris Even though I don't use Rebol, I couldn't not star that.
 
8:30 PM
@skiwi For the Stack QA feed, I just copy the <published> and <updated> value from Stack's feeds.
How often do you poll the feed?
 
8:50 PM
@rgchris Just so we're on one line, it's a github commit feed, I don't do anything with it myself, was hoping the chat feeder would do it for me
 
Ah, right—I see. Well where's the fun in that?
 
Appereantly none :(
I've got someone with a server for use, so I could have a SE chat bot running 24/7, and then have a web service that reacts on github post hook
 
@skiwi I've been meaning to explore the post hook—seems like a reasonable way to do it. You thinking of any particular chat bot? (hint hint)
 
@rgchris Well not so much for chat, it just needs to be able to post things, basically commits/issues/etc. from the github and travis-ci hooks
I figured it would be nice to also fix the up to 20min wait limit the regular feed poster has
 
The only downside is you don't get the fancy formatting...
(unless it's a oneboxable link)
 
9:05 PM
Well, I could fancy-format it myself then :)
 
Let me know how that goes! :)
 
Seeing as the chatfeeds' and my own feeling of fancy formatting do not always agree
 
Fair enough—do share when you have something up and running though!
 
I'll be sure to :)
It's a bit silly as this happens because of another project and I do really really want to see github and travis-ci updates in our chatroom ;)
 
It would be nice to peruse the logic behind the @Feeds bot, expose some of the mysteries behind all those missing feed entries.
 
 
3 hours later…
11:45 PM
Hey @rgchris. Any thought on the lit-word/lit-path addition to COMBINE meaning "GET and MOLD"?
(Technically it's WORD! and PATH! meaning that, but because there's an evaluation during the combine it's the response to those types as results.)
 

« first day (1390 days earlier)      last day (2390 days later) »