« first day (911 days earlier)      last day (2869 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
I think there's a higher path to love and harmony that can also unite people working on complex problems and projects and this aspect is under-explored imo
2
 
@rebolbot version
 
@rebolbot good night!
 
@rebolbot version
Hmm. Maybe the cookies have expired so it can't post anymore
No one has talked to her for a while
 
12:34 AM
@graph we have the old manual version of the "advanced collaborative argumentation tool" known as "consultants". Often it feels like I am talking to a robot :-)
 
1:31 AM
Looks like I have to regenerate the cookies
 
@rebolbot version
 
@GrahamChiu 0.0.34 18-Apr-2013
@RebolBot Welcome to the Rebol and Red room. See our FAQ
@RebolBot Can you elaborate on that?
@RebolBot What do you mean?
@RebolBot What do you mean?
@RebolBot Please continue.
@RebolBot Please continue.
@RebolBot That's very interesting.
@RebolBot That's very interesting.
 
oh.. catch up time
@rebolbot version
 
@GrahamChiu 0.0.34 18-Apr-2013
 
1:51 AM
@fadstar Welcome to the Rebol and Red room. See our FAQ
 
2:36 AM
@graph Truth spoken here. You might look into Don Knuth's one-off lecture: "Things Computer Scientists Rarely Talk About"
@johnk One of the interesting aspects of those sorts of post-car-crash accounts, is how often people say "that's when they hit me" not "that's when they hit my car". It's sort of an odd thing about how your identity perception fills your container or range of motion.
"You are that which you control," or somesuch. Obviously there are applications in forensics of this when you notice patterns, and this is used...and computers can do what any human FBI agent does in that way...but to treat heuristics as parsimonious mathematical truth is a recipe for vulnerability, hacking, etc.
While I don't work in things like DNSSEC, maybe I should have. I kind of have a knack for that, and I get really annoyed at security exploits.
Broken stuff bugs me. :-)
 
2:58 AM
@HostileFork you can even fool the mind into perceiving a different body shape newscientist.com/article/…
We should get back to the topic of the room :-) Has anyone been using @rgchris's Textmate bundle in Subllime Text 2? I have only had limited success and was considering helping to update it.
 
@johnk I am about to switch my editing to Sublime Text, as everyone sings its praises, but I haven't programmed anything for a couple of weeks.
 
@HostileFork I am evaluating it as it is hard to switch editors after using them for years
a key thing for me is to have the same editor across Windows, Mac and Linux with good regex support. Reading through the textmate bnudle there is a lot of good automation stuff for integrating with Rebol help and do'ing selected blocks
 
3:28 AM
@johnk , you mean the TM bundle as used in ST? Commands aren't supported, are they? Haven't really looked at that aspect of bundles.
 
 
2 hours later…
5:01 AM
@Adrian I think that TM bundles are supposed to be supported (without commands), but I find that the syntax highlighting is not working as expected. It was not really working as documented by dropping the bundle into the Pristine Packages folder. I have broken apart the bundle and zipped up just the tmLanguage file into my own sublime-package and am trying to work it out from there.
 
Didn't I give you a zip of what I'm using?
The reason for the syntax highlighting not working is probably because you're not using the Blackboard theme for Rebol.
The Rebol package should be under Data/Packages btw
 
5:25 AM
@Adrian Not that I can find :-/ Can you send it again? Could always fork github.com/rgchris/rebol-tmbundle and put your updates there so we can view the changes
 
Skype?
Not sure if a fork is the best solution since things were removed and moved around in the directory structure.
 
Yes (to skype)
 
What would be good to have is a script that builds a ST package and TM bundle from the common bits and then adds any specific files.
Are you using Windows? Don't recall
 
@Adrian Windows at work, Mac and/or linux at home.
 
You'll need to edit Rebol.sublime-build accordingly - the one I have is just for Windows.
ctrl-B to run the current buffer
 
5:42 AM
Hmm .. still not quite working. I now get a Rebol sub menu on the Preferences/Color Scheme, but the syntax highlighting is not correct. For example parse or foreach are not highlighted any differently than a new word
 
did you select the Blackboard theme for Rebol files?
 
Creating the data folder caused a lot of changes such as the creation of a Data/Backup, Data/Settings folders etc.
Yes
 
can you share your screen in Skype?
 
Not through my work firewall
 
so for you, the data folder was not there?
this is where ST keeps the modified or user installed packages - it's the only dir you should keep if you've made changes and want to unzip a newer version of ST on top of the old one
 
5:45 AM
@Adrian correct, there was no data folder
 
So right now you're at work with Windows?
 
Also correct
 
have you installed Package Control?
 
Ah .. C:\Documents and Settings\XXXXXX\Application Data\Sublime Text 2 is (was) my data folder until I just created one in program files\Sublime Text 2\data
 
I usually use the portable version of ST so that includes the data dir already
 
5:50 AM
Have not installed package control as the proxy servers here verge on evil (use broken NTLM implementation) hence it is often v. hard to get automated installers working hence I tend to have to do things by hand
 
too bad
anyhow, with the Rebol dir under data/Packages, do you see a menu under Preferences/Color Scheme/Rebol ?
with a choice of "Blackboard"?
 
Yes
 
so is that selected for Rebol files?
 
.r not .r3
 
Rebol.tmLanguage should have both .r and .r3 extensions set
 
5:53 AM
In the View/Syntax menu Rebol is not listed so it is not picking up the file for some reason
 
by Rebol files above, I meant for files that ST sees as Rebol by extension
did you have the Rebol dir under data/Packages or the archive?
it doesn't need to be called Rebol, btw
but it should be a directory located there
If it's there and it doesn't pick up the Rebol package, I suppose that ST is still looking under Application Data\... for the data dir location. Try putting it there instead, then.
 
Ok - removed Data from Program Files and cleaned up the Doc and Settings location and all working now
Thanks :-)
 
np
 
Just need to add r3 to the path
We should write up a few instructions and post back to that SO question about sublime
 
well, if I recall, the Rebol.sublime-build file had a hardcoded path from my system
you'll need to adjust accordingly
 
6:01 AM
Yes, module path is hardcoded at least
 
@johnk Yeah, other people might be in your situation with the data dir
 
Any other gotchas I should be aware of?
 
not that I can think of at the moment
remember the snippets that are there - we should maybe create additional ones
reb<tab> to insert the header is useful
you can then tab through the fields and overwrite the default values
 
nice, how do you execute the date command?
 
we should probably create additional snippets
You mean a built-in date command? Never used one, if one exists.
 
6:06 AM
Header contains with Date: date "+%e-%b-%Y"`` which is the unix date command
 
Maybe in TextMate there's a way to run a shell command and insert its output in the buffer.
Don't know about ST
 
Do you know why par<tab> autocompletes to parse, but app<tab> does not complete to append?
Hmm, looks like the name of the completion file might be messed up Completation.tmPreferences
 
If I recall, the autocomplete you're seeing is just based on what is already in the current buffer.
not on what's in the tmPreferences file
meant to figure out if that's something that works under ST too, but haven't really looked into it
 
I'll have a play
Must go. Thanks again @Adrian
 
sure thing - l8tr
 
 
5 hours later…
11:26 AM
@RebolBot
print "I'm awake..."
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print "I'm awake..."
I'm awake...
 
Hey, me too! I guess you think you out-insomniac me.
 
11:51 AM
room topic changed to Rebol (and Red): a PNG is worth 217.5 DWORDs rebolsource.net/go/chat-faq [dialect] [interpreter] [json] [lisp] [rebol] [rebol3]
 
12:45 PM
Heya @DocKimbel. Any news?
 
@ka\u1D60 Welcome to the Rebol and Red room. See our FAQ
 
@ka, welcome to Rebol and Red. Happy to have new people always!
 
hi guys
just passing by
so.. why rebol?
in a few words
 
Hey @HostileFork, what kind of news would you like to ear? :)
 
@kaᵠ Can do!
@RebolBot
print reverse "Hello"
 
12:55 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> print reverse "Hello"
olleH
 
i mean, why did you guys chose it, and what do you do with it?
 
@RebolBot
code: [+ 1 print]
do append reverse code 2
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> code: [+ 1 print] do append reverse code 2
3
 
@RebolBot
parse "aaaabbbccc" [some "a" copy stuff to "c" to end]
print stuff
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> parse "aaaabbbccc" [some "a" copy stuff to "c" to end] print stuff
bbb
 
12:57 PM
@kaᵠ We do many, many, things with it.
 
@RebolBot
code: [print "some stuff"]
do code
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> code: [print "some stuff"] do code
some stuff
 
@ka something else cool... the download is a monolithic, no dependency, no install program. Alien tech sold here, free of charge. :-) rebolsource.net
 
compilable / web?
lol, sounds interesting
 
@HostileFork, I switched to dyn-lib-emitter branch these last days, I'm happy to announce that we fully support generating shared libraries on Mac OSX from Red/System (soon from Red itself). Linux shared libs support should follow soon (this week I hope).
 
12:59 PM
@kaᵠ Rebol is our interpreted variant (18 years old), Red is the compiled variant (newer)
If you ever heard of the Amiga, this is an outgrowth of that tech
DocKimbel here is the leader of the Red project
 
monolithic 440kib of data? wooot? how so light?
 
@kaᵠ Really meticulous decision making
 
@kaᵠ Clean design, no bloated 3rd-party libs dependencies.
 
i see, think i'll do an euler problem in it
 
@kaᵠ Feel free to ask for our assistance, RebolBot is in the house. There's little we like more than bringing more people into the fold and realizing what a mistake most technology is.
 
1:02 PM
question is.... Does it RegEx ?
 
@kaᵠ You will never want to see a RegEx again. Our far greater solution is PARSE
 
or it doesn't have to ?
 
Exactly
 
thought so
check the rooms i'm in :P
 
Let me try and sum up for you quickly
Rebol is a "code-is-data" language, like LISP, as you've seen
 
1:04 PM
got that, 'think' so :)
is it good/ok for web backends?
 
So one might think "nothing new under the sun", but if you go back and look at the pleas from the creator of JSON and JSLint (Douglas Crockford) he always says go look at Rebol.
 
hmm
i love JSON
 
Well, Rebol was the inspiration for it, and after you see the real deal you might not love JSON so much anymore
Rebol is an encompassing term for a representational standard, like XML or JSON.
This clever representational standard was then turned around to look like an "ordinary-ish" programming language, but you can really do anything with it with what we call "dialecting"
So one should not be fooled into thinking that the imperative language that is used for basics like math and procedure calls or closures or whatever "is Rebol". It's just a dialect. Then you switch in and out as you please, possibly re-using things here and there.
 
@RebolBot help
 
I respond to these commands:
delete [ silent ] "in reply to a bot message will delete if in time"
do expression "evaluates Rebol expression in a sandboxed interpreter (/x)"
help "this help (/? and /h)"
keys "returns known keys (/k)"
remove key "removes key (authorized user) (/rm)"
save my details url! [ timezone [time!]] "saves your details with url +/- timezone"
save key [string! word!] description [string!] link [url!] "save key with description and link (/s)"
show [all ][ recent ] links by user "shows links posted in messages by user"
 
1:07 PM
@RebolBot version
 
@kaᵠ 0.0.34 18-Apr-2013
 
is rebolbot written in rebol ?
 
:D ofc
 
Rebol's concept of the input to programming is based on a nicely literate token space. It can achieve this largely because it sees programming as "words separated by spaces", kind of like how we write.
@RebolBot
type? <a>
 
1:09 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> type? <a>
== tag!
 
dunno wht i say this but code looks incredibly clean
3
 
@kaᵠ Well it's like what I just said! It invokes your language instinct as we read and write non-code.
Many languages, because they picked something like a < symbol to mean something always... or a hyphen to mean something always... exhausted their parse space too quickly.
@RebolBot
print {"Wouldn't it be nice," said {Fork}, "If people used thought and reason to design things?"}
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print {"Wouldn't it be nice," said {Fork}, "If people used thought and reason to design things?"}
"Wouldn't it be nice," said {Fork}, "If people used thought and reason to design things?"
 
Asymmetric string delimiters means no escaping as long as your pairs are matched.
@RebolBot
type? hostilefork.com
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> type? hostilefork.com
== url!
 
1:12 PM
@RebolBot
print 12-Dec-2012 + 1
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print 12-Dec-2012 + 1
13-Dec-2012
 
@kaᵠ Yes, it's designed to be simple, lightweight, and flexible. What is your current language?
 
@kaᵠ To continue my general riff... the thing is, Rebol is a tinkertoy box of lexical elements...and you get a couple of ways that's interpreted, but it is fluid such that you can repurpose them. If you read something like a: 10 you might think that colon is the assignment operator, and that sets a to 10... but there is no "assignment operator". a: is a certain kind of lexical element called a set-word
If you get a new idea for what to do with that in a dialect, you may do so.
Anyway got to drive a guy to the bus stop who solicited me on the street last night. He said he needed money to get to a bus. I said "well, I don't give people money, but I'll take you there." He said "well I actually can't get on the bus right now, it doesn't start running until tomorrow." I said "Okay, meet me here at 8:30 in the morning and I'll take you to the station and hand the money to the bus driver, and if you get on it then okay."
We'll see if he actually shows up. Brb hopefully. If I don't come back, I got knifed or something, but honestly I think I can read people pretty well. :-)
 
1:31 PM
@RebolBot
print 29-Feb-2013 + 1
 
@kaᵠ What?
 
@RebolBot
print 27-Feb-2013 + 1
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print 27-Feb-2013 + 1
28-Feb-2013
 
@HostileFork back... reading...
 
@kaᵠ Can you elaborate on that?
 
1:32 PM
@RebolBot
print 29-Feb-2013 + 1
lol :)
i'm a PHP guy now, did asm, c, pascal, basic, fox(pro), then stuck on delphi, then stuck on php
 
1:57 PM
Well, I'm back. Guy didn't show. Without further information I can't tell you why, but it's okay, I got to take a little walk around the grounds. :-)
@kaᵠ O noes. You infinitely recursed into the Fractal of Bad Design!
@kaᵠ The exception handling in RebolBot uses a therapist bot, if it doesn't understand what you say it falls back on that...
 
@HostileFork i know of that shitty post, ever since it was written hell broke loose
i don't care about how functions are named, or how they take their arguments
or if it's strict or not, or other crap
i take it as a tool, and just do stuff
 
@kaᵠ Well okay, but let's play a game then. Give me a real example, some RegEx or something in PHP
Then I'll recast it into Rebol.
Some little snippet from a real codebase, that you think represents "good PHP"
 
ok, validate and extract id from youtube url (may be written in more forms: youtu.be / youtube.com / etc)
i have answered one of those...
 
@kaᵠ Sure, is there a formal statement of the problem?
And the PHP version?
 
just regex, wait a sec pls
 
2:03 PM
One trick in Rebol is that it has a native URL type. You don't have to put it in quotes or anything. The tokenizer recognizes the pattern. But under the hood, it's just a "flavor" of string.
e.g. it doesn't complain when you say http://hostilefork.com with some nonsense like "divide what by what?"
 
i liked that example
made me think..
 
Well Rebol will make you think... a lot... :-) This is the tip of the iceberg.
So anyway, I can parse URLs sure
 
^(?:https?\:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?‌​v\=))([\w-]{10,12})(?:[\&\?\#].*?)*?(?:[\&\?\#]t=([\dhm]+s))?$
2
A: How to modify a regular expression to parse a parameter from a YouTube URL

ka ᵠCapture YouTube video ID (and time seek parameter t if exists) RegExp: ^(?:https?\:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v\=))([\w-]{10,12})(?:[\&\?\#].*?)*?(?:[\&\?\#]t=([\dhm]+s))?$ Demo here: http://fiddle.re/w1nn6 PS: you'll note I improved your original ...

 
@kaᵠ Give me a sec to read that crazy moon language and create a functional equivalent
 
i know.. i love regex, but every time i see some, i have to sit down and think it, every time, unless it's trivial
 
2:10 PM
@kaᵠ Well let me just start on it and we'll build it up properly, like a real rational mind would compose a problem.
@RebolBot
siterule: [opt "www." ["youtu.be" | "youtube.com"]]
parse youtube.com ["http://" siterule]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> siterule: [opt "www." ["youtu.be" | "youtube.com"]] parse youtube.com ["http://" siterule]
== true
 
@HostileFork i gave it as a (rather simple) example, expecting it wouldn't require too much
 
Hey @somekittens, good to see you. I'm busy doing some evangelism. :-P
@RebolBot
siterule: [opt "www." ["youtu.be" | "youtube.com"]]
parse youtu.be ["http://" siterule]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> siterule: [opt "www." ["youtu.be" | "youtube.com"]] parse youtu.be ["http://" siterule]
== true
 
interesting
 
2:12 PM
You should read KK's article comparing Rebol and RegEx
@RebolBot show links
 
@HostileFork Sky is blue, HostileFork is evangelizing REBOL.
 
Watch out for the show links, @RebolBot might get banned for flooding/spam.
 
@RebolBot
siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]]
parse https://youtu.be ["http://" siterule]
 
2:14 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse s://youtu.be ["http://" siterule]
== false
 
RebolBot can't see edits
 
@RebolBot
siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]]
parse youtu.be ["http://" siterule]
 
You need new requests
 
; Brought to you by: tryrebol.esperconsultancy.nl
; rebol.com/r3/docs/errors/script-no-value.html
>> siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse youtu.be ["http://" siterule]
*** ERROR
** Script error: youtu.be has no value
** Where:
** Near: try load/all join %/users/try-REBOL/data/ system/script/args...
 
The URL type requires foo:// style formatted to be used, you can't write anything and expect the tokenizer to accept it
@RebolBot
type? quote A1
 
2:15 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> type? quote A1
== word!
 
@RebolBot
type? quote 1A
 
@HostileFork What are you trying to say?
 
word dog!
 
So A1 is a legal "word" but 1A is a bad number. Like I say, the token space is sliced differently from other languages, but not every input is a legal program...just as not everything passes the W3C validator.
@RebolBot
print $10.00 + $0.25
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print $10.00 + $0.25
$10.25
 
2:17 PM
So if you need a string, use a string.
@RebolBot
siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]]
parse "youtu.be" ["http://" siterule]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse "youtu.be" ["http://" siterule]
== false
 
I am actually not a parse "expert" by any means
 
@RebolBot siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse s://youtu.be [siterule]
 
@kaᵠ Please continue.
 
@RebolBot siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse s://youtu.be ["http://" siterule]
 
2:18 PM
@kaᵠ What are you trying to say?
 
argh
 
@kaᵠ Well if you want to play, download it! rebolsource.net
no install. I drew the logo :-)
 
@RebolBot
siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]]
parse s://youtu.be ["http://" siterule]
what?
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> siterule: [opt "http" opt "s" opt "://" opt "www." ["youtu.be" | "youtube.com"]] parse s://youtu.be ["http://" siterule]
== false
 
You'll get better messages.
 
2:19 PM
you drew the logo?
 
E: Unable to locate package rebol
 
@kaᵠ Hm? What OS?
 
ubuntu
 
@kaᵠ Hrm, so you downloaded it... chmod +x, and it is giving an error?
 
2:21 PM
nvm i'm downloading it
was expecting to be in the repos
 
Well it only got open sourced in December
We don't really know any package maintainers and we've got lots of political stuff to work out
And you don't really need to package it because it is just a file.
Which, is all part of the philosophy. Less is more. Think clearly, don't bloat, don't have dependencies you don't need.
"The cheapest and most reliable parts of a system... the ones that never break down or need replacement, that function perfectly every time... are the ones that aren't there."
 
bash: ./r3: cannot execute binary file
hmm
 
@kaᵠ Which build did you get?
 
@HostileFork nevertheless even if one file, it could be installed where it should be in every distro and with the installer
dude, sorry
guess i downloaded the osx by mistake
 
Well, that probably won't run. :-)
 
2:27 PM
bash: ./r3: No such file or directory
hmm
 
@kaᵠ I agree with you that we should build a relationship with the packagers. Bear in mind they wouldn't hear of it prior to the open sourcing
It's what people expect
 
got it, but it's good it has 18y of history
i think i need the x64 version
 
That might be unstable, I wouldn't suggest it for production work yet
But as you're just learning, why not. :-)
Also, remember, Rebol 3 is alpha. Rebol 2 is stable.
 
working
well i'll compile my own if i need it
now it's for testing purposes
with one-file-does-all in mind i might at least polyglot it in some apps :P
 
@kaᵠ If you want to either be disturbed or amazed: Rebmu
@kaᵠ And if you want some polyglotting... Whitespace in Rebol
 
2:33 PM
whitespace in anything :P
so.. don't scare me just yet
 
@kaᵠ Well Rebol is one of the more socially acceptable scary aspects of me. :-) So I'll stay there for now.
 
i just downloaded the damn thing (1 file, less than half a meg, still amazed)
 
But anyway, I'm just a fan/evangelist/logodesigner. The other guys here who are busy are the real gurus.
@kaᵠ One interesting aspect is that because it knows network protocols and http stuff, it can load a library from the web by hyperlink... just like how you use javascript libraries in a web page from Google or wherever.
 
i have this file:
siterule: [opt "www." ["youtu.be" | "youtube.com"]]
parse http://youtu.be ["http://" siterule]

print "hi"
only prints hi
bot said something...
 
Well, say "print parse"
The thing is, that Rebol expressions evaluate to the last result
 
2:36 PM
ofc
 
@RebolBot
3 + 4
print "Hi"
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> 3 + 4 print "Hi"
Hi
 
That 3 + 4 happened... but... result was tossed to the void
@RebolBot
3 + 4
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> 3 + 4
== 7
 
The last evaluation in the expression chain gave a result. (Print does not)
So we see the result of said evaluation.
@RebolBot
print 3 + 4
print "Hi"
 
2:38 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> print 3 + 4 print "Hi"
7
Hi
 
** Math error: math or number overflow
** Where: ** do either either either -apply-
** Near: ** 3000
for: print 3 ** 3000
ok @HostileFork so... Y U NO HAZ MAN/DOCS page star pinned ?
 
@kaᵠ Well, Rebol 2 has a lot of documentation but the GUI looks like an 80s cash register... if you don't like the bleeding edge, R3 alpha might not be for you. :-P
 
i program in my own editor
shouldn't i do that?
 
18 year old project by one of the folks behind "guru meditation error" and you expect it to be non-crazy? :-)
 
didn't say anything about that (yet)
i meant, you should have a some docs pinned in this chat
@RebolBot
print 3 ** 3 "km/h"
 
2:45 PM
; Brought to you by: tryrebol.esperconsultancy.nl
>> print 3 ** 3 "km/h"
27.0
== "km/h"
 
I like to pin funny or interesting remarks. We have RebolBot for that kind of thing :-)
@RebolBot
print [3 ** 3 "km/h"]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print [3 ** 3 "km/h"]
27.0 km/h
 
I don't want you to get confused and think that the default dialect, which we call "DO", is somehow "Rebol"
So when I say something like "in Rebol, all functions have a fixed arity" I might be doing you a disservice.
 
arity?
i see pow returns float (strange)
 
@kaᵠ Guru Meditation reminds me of this: homestarrunner.com/sbemail118.html
 
2:47 PM
decimal! : '
print type? 3 ** 3'
 
Arity is just about how many arguments something takes. The DO dialect, when it interprets Rebol-formatted data as "code", turns a crank in kind of a uniform way.
 
@ka - arity means fixed number of arguments for a functiona call ... you have to submit them all ... kind of ...
 
Today: mega crash course !
 
@kaᵠ We're here for it every day! :-)
@kaᵠ Something to note is that Rebol's function specifications are done through a dialect, like everything else. It's thus quite reflective.
@RebolBot
help append
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> help append
USAGE:
    APPEND series value /part length /only /dup count

DESCRIPTION:
    Inserts element(s) at tail; for series, returns head.
    APPEND is an action value.

ARGUMENTS:
    series -- Any position (modified) (series! port! map! gob! object! bitset!)
    value -- The value to insert (any-type!)

REFINEMENTS:
    /part -- Limits to a given length or position
        length (number! series! pair!)
    /only -- Only insert a block as a single value (not the contents of the block)
 
2:54 PM
@RebolBot
my-function: func [
    "This function does some stuff"
    x [integer! string!] "X has to be an integer or string"
] [
    print x
]

source my-function

help my-function
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> my-function: func ["This function does some stuff" x [integer! string!] "X has to be an integer or string"] [print x] source my-function help my-function
my-function: make function! [["This function does some stuff" x [integer! string!] "X has to be an integer or string"][print x]]
USAGE:
    MY-FUNCTION x

DESCRIPTION:
    This function does some stuff
    MY-FUNCTION is a function value.

ARGUMENTS:
    x -- X has to be an integer or string (integer! string!)
 
brainfucked for now
brb/bbl
 
@kaᵠ Well like I say, we're around. Mostly discussing politics. Please come back!
 
3:23 PM
back
practically Rebol is a loosely typed lang
 
00:00 - 16:0016:00 - 00:00

« first day (911 days earlier)      last day (2869 days later) »