Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread J Arcane
I had not actually heard of Xvfb before now, but that could be a good solution. I balk at using full X11 with only 512MB of RAM, but that could be enough to satisfy the original code's expectations. I will have to experiment with it. On Mon, Sep 22, 2014 at 9:28 AM, Amir Ansari wrote: > Have you

Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread Neil Van Dyke
Amir Ansari wrote at 09/22/2014 02:28 AM: Have you tried Xvfb (http://en.wikipedia.org/wiki/Xvfb), a virtual X server? It runs headlessly, sidesteps the whole issue of having to fork the code... I have no idea whether "xvfb" is the best way without looking closely at a particular case, but I

Re: [racket] Rendering the PLT symbol in Racket?

2014-09-21 Thread Daniel Prager
This is what's achievable based on the simpler design with www.youpatch.com right now (shown at medium resolution). As you can see, this kind of image leads to heaps of "stair-casing". I think it would be much nicer to smooth out the jaggies. I'm experimenting with adding a facility to do this wi

Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread Amir Ansari
Have you tried Xvfb (http://en.wikipedia.org/wiki/Xvfb), a virtual X server? It runs headlessly, sidesteps the whole issue of having to fork the code... Amir Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread J Arcane
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,

Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread Robby Findler
Maybe you can use slideshow/code-pict instead? Robby On Sun, Sep 21, 2014 at 6:00 PM, Marc Burns 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

Re: [racket] Hosting the try-racket REPL.

2014-09-21 Thread Marc Burns
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 > onl

[racket] define-type #:omit-define-syntaxes across different modules

2014-09-21 Thread Alexander D. Knauth
It seems like types defined with #:omit-define-syntaxes can be used within the same module, but not when it’s provided and required into a different module.  Is this a bug, or is there something else I need to do, or what?  #lang typed/racket(module thing typed/racket  (provide x)  (define-type x 5

[racket] Hosting the try-racket REPL.

2014-09-21 Thread J Arcane
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 Di

Re: [racket] Provide transformers

2014-09-21 Thread Spencer florence
I think the way i have seen this done is to use a macro at the top level instead of a provide transformer. for example define/provide-test-suite from rackunit probably works a little like (define/provide-test-suite tests blah blah …) => (begin     (provide tests)    (define tests