[racket] Hosting the try-racket REPL.

From: Steve Graham (jsgrahamus at yahoo.com)
Date: Tue Sep 23 20:32:23 EDT 2014

Thanks.



________________________________
 From: J Arcane <jarcane at gmail.com>
To: Steve Graham <jsgrahamus at yahoo.com> 
Cc: Racket Users <users at racket-lang.org> 
Sent: Monday, September 22, 2014 9:35 PM
Subject: Re: [racket] Hosting the try-racket REPL.
 


It's a known issue. Alex Knauth has submitted a rough solution to my fork of it; I'll get it merged and pushed to the server shortly.


On Tue, Sep 23, 2014 at 12:11 AM, Steve Graham <jsgrahamus at yahoo.com> wrote:


>
>
>I get errors when trying to type in a multi-line function.  Am I doing something wrong?
>
>
>
>
>________________________________
> From: Jay McCarthy <jay.mccarthy at gmail.com>
>To: J Arcane <jarcane at gmail.com> 
>Cc: Racket Users <users at racket-lang.org>; Robby Findler <robby at eecs.northwestern.edu>; Marc Burns <m4burns at csclub.uwaterloo.ca> 
>Sent: Monday, September 22, 2014 12:05 PM
>Subject: Re: [racket] Hosting the try-racket REPL.
> 
>
>J and I chatted a little and he got his DNS working and also I added
>
>http://try.racket-lang.org/
>
>as an alias for it.
>
>In general, the Racket team is willing to give out subdomains of
>r-l.org for projects that would like them, so they don't have to buy
>their own DNS addresses. Just email the list or one of us directly to
>ask.
>
>Jay
>
>On Mon, Sep 22, 2014 at 1:17 AM, J Arcane <jarcane at gmail.com> wrote:
>> Hmm.
>>
>> Alright, replacing the calls to slideshow with calls directly to pict, as
>> well as commenting out the racket/gui/base calls successfully gets the code
>> to run without X.
>>
>> However, something about how it converts the picts for web isn't working, so
>> instead of a neat little circle, for instance, I get "(pict '(prog
>> #<procedure:... etc." instead.
>>
>> I suspect this is probably something to do with a difference in behavior in
>> how images are converted by the server, which does a convertible? test and
>> then runs:
>>  (run-code ev `(bytes-append
 #"data:image/png;base64,"
>>                          (base64-encode (convert ,res 'png-bytes) #"")))
>>
>> At an idiot's guess, something is different about how pict is making the
>> images, so convertible? is #f and the code just prints the (pict '(prog...
>> stuff.
>>
>> I've set up a fork here: https://github.com/jarcane/try-racket
>> I'm still working on getting the DNS set properly though, so no
>> try-racket.org yet; the servlet is public at http://104.131.18.192:8000/ but
>> I haven't figured out how to get try-racket.org to go there yet.
>>
>>
>> <robby at eecs.northwestern.edu> wrote:
>>>
>>> Maybe you can use  slideshow/code-pict instead?
>>>
>>> Robby
>>>
>>> On Sun, Sep 21, 2014 at 6:00 PM, Marc Burns <m4burns at csclub.uwaterloo.ca>
>>> wrote:
>>> > The culprit is the slideshow/code module loaded into the sandbox
>>> > evaluator. Requiring slideshow/code attempts to establish an X server
>>> > connection.
>>> >
>>> > On Mon, Sep 22, 2014 at
 12:12:37AM +0300, J Arcane wrote:
>>> >> Greetings,
>>> >>
>>> >> For some time now, it's bothered me a bit that Racket doesn't have an
>>> >> online REPL currently hosted anywhere. There's one written here:
>>> >> https://github.com/voila/try-racket
>>> >>
>>> >> But no one's hosted it anywhere. So I took it upon myself to fix that.
>>> >> I've
>>> >> purchased try-racket.org and a basic DigitalOcean droplet to host it
>>> >> on,
>>> >> but I've hit a snag: I can't get it to run.
>>> >>
>>> >> It runs more or less without trouble
 on my personal FreeBSD box, but on
>>> >> my
>>> >> Debian 7 droplet I waded through countless dependency issues until
>>> >> finally
>>> >> I reached what seems to be this same error:
>>> >>
>>> >> http://bugs.racket-lang.org/query/?cmd=view%20audit-trail≺=12465
>
>>> >>
>>> >> Presuming that perhaps this was in someway trying to run Racket in an
>>> >> actual GUI window whether I wanted it to or not, I attempted to run it
>>> >> as
>>> >> --script, but this just quits silently instead, leaving no servlet
>>> >> behind
>>> >> either.
>>> >>
>>> >> Any ideas what I might be doing wrong? or have I hit a proper bug? (IME
>>> >> it's usually the former ... )
>>> >>
>>> >> John Berry
>>> >> http://jarcane.github.com
>>> >
>>> >> ____________________
>>> >>   Racket Users list:
>>> >>  http://lists.racket-lang.org/users
>>> >
>>> > ____________________
>>> >   Racket Users list:
>>> >  http://lists.racket-lang.org/users
>>
>>
>>
>> ____________________
>>   Racket Users list:
>>  http://lists.racket-lang.org/users
>>
>
>
>
>-- 
>Jay McCarthy
>http://jeapostrophe.github.io
>
>           "Wherefore, be not weary in well-doing,
>      for ye are laying the foundation of a great work.
>And out of small things proceedeth that which is great."
>             
             - D&C 64:33
>
>
>
>
>____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>
>
>
>____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140923/af8abab6/attachment-0001.html>

Posted on the users mailing list.