« first day (1206 days earlier)      last day (2574 days later) » 

4:09 AM
We need to find a way to consolidate the forks into Rebol master. You can't do a GUI build right now from GitHub rebol/rebol, so I don't see the harm in stepping up the game so that you can do make make OS_ID=... GUI=1 or whatever right from there. It doesn't matter if the code is perfect, because something is better than nothing... and as long as you can do a build without it then nothing is lost.
Kudos to Atronix for publishing the source 1 day after binary announcement. That's all the LGPL would have asked them to do, anyway.
I'm assuming that we're getting basically the latest Saphirion code by proxy.
 
4:42 AM
Has Rebol ever considered implementing a Copy-On-Write strategy? e.g. when a series is asked to be copied, a placeholder is kept pointing to the original series, and the actual copy is only made when a modification happens?
typedef struct rebol_series {
	REBYTE *data;
	REBCNT tail;
	REBCNT rest;
	REBINT info;
	REBCNT size; // Temp - size of image w/h
	// OPTIONAL Extensions
} REBSER;
 
@Respectech, I've had ARM/Linux compiled the other day, but it had some bugs there, and I've never had time to fix them.
I may take another look when I get time
@HostileFork, It would be nice if we can have a copy-on-write series
 
@ShixinZeng It might be possible to do it without changing the size of REBSER or adding any sidestructures... if the tail/rest were exploited to make another pointer.
You need to have some way of a write to any not-actually-copied clone to get the real data and unlink from the clone chain. And you need a way for a write to the original data to find all the clones and update them to point to one of the clones with the actual data. Some equivalent to that.
Can't build that data structure without another pointer, haven't off the top of my head got a complete solution in mind... but if the clones (who don't need data, tail, rest, size) could chew out another pointer of that, I think it could be done.
(In the that's-a-tautology department: a read of a not-actually-copied clone needs to be able to get the real data.)
 
5:20 AM
Like a promise?
 
@johnk I guess, but the method has its own name, specifically tied to taking action on a write.
 
@johnk My recollection is that we didn't have the source to saphir at that time.
@ShixinZeng Yes, I was working with Cyphre to try and figure out which errors were due to a change in the GUI syntax, or due to bugs in r3-gui. I think most were the latter.
 
5:36 AM
@grahamchiu I'll have a play later if I have time
 
@johnk Are there non-gui linux builds? A gui version might cause an issue??
 
It doesn't look like it. I'll give it a bit of a test first to check for any issues. Anything in particular that you think I should look for?
 
@ShixinZeng If you can find an RT version of r3/view, then you will be able to see the demo that Carl coded as it is supposed to be working.
@johnk Just that it might look for gui libraries which might not be there ....
And did the Altme mirroring ever happen? I haven't been on Altme for the same time I was away from here ...
 
We have rebol/view 2 running there so hopefully everything is present and correct
 
ahh ... yes, because you got the altme client working
 
5:46 AM
Altme mirroring keeps falling off my radar :-/
The client is stable at least. It has been running since the start of Jan on ec2
 
Wasn't it just get the client running, and then publish the public rooms using existing scripts?
 
Where are the existing scripts?
 
@johnk If you're already running the client on EC2, I can slap a front-end on it?
 
@johnk I think Sunanda had some
so it should just be a cgi script
 
Should still be up and running. It is just installed in home/ec2/altme
 
5:50 AM
I have code to mirror AltMe as well...
 
Were we going to get @rgchris 's web framework installed as well?
 
Need to get to a keyboard- this phone is good, but still so slow
 
I just don't run a client any longer :P
@GrahamChiu I believe it is installed...
 
@rgchris oh well, then we're nearly there !
once it's done, no need to be on anyone's radar
AFAIK, the mirroring on rebol.net has stopped??
 
Yes, and rebol.org as well.
 
5:52 AM
well, we need to fix this ... nice of you to volunteer :)
Where are your Altme publishing scripts?
 
Need to dig them out...
 
And presumably we can give you access to the ec2 server if you haven't got it already
 
@johnk are you using repositories to maintain code on the server?
I have the keys :)
 
easily arranged
the bot is a git repo, but other than that, no
 
No worries, just didn't want to write something that would be overwritten...
 
5:56 AM
I am backing it up over rsync in an adhoc way as well (but only certain directories)
Family duties, I'll be back later. I will write a wrapper script to keep altme alive as well in case it does stop for any reason.
 
Can the bot update the local scripts directly from the git repo yet?
( guess it needs https which we didnt have before )
 
6:22 AM
Jan 13 at 3:10, by johnk
I just found you can read scripts from github using http, not https. Just change the url from the https://raw2.github.com/... form to http://rawgithub.com/...
@GrahamChiu BTW --^
 
@HostileFork nice
 
6:57 AM
but it is not working now. The rawgithub site is not actually part of github and they seemed to have turned off http. Their main function is better headers I think
 
7:16 AM
Showing only [web public] groups or all but [web private] ?
(20 out of 95 groups are [web public])
 
only [web public] and [web-public]
I think that's what was happening before
 
7:34 AM
@RebolBot
code: [foo: [] append foo "bar"]
loop 5 code
probe code
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> code: [foo: [] append foo "bar"] loop 5 code probe code
[foo: ["bar" "bar" "bar" "bar" "bar"] append foo "bar"]
== [foo: ["bar" "bar" "bar" "bar" "bar"] append foo "bar"]
 
I don't think I'd quite absorbed the fact that the code itself would be modified in such cases :-/
 
It's not code what is modified, just the block that foo is referring to.
 
@GrahamChiu That gives you: rebol.info/altme — kind of a small subset of the 95...
 
@rgchris but that's all we had before
unless we ask people if we can make others public, but normally people won't grant retro permission to publish
because we have to ask each participant!
 
7:39 AM
Yikes. Darknet!
 
@rebolek I would disagree and say that the specification passed to code has been modified.
 
@GrahamChiu Hm, how does that work when a new user joins? Shouldn't they be excluded from all non-[web public] groups until everyone else approves their membership?
 
@rgchris That isn't required. I think the rules have sort of been created by concensus with time
 
@HostileFork I would disagree and say the the code you pass to Rebol interpreter may be definition, but once you pres ENTER it's not definition anymore but interpretation of inner state.
 
7:54 AM
@RebolBot
code: protect/deep [foo: [] append foo "bar"]
loop 5 code
probe code
 
; Brought to you by: tryrebol.esperconsultancy.nl
; rebol.com/r3/docs/errors/script-protected.html
>> code: protect/deep [foo: [] append foo "bar"] loop 5 code probe code
*** ERROR
** Script error: protected value or series - cannot modify
** Where: append loop
** Near: append foo "bar"
 
@rebolek Whatever you would call it, I would say that's not good ergonomics.
 
@HostileFork Well, that's your opinion.
 
8:07 AM
Okay, who's ready to see something... interesting?
Show of hands?
@GrahamChiu? @rgchris? @rebolek? @johnk?
Check that out.
 
what is this 'static ??
 
static: func [
	{Passthru a series value to avoid literal assignment copy default semantics}
	value [any-string! block!]
] [
	value
]
@GrahamChiu That's it. :-)
 
@HostileFork this is your custom R3 build?
 
@rebolek Yes, it's a very small patch in c-do.c
I was trying to answer @giuliolunati's question of why you couldn't do this, and I said it was because the evaluator couldn't tell the difference between when a set-word got a literal or the result of a function. Then I stopped and thought "wait, yes it can"
It just doesn't at the moment. It calls the Do_Next to evaluate the expression and puts the result. But it could--I reasoned--sniff the first thing that follows to see if it was a string literal or a block literal
If it's a block literal, copy/deep. If it's a string literal, copy it. Anything else call the evaluator
Hence, the way to avoid copies is just don't put it directly as a literal.
One could finesse the call to static in the evaluator by making STATIC native, then having the Do_Next check before calling a function to see if it's still pointing to the rebnative. If so don't call anything...just grab the next value.
This still means that if you wrote:
>> code: [foo: static [] append foo "bar"] loop 5 code probe code
[foo: static ["bar" "bar" "bar" "bar" "bar"] append foo "bar"]
So that's what I was irritated about.
I haven't completely thought through the ramifications, I just wanted to see if it would run. It so happens that nothing in the boot code cares whether you copy by default or don't; the boot code isn't written to use that assumption.
 
8:27 AM
So now it always copies? I don't find that very efficient.
 
@rebolek That's why I was suggesting copy-on-write.
Which would be a system-global-efficiency improvement.
You don't worry how much a copy costs if you don't do the copy until a write happens.
But having not written that bit yet, yes, it is copying any time something follows a set-word unless you say "static"
In which case, no copy is made.
I'd rather see copy-on-write than see paranoid people putting static all over the place when they don't really need it for semantic reasons.
So now I'll think about how to do that.
 
You're messin' with nature, man!
@GrahamChiu @johnk Ok, will show the last seven days of messages: rebol.info/altme
 
This makes static become a "nuanced" thing... kind of like how function is nuanced because it's built on top of the basic parts while not being foundational. There's no free lunch to be had, but, the hope (of function...and this) is to push the "WTF?" moments and accidents more into the zone of what an expert will encounter, as with people who would ask hey, wait, why did my code get changed to [foo: static ["bar" "bar" "bar" "bar" "bar"] append foo "bar"]
 
I just hope we don't end up with x: public static void [] :P
 
@rgchris nice!
 
8:35 AM
@johnk Drop me a message on Skype and I'll explain how I set up a repo to manage that folder...
 
If anyone has a better name than static, fine... I just don't know any other popular words for that.
 
@GrahamChiu Been a while since I worked with that template, could use a little cleaning up...
 
trying it on my phone now
 
Naming it what it does (passthru) was one thought I had, but I decided that would look weird. I also felt like it is misleading to allow non-block and non-any-string parameters to be put in these kinds of slots, as they can't be treated this way. A narrow function that only applies it to types that can handle it seemed better.
 
@GrahamChiu Might be a little too wide.
 
8:38 AM
Looks ok using landscape mode :)
 
Because parens are evaluated, you simply can't use them, and if you quote them they will always be effectively static. So if you want copy semantics you have to do copy quote ().
 
@GrahamChiu And really need to build static pages to do message counts, pagination, order-by-last-message, etc. Be too much loading per request otherwise.
 
Same with quoted paths, as they are evaluated. This is "set-word assignments copy non-evaluated literal series by default"
 
@rgchris and permalinks
 
@GrahamChiu Yep—and at that, should probably try to support current rebol.org-style permalinks, though that might be a PITA.
Or just archive it like SO Chat—by day/week...
 
8:47 AM
and still make it easy enough for googlebot
to index
some of the groups are empty
are you posting by date?
only the top 3 have any messages
looks like I haven't missed much then
so, any point in turning these into feeds, and subscribe announce to here?
 
Good morning!
 
That way there'd be no need to post here and in altme announce
it'll be done automatically
 
9:04 AM
@gwailo59 (catching up unread messages from a long time: I just came back from a mission in Amazonia) Yes, I always smile when I look at my GPS's screen mentioning "ETA"... For your information, ETA means "Euskadi Ta Askatasuna" in Bask, which translates to "Bask Country And Freedom". And it is an organisation aiming at freeing Bask Country from France and Spain (temporary) administrations...
 
9:47 AM
@GrahamChiu Yes, limited to 7 days for now.
@GrahamChiu Or can create a Feed based on the Announce group.
@GrahamChiu Switched to show the last few messages.
 
10:03 AM
rjv, India
1.6k 6 20
Welcome to the Rebol and Red room. See our FAQ. Cool, you have a reputation score of 1594 so chat away!
 
rjv
hi
just saw the red-lang GSoC ideas page
I feel "Implement Working FreeBSD Build Target" to be quite interesting
I am comfortable with systems programming upon Linux,but have to start from scratch upon FreeBSD.
Do I fit in,if I have a steep learning curve?
 
@rjv Hello rjv! Well, we have no idea what our chances are of becoming a mentoring organization...we'll find out in a week. But we definitely appreciate help and interest wherever it comes from despite that. Did you get a chance to learn a bit about Red and what we're doing?
 
rjv
I have gone through the website as the prelimanry step
 
@rjv Well definitely if you have a chance to watch the video "What is Red" that is a good one to give you an overview. But knowing a little Rebol is helpful as well. We have a RebolBot and a RedBot here to show some basics...
@RebolBot
print [{If you use shift-enter, you can type Rebol code to me,} (reverse {vjr@})]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print [{If you use shift-enter, you can type Rebol code to me,} (reverse "vjr@")]
If you use shift-enter, you can type Rebol code to me, @rjv
 
rjv
10:13 AM
From what I have found,I know that this is a Functional programming language,and I have been using Clisp lately
 
Well, we prefer to say it is "paradigm neutral"... because it supports a number of different styles. You get to pick. But if you know Lisp, you may find it very interesting...
@RebolBot
code: [print 1 + 2]
print [{Length of code in symbols is:} length? code]
foreach elem code [
    print [{Type of symbol} mold elem {is} mold type? elem]
]
print {About to run...}
do code
append code [+ 3]
print [{New length of code in symbols is:} length? code]
print {Running again...}
do code
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> code: [print 1 + 2] print ["Length of code in symbols is:" length? code] foreach elem code [print ["Type of symbol" mold elem "is" mold type? elem]] print "About to run..." do code append code [+ 3] print ["New length of code in symbols is:" length? code] print "Running again..." do code
Length of code in symbols is: 4
Type of symbol print is word!
Type of symbol 1 is integer!
Type of symbol + is word!
Type of symbol 2 is integer!
About to run...
 
rjv
hmm,,,I will give it a try and get back for sure :)
 
@rvj So given what you know of Lisp, you can see what is happening there. But it is much more elegant. It really goes very far into some amazing things...
Red is like Rebol, but it is going to be mostly compiled (while still being able to do dynamic behaviors like this when needed, with an embedded interpreter and JIT compilation). Because it compiles the programs will be faster. And it's compiling without needing any toolchain like the JDK or GCC, to many platforms including Android. All while keeping the whole compiler as one executable less than a megabyte in size.
 
rjv
yeah,I get what the code means...I also get that like Lisp it follows the Program as data thing,if I am not wrong,
 
10:28 AM
@rjv Yes, though a very central notion is that there are more "bricks in the box" than Lisp has. Lisp is just lots of parentheses, you find yourself wishing for more symbol types...
@RebolBot
copy/part (to string! read hostilefork.com) 80
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> copy/part (to string! read hostilefork.com) 80
== {<!doctype html>
<html lang=en>
<head>
^-<meta charset=utf-8>
^-<meta name="google-}
 
@RebolBot
12-Dec-2012 + 60
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> 12-Dec-2012 + 60
== 10-Feb-2013
 
@RebolBot
type? <div>
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> type? <div>
== tag!
 
10:30 AM
@rjv Because there are all these rich types, you can make functions polymorphic with respect to them. For instance, there you see the READ being able to tell you passed in a URL! (it recognizes things that start with foo:// patterns as URL). It acts like a string, but it's a string with a special type. Same with tags, if something looks like <foo> it is a string but different from "<foo>".
 
rjv
that was a good one for sure :)
just tried it on the tryrebol to check if its true :P
 
@RebolBot
parse "How cool is [Rebol]?  It is very cool..." [
    thru "["
    copy bracketed to "]"
]
print bracketed
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> parse "How cool is [Rebol]?  It is very cool..." [thru "[" copy bracketed to "]"] print bracketed
Rebol
 
There you see something that looks kind of like what you can do in Lisp. PARSE looks at the block you give it and uses it as a "dialect" to describe how to match things. There is a parse position starting at the beginning. Then we seek THRU the "[" so we are sitting in front of the R in Rebol. Then we copy TO the "]" so we are right after the l. Make sense?
@rjv As a quick variation can you use those same instructions to try and get the brackets too, so it will print "[Rebol]"?
 
rjv
will try
 
10:35 AM
@rjv If you want RebolBot to do code for you, use SHIFT-ENTER to get a newline after you say @RebolBot on the first line...then type your code. There is a "fixed font" button that will appear after you push shift-enter so the chat will obey your spaces for indentation.
 
rjv
parse "How cool is [Rebol]? It is very cool..." [thru "s " copy bracketed to "?"] print bracketed
 
@RebolBot delete
 
rjv
parse "How cool is [Rebol]?  It is very cool..." [thru "s " copy bracketed to "?"] print bracketed
 
@RebolBot
parse "How cool is [Rebol]? It is very cool..." [
    to "["
    copy bracketed thru "]"
]
print bracketed
 
; Brought to you by: tryrebol.esperconsultancy.nl
; rebol.com/r3/docs/errors/script-no-value.html
>> RebolBot parse "How cool is [Rebol]? It is very cool..." [to "[" copy bracketed thru "]"] print bracketed
*** ERROR
** Script error: RebolBot has no value
** Where:
** Near: try load/all join %/users/try-REBOL/data/ system/script/args...
; Brought to you by: tryrebol.esperconsultancy.nl
>> parse "How cool is [Rebol]? It is very cool..." [to "[" copy bracketed thru "]"] print bracketed
[Rebol]
 
10:37 AM
Oh, RebolBot, sounds like you are depressed. :-)
@rjv Anyway, you see after I fixed it that it seeks up TO the bracket so it is sitting before the bracket before it starts the copy. Then it copies THRU the ending bracket so it includes it. Does that make sense?
 
rjv
well well, i dint get that
hmm...gotta get used to that :)
 
@RebolBot
parse "How cool are [Rebol] and [Red]?  Very cool!" [
    some [
        thru "["
        copy bracketed to "]"
        (print bracketed)
     ]
     to end
]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> parse "How cool are [Rebol] and [Red]?  Very cool!" [some [thru "[" copy bracketed to "]" (print bracketed)] to end]
Rebol
Red
== true
 
@rjv Now look at that. Anything that it finds in parentheses as code it runs when the rule matches. So we match SOME number of times (one or more) the pattern we used before, and it is printing out the things it finds in brackets. Pretty cool huh?
We think Regular expressions are very, very, ugly. :-)
But the point is that instead of just having parentheses blocks, we have square-bracket blocks and parentheses blocks. You can still do the same kinds of things you could do in Lisp, but you'd have to say something like (some (thru "[" copy bracketed to "]" code (print bracketed)) to end)
 
rjv
:)
 
10:43 AM
But that's just the tip of the iceberg that you have two different kinds of blocks to use, where the brace and parentheses matching are all taken care of for you...
 
rjv
anyway,I like it overall
Cant say more until I get to using it the way I use lisp
 
@rjv Well it does many fun things, and Rebol is only half a megabyte... no installation dependencies, just one file. It is a whole different way of thinking of fighting unnecessary complexity; bringing "art" back to programming the way us old-timers remember it :-)
To contribute to Red one has to learn some Rebol first and get one's head around what it is and why it is the way it is. Because Red as a language is almost identical on the surface.
 
rjv
i just cloned down the red repo
why isnt the installer/executable packaged with it?or just use the rebol executable?
 
@rjv Since Red is written in Rebol (version 2, currently) it will probably make you scratch your head quite a bit to understand it! It's possibly easier to get started with hacking on Rebol because it is written in C.
 
rjv
yeah...got it
 
10:51 AM
@rjv The downloads page for Red has a packaged binary, but the tool for taking a lot of scripts and binding them with a Rebol version 2 interpreter to make a single EXE is not publicly available. So that means that if you're working on Red you need a Rebol version 2 interpreter. It works the same way, you will just be running using Rebol on a lot of files instead of one.
We're looking to get a Rebol 3 open source packer written (we call it "encapping" when scripts and resources are bundled with the interpeter).
@rjv I don't want to discourage anyone from approaching and tinkering with code in whatever way they find interesting... we are looking to outreach and have people raise questions and get involved. Yet I repeatedly urge new people that the best way to get "into the mindset" of the projects is to spend some time with Rebol first and get the hang of it. Maybe doing a little tool or task with it, and asking questions here on StackOverflow Q&A and chat. We help people very quickly get over bumps.
With Lisp experience you will have an easier time than those who haven't seen a language working in this style.
 
rjv
yeah
can I have a sample tool that i can work on?
on rebol?
or red maybe?
 
@user2740048 Looking better now?
 
@rjv It's a good question; I'm not sure there are a whole lot of existing projects that beginner contributions to can be done easily. It might be fun to set up your own RebolBot variant and maybe invent new features for it.
The best thing is maybe if you have some task you want to do... data processing, where you have input files you want to process to output.
 
https://github.com/red/red/pull/685
GitHub
Red Pull—Android
RaazTripathi
1392699357
 
@user2740048 Greetings, Nick welcome! If you would like to set your user info and avatar: Look here
@rjv Another possibility would be maybe rewriting some little thing you have made... a utility... and seeing how doing it in Rebol would be different. Or maybe an assignment from class, something in Lisp? It is educational.
 
rjv
11:03 AM
I just checkout codechef.com but the pair of langagues are not supported :)
i have the set of problems which i can convert to rebol
 
@rjv Hm, that looks cool. Haven't used it. Wonder how we get on it?
@rjv You might also attack something from the programming puzzles and code golf site.
 
rjv
i guess you will have to get to the admins by mail,requesting them to add the langague
 
You could try scraping a few web pages—I've been known to scrape soccer scores to make pretty charts!
 
rjv
thats a good one :)
 
(though I don't usually call them pretty when I share them...)
 
rjv
11:08 AM
people called me mad when i called lisp code beautiful..
 
Very easy way to get acquainted with parse and series—two of Rebol's most endearing features...
 
@rjv Rebol is a lot prettier than Lisp! This is a very elegant RSS feed maker that Chris made, and I think it's a good example of how nicely Rebol can read. It has a "words separated by spaces" aesthetic, like ordinary writing... reb4.me/cc?s=http%3A//reb4.me/r/x/so-rebol-answers.r
 
@rgchris excellent work on the altme reflector. How did you do that so fast!?
 
@rjv If you've heard of JSON or JSLint then you know of one of Rebol's early fans, Douglas Crockford. He said this:
"Rebol's a more modern language, but with some very similar ideas to Lisp, in that it's all built upon a representation of data which is then executable as programs. But it's a much richer thing syntactically. Rebol is a brilliant language, and it's a shame it's not more popular, because it deserves to be."
 
rjv
:)
I guess I will mail to codechef asking to add it to the list
 
11:14 AM
@rgchris will have to raincheck that Skype re managing repos. - but another time soon definitely
 
@johnk I had a wee bit of code stashed for purpose in reserve, just knitted it together.
 
@rjv That would be nice, though maybe we should be tactical and look a little into their requirements and how the system works. Give me a chance to sign up for it and learn a little about it and if there's something we have to do to fit in with them first...
It's easier if your first contact has a "here is what you want, the way you want it" vs. making them do research
 
Hi Fellas, trying to find my way around here...
2
 
@johnk No worries, just a matter of applying Git to a mirror of that folder—works fairly well.
 
Welcome to the Rebol and Red room. See our FAQ. Cool, you have a reputation score of 41 so chat away!
 
rjv
11:15 AM
yeah,better have a commiter do the talking
 
@NickA Quick and easy firsts... if you're in a non-mobile browser, then up arrow lets you edit your last post for 2 minutes. The system supports a subset of markdown, so if you want to put something in bold you use **bold**. If you want italics you use *italics*. If you want a link like this then you write [a link like this](http://hostilefork.com)
 
Welcome @rjv @use2740048 and @nicka :-) nice to have so many new visitors here
 
rjv
hi @johnk
 
@rjv Notice my comment above about the editability of chat posts. :-)
 
I agree, lisp can be beautiful. Nothing odd about that
 
11:19 AM
@NickA also interesting is that you can reply to a specific chat message with the little reply arrow you get when you hover over what someone else has written. That's also where you get a star to "vote" something as noteworthy.
4 mins ago, by NickA
Hi Fellas, trying to find my way around here...
Chat messages are permalinkable as well. If you hover and use the little triangle menu on the left, you get a "permalink" option. In the post above, I just pasted the permalink on a line by itself (http://chat.stackoverflow.com/transcript/message/14778009#14778009) and it rendered it. This is called "oneboxing"
Many other things are oneboxed, like questions and answers, if you post their links. Also Wikipedia pages, Trello cards, images, etc.
2
A: Very simple example about a button in Android?

NickAThe easiest way to make a button, or any other Android GUI is with REBOL 3: REBOL [] load-gui view [button "Click Me" on-action [request "" "Clicked!"]] That's a fully functioning GUI program, with all the power of the core REBOL language available to do networking, list processing, text par...

That's just me posting http://stackoverflow.com/questions/13224554/very-simple-example-about-a-button-‌​in-android/18579294#18579294
 
@HostileFork Thank you :)
 
@RebolBot
print [{And if you want to talk to me, the RebolBot, address me first on a line by itself, then use SHIFT-ENTER for your lines of code,} (reverse "AkciN@")]
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> print [{And if you want to talk to me, the RebolBot, address me first on a line by itself, then use SHIFT-ENTER for your lines of code,} (reverse "AkciN@")]
And if you want to talk to me, the RebolBot, address me first on a line by itself, then use SHIFT-ENTER for your lines of code, @NickA
 
@rjv Rebol's also great for metadata 'glue' projects—this is a distributed desktop made up of small Rebol files stored on a multitude of web sites: desktop.rebol.info
 
rjv
11:42 AM
red>> read "http://www.google.com/"
*** Error: word has no value!
== "http://www.google.com/"
why does this happen?
red-041
 
@rjv Well, Red is in its early stages of development. The underlying C-like "dialect" called Red/System has been used for various things, but Red has a while to go before it has the implementation of everything like in Rebol. In fact, the HTTP and HTTPS implementation is one of the GSoC ideas.
It's telling you it doesn't know what READ is, because Red doesn't have it yet. That's why we need developers. :-)
But even in Rebol, that would not work, because you are passing a string. READ doesn't know what to do with an ordinary string type. It does know what to do with URL! and FILE!.
So you would have to type read http://www.google.com
But building further on that, Google actually redirects requests for HTTP to HTTPS now. All searches are served with HTTPS. And the version of Rebol you get from rebolsource.net does not do HTTPS yet, though it should do so soon. There are variants available elsewhere that support HTTPS on Linux and Android but they don't have OS/X builds yet (for instance).
 
@rjv this works in tyrebol as a binding has been written to curl and it is pre-loaded on the try rebol site
 
rjv
yeah..tryrebol confused me
 
5
Q: How do I use the Red cURL binding?

redbotI am just getting started with Red and I need help to get the cURL binding working. The cURL link from the main red-lang site takes you here http://red.esperconsultancy.nl/Red-cURL/dir?ci=tip But there is only a small example using Red/System hence I am not sure how to load the binding in Red ...

 
rjv
it said red 0.41 and it did not work for me
 
11:46 AM
@RedBot
copy/part (to string! read hostilefork.com) 80
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> copy/part (to string! read hostilefork.com) 80
*** Error: word has no value!

*** Script error: action 7 not defined for type: 18
 
@redbot do copy/part read "http://hostilefork.com" 80
 
; Brought to you by: tryrebol.esperconsultancy.nl
>> copy/part read "http://hostilefork.com" 80
== {<!doctype html>^/<html lang=en>^/<head>^/^-<meta charset=utf-8>^/^-<meta name="google-}
 
@johnk Hmm. I guess URL! and BINARY! not implemented yet?
 
no date or time as well, but it will get there
I have been running my test rebolbot through a few tests in another room and the atronix build looks good
Shall we risk switching it now (just before I hit the sack)?
 
11:53 AM
@johnk No rush, I'm about to head out too... we can look at it when you're around next. Nite!
@rjv Again, why we need more developers! :-) So for now if you see Red doing something differently from Rebol it's probably just because that thing hasn't been implemented yet. This example of having to put the url in a string in Red for now is just a temporary measure until the URL! string subclass is made.
As mentioned, we're taking off for a bit, but please feel free to come back with any questions. If you try to rewrite some old class exercise in Rebol that could be very interesting; I think you might find a new language you think is more beautiful than Lisp. :-)
Nite!
 
rjv
i get it...
 
We can re-enable the tweet command with the atronic build with the addition of a single "s" char to the config file
 
rjv
see you around :) nite :)
 
@rjv g'night
 
12:26 PM
@johnk this is the script that builds the console with extra features: red.esperconsultancy.nl/Red-common/artifact/…
Regarding binary if needed:
0
Q: How to represent a hex string in Red/System?

kealistHow would one represent a literal string of binary data in hex in Red/System? It's not possible to do this: blah: #{F0909090F02060202070F010F080F0F010F010F09090F01010F080F010F0F080F090F0F010204040F090F090F0F090F010F0F090F09090E090E090E0F0808080F0E0909090E0F080F080F0F080F08080}

 
12:54 PM
Is there a Matrix of Red / Rebol2 / Rebol3 / Rebol3/Saphirion / Rebol3/Atronix functionalities? For exemple, I/O not supported in Red. Proxy not supported in Rebol3, either https...
 
@gwailo59 It would be nice if someone could maintain such information updated. Github's wiki could be used for that.
 
1:33 PM
0
Q: Download message from gmail mailbox with REBOL

Ilia IlievI try to make small mailbox with REBOL, but I cannot connect with my gmail account, because pop server is on the port 995. $ pop: open/lines ssl://pop.gmail.com:995 $ set-modes pop [secure: true] $ pick pop 1 == none

 
1:58 PM
Welcome to the Rebol and Red room. See our FAQ. Cool, you have a reputation score of 296 so chat away!
 
 
3 hours later…
5:18 PM
@HostileFork the main problem with Copy-On-Write for Rebol is that most of Rebol's current efficiency depends on its code being based on series modification. Now keep in mind, this has historically been a major advantage, even with the occasional learning curve. However, with the prospect of multithreading in the form of a task type, we end up with the problem of shared modifiable data, so we need to consider this kind of thing.
Your STATIC function sounds a lot like PROTECT.
 
5:32 PM
Ruby has been working on this problem for their 2.1 version, though given their semantics they've been approaching it from the other direction. They already had some copy-on-write semantics, but mostly were just copying when they used string literals. It made their performance terrible, as you'd expect.
I've been looking into what they've been doing to solve that, because something like that internally might be useful to Rebol as well, when we've already got the performance from not copying at all except explicitly, but could use some convenience and concurrency tweaks. The trick is to find the appropriate semantic model.
 
5:45 PM
That "Download message from gmail mailbox with REBOL" is using REBOL/Command. Can someone who has access to that at the moment answer? Mine is at home, haven't installed it on my work Windows VM yet (appreciate the reminder though).
 
6:00 PM
0
A: How to download a email from gmail

sqlabThe pop scheme does not support ssl. You could try to write your own pop scheme with ssl. I guess Graham Chiu did that once Downloading mail from hotmail

 
I haven't tried to download email from Gmail yet, so I cannot answer it, but I can confirm that it's possible to send mail thru Gmail using @GrahamChiu's SMTP scheme with just two small changes (tcp->tls and port number)
 
6:18 PM
0
A: How to download a email from gmail

Graham ChiuSee http://re-bol.com/prot-spop.r for the spop protocol for rebol/command. I also have a version for Rebol3 somewhere. R3 from Saphir/Atronix has https.

 
 
2 hours later…
8:16 PM
@Rebolbot Douglas Crowford quote
 
@DocKimbel Please continue.
 
@Rebolbot Douglas Crockford quote
 
@DocKimbel That's very interesting.
 
(--)'
 
8:32 PM
@RebolBot find crockford
 
@rgchris Thanks!
 
 
3 hours later…
11:25 PM
Any thoughts on a pair of neutral words to stand in for [ ] in a preprocessing dialect? As an example, Ruby uses do ... end which for obvious reasons aren't the best choice in Rebol.
 
11:42 PM
You could go old-school and use begin ... end.
 

« first day (1206 days earlier)      last day (2574 days later) »