AltME: RebolBot

Messages

GrahamC
If you have bug reports or suggestions on improving the SO chat bot .. here's a good place if not on chat itself !
Sunanda
Do you still have Eliza somewhere? Could you pass things RebolBot can't understand to her?
GrahamC
I could but I would think that would disrupt the development discussions

GrahamC
I wonder if there's any point in have a Rebol2 interpreter online as well to compare differences .. most of the newbies are downloading R2
Kaj
It's there; you can use it straight away
AdrianS
It's a good idea to have R2 evaluation as well, but I would default to R3 .
Wouldn't the issues on GitHub be a better place for suggestions or improvements. RebolBot issues could be prefixed with [RebolBot][wish/bug/etc]
GrahamC
not everyone has a github account .. so those that don't can post here.
AdrianS
You're right, but it should probably still the the official place to track issue, no? I mean as opposed to this being the place. I would hope that non-Rebol (and maybe non-dev) people take some interest in the bot and I don't know how much sense it would make to have them come here to log issues or feature requests.
DocKimbel
Graham: if you would make backends for other languages (using http://repl.it to run the code), you could easily sell it to other SO chat rooms. ;-)
GrahamC
Interesting idea :)
ok, got rebol2 up and running as well
do => rebol3
do/2 => rebol2
Kaj
REPL.it runs client side in JavaScript, so no dice
DocKimbel
Forgot about that. Anyway most of mainstream scripting languages have a web-based console available.
Kaj
And a remote API?
GrahamC
I'm waiting for do/red ...
DocKimbel
Most don't have an API, but usually, you can hook to their JS API.
JS API: I mean their server-side API used by JS.
do/red: me too. :)
Kaj
Easy, easy, spent all week setting up an environment for fixing the exising networking examples on Windows
DocKimbel
Kaj: what feature is missing to make a TryRed?
Kaj
48 hours in a day?
GrahamC
that's 2 days
Kaj
Yes, that's the problem :-)
If you want a missing feature in Red, that would be the lexer, currently without paths and refinements
GrahamC
ok, what is missing from red what would prevent this being implemented
Kaj
See, still ahead of you ;-)
GrahamC
yeah .. I was sipping hot tea!
DocKimbel
I plan to work on it tomorrow. The Unicode version is far from being ready, but I should be able to hack the current one to add refinements and paths support.
GrahamC
I think this is a fantastic way to teach things ... a shared multiline repl
Kaj
While I sleep you could implement Boron, or play with the Red browser
GrahamC
well, boron is what .. do/3 ?
or do/boron do/rebol2 do/red ?
Kaj
I guess
What's the chemical notation?
GrahamC
bo ?
Kaj
:-)
So DO and BO
GrahamC
do/13 for Boron
ooops do/5
Kaj
I think that only works in Red, refinements starting with a number :-)
GrahamC
atomic number 5, group 13
AdrianS
don't know if youg guys have seen this multi-language site:
http://ideone.com/
DocKimbel
Kaj: you mean from the console?
GrahamC
do/255.0.0  ?
DocKimbel
do/ff0000
Ideone has an API: http://ideone.com/api
Kaj
Didn't you allow refinements to start with a digit?
GrahamC
Interesting ...
DocKimbel
Kaj: yes...misunderstood your message. :)
Kaj
Graham, how does this compare to my API?
GrahamC
:)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://ideone.com/api/1/service"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<i:createSubmission xmlns:i="http://ideone.com/api/1/service">
<http://ideone.com/api/1/service xsi:type="xsd:string">{$one}</http://ideone.com/api/1/service>
<pass xsi:type="xsd:string">{$two}</pass>
<sourceCode xsi:type="xsd:string">{$three}</sourceCode>
<language xsi:type="xsd:int">{$four}</language>
<input xsi:type="xsd:string">{$five}</input>
<run xsi:type="xsd:boolean">{$six}</run>
<private xsi:type="xsd:boolean">{$seven}</private>
</i:createSubmission></SOAP-ENV:Body></SOAP-ENV:Envelope>
That's according to my very old Soap discovery service at http://compkarori.com/soap/index.shtml
Kaj
Adrian, I saw that site some time ago
I could duplicate a big part of it with Syllable Server and Try REBOL
AdrianS
Would it be worth it for you to do so?
Maybe to avoid using SOAP...
Kaj
I guess I don't have much reason to go beyond REBOL
AdrianS
I wonder if the site is bringing ideone any revenue.
Kaj
It's a good publicity device. If I have anything to sell I could consider it
AdrianS
Graham, you still don't mention the license on either stackapps or GitHub.
I'll re-work the description on stackapps according to the template they suggest. What should I put the license as?
GrahamC
Apache2
same as rebol3 I guess
GrahamC
Ok, Boron is up and running
Kaj
Cool
GrahamC
we got visitors .. anyone want to chat to them?
Kaj
I really need to sleep
GrahamC
what's the boron version command
Kaj
I don't think there is one. There's no system object
I have to update it manually in the HTML template
Although you could get it from starting the interpreter, or boron -h
GrahamC
ok, no command to test then thru the web
this is returning none
birthday: 4-Jul-1787
print now/year - birthday/year + pick [ 1 0 ] found? all [now/month >= birthday/month now/day >= birthday/day]
console gives me
>> print now/year - birthday/year + pick [ 1 0 ] found? all [now/month >= birthday/month now/day >= birthday/day]
226
AdrianS
did you mention the error anorton got, Graham?
with sum: func [a b] [ a + b ]
GrahamC
No .. that too.  define a function and do nothing with it .. gives an error
AdrianS
Kaj, can the Rebol you've got running behind TryRebol generate images programatically? i.e. are the appropriate graphics libs available to it? If not, would it be a problem to run one that is set up for this?
Kaj
Graham, there seems to be an evaluation problem. I'll look into it
Adrian, in principle, Syllable Server is running Core. It is actually a Syllable Workstation installation, so it could run View. I don't remember if that could do images without X running
However, why would you need to generate images on Try REBOL? That sounds like something that is too heavy for what it's meant for
DocKimbel
Kaj: IIRC, it is possible with /Pro of /Command with just X libs installed (no running X server).
Kaj
OK, I would have guessed that, too
It would have to work with View, though
AdrianS
Kaj, it is just about showing people how easy it is to work with images. What I had in mind was to generate a small image (say a 'custom' avatar) with a few lines of Rebol, upload to imgur.com or imm.io, and return the URL to the image to RebolBot. It seems possible from the brief experiment I did.
If you think this is heavy use, still, I understand.
Kaj
Try REBOL will tell you: if it takes too much time or memory, you'll be interrupted
If the upload API to those services is doable in small examples, I guess it could be useful
However, in general when you do such things, you have to supply credentials to a service, and that's not something you should do in a chat
Also, the bot currently doesn't seem to deal well with the Try REBOL service not responding, so you may want to avoid those situations
GrahamC
Why is this happening?
I'd like to know how a http error escapes the attempt block
or maybe it's my error ... somewhere
Kaj
It sounds odd. The Try REBOL process is simply killed by Linux, so you're probably dealing with an incomplete HTTP request/response cycle
GrahamC
I've had http errors too when I've used the web interface
not offten ... and just print system/version
AdrianS
The attempt to create a small image on your server, good enough for an avatar image, for example, was OK. Also, it seems that for sites like imgur.com and imm.io you can upload without credentials.
Kaj
That would be OK then

GrahamC
rebolbot might have to use rebol2 to run as I'm getting too many odd behaviours with rebol3
Kaj
I have it performing quite well building websites, but not as a long-running process, nor doing network I/O
I did come across a series of debilitating bugs while developing the Red bridge
GrahamC
is anyone running a rebol3 long running process?
Kaj
Carl, sometimes
BrianH
I have, but there are some bugs (like one Fork found) that can trip things up in some cases. Fork's bug is on my todo list.
Forks bug causes crashes when you do a lot of object allocation sometimes, even the internal objects allocated by binding loops.
At least I think so. I have code that can predictably crash R3 that I think might be related to Fork's crashes, but I don't have Fork's crashing code so I can't test it. But I do have my crashing code and know how to fix his bug, so I'm hoping that will make my crash go away too. If it does I'll let you know so you can include it in RebolBot.

GrahamC
Have the bot making soap calls to ideone to evaluate forth, javascript, ruby and scheme
GrahamC
Plugged in Martin Johannesson's shrink script ... note that "Appologies" is mispelled in the script
AdrianS
found another multi language trial site - http://liveworkspace.org
GrahamC
heaps of them !
Kaj
Nice cracking targets for Sunanda :-)
Sunanda
Must......try......to......be.......goood.........

rebolbot
rebolbot
Geomol
Too low activity?
rebolbot
Yes, I'm trying to get a copy running on ec2 as Graham wated to be able to show some altme msgs on the rebol.info site.
I'm not sure of what his exact plans were, but I am just trying to get started by running altme under Xvfb (currently without much success)
(note I am johnk not rebolbot - our upgrades haven't progressed to a fully aware AI yet :-)

GrahamC
The main reason is so that we can have up to date feeds of the web-public feeds.  But also to cross post announcments to the SO chat room

rebolbot

rebolbot
..
rebolbot
...

GrahamC
Since try.Rebol has disappeared and doesn't look like it's coming back we have to offer another eval service for rebol2, 3 and red
I doubt we'd be doing boron .. unless Karl writes to us asking for it.
Anyway, here's a provisional eval script I've written ... so can anyone see issues with it?  I've tried to put the CGI script inside a jail, and we'll only let priviledged users use it so  that Sunanda can't take it down!
Adapt allows one to add a preamble to an existing function so I can the datatype and refuse file!
And hijack allows me to rewrite all previous of a function with a new function.
So, I could hijack 'print so that it sends out <br> instead of newlines
Arnold
I seriously doubt that Sunanda would even consider doing such a thing as to bring the bot down.
Not servicing Boron is fine with me, Kaj added it because it is open source, but I do not think anybody but Karl perhaps uses it..
Gregg
I think Graham meant Sunanda would be an effective attack...er, tester, not taking it down as an admin.
What do other "Try X" systems do. They must have the same problems.
Arnold
right, that fits the image I have of Sunanda much better :)
GrahamC
@Arnold - scroll back to 9-Mar-2013!
BTW, if anyone on team Red can provide me with a safe Red eval script, then I can add it as one of the bot's targets.  Kaj I think used to use quite an old red version.
@Gregg I don't know what they do.  I have asked Kaj but there's been no response.  We do have an emscripten build of ren-c but it lacks async IO so that's our fall back position.

Gregg
Under *nix you can limit memory and runtime, which could probably also be done with containers.

GrahamC
Is there a way for red to run in a secure mode yet?

GrahamC
And rebolbot is back to being able to evaluate rebol2 expressions now

Gregg
No secure option in Red yet.

GrahamC
what about the secure options in rebol2 - can't they be propagated to Red?
Gregg
It requires new design work. I don't know if it will be part of 0.7.0 and I/O (https://trello.com/c/BW1SPeOU/48-i-o-support), but it may affect that design.

GrahamC
So, I guess it will all have to be done at the linux permissions level then

Last message posted 360 weeks ago.