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

2014-09-22 Thread J Arcane
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 wrote: > I get errors when trying to type in a multi-line function. Am I doing > something wrong? > > --

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

2014-09-22 Thread Steve Graham
I get errors when trying to type in a multi-line function. Am I doing something wrong? From: Jay McCarthy To: J Arcane Cc: Racket Users ; Robby Findler ; Marc Burns Sent: Monday, September 22, 2014 12:05 PM Subject: Re: [racket] Hosting the try-racket RE

Re: [racket] is anyone using racket to generate animated diagrams?

2014-09-22 Thread Martin DeMello
Thanks, metapict looks great! martin On Mon, Sep 22, 2014 at 12:44 PM, Jens Axel Søgaard wrote: > Hi Martin, > > As an example I implemented the standing wave animation. > > The MetaPict package is available through the package system. > Use the package manager in DrRacket to install install it

Re: [racket] is anyone using racket to generate animated diagrams?

2014-09-22 Thread Jens Axel Søgaard
Hi Martin, As an example I implemented the standing wave animation. The MetaPict package is available through the package system. Use the package manager in DrRacket to install install it. The run the program below in DrRacket to see a standing wave. The documentation of the MetaPict package is

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

2014-09-22 Thread Jay McCarthy
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

[racket] is anyone using racket to generate animated diagrams?

2014-09-22 Thread Martin DeMello
I was looking through http://en.wikipedia.org/wiki/User:LucasVB/Gallery (generated, according to the author, with a combination of php and libgd), and wondered if anyone was doing similar stuff in racket. I'd love to see code samples if so. martin Racket Users list: http:/

[racket] keyword-apply questions

2014-09-22 Thread Kevin Forchione
On Sep 22, 2014, at 9:05 AM, Kevin Forchione wrote: > Hi guys, > Apparently, with a desire to use keywords more in functions, I’ll have to > wrap my head around keyword-apply better. Two questions I have are: > > 1. Why must the kw-lst be sorted in keyword arguments appear in any order that

[racket] keyword-apply questions

2014-09-22 Thread Kevin Forchione
Hi guys, Apparently, with a desire to use keywords more in functions, I’ll have to wrap my head around keyword-apply better. Two questions I have are: 1. Why must the kw-lst be sorted in keyword kw-arg …) After playing around a bit all of the following are equivalent: (define (bar #:x x #:y y

Re: [racket] ->i contract question

2014-09-22 Thread Robby Findler
Turning things back and forth between values and lists is not something that our apis and our runtime infrastructure really encourages. So I'd say that the first thing to try would be to either fix the number of values returned from the function or to start programming with lists instead. If that

Re: [racket] Provide transformers

2014-09-22 Thread Jay McCarthy
Is this what you are looking for? #lang racket/base (require (for-syntax racket/base syntax/parse racket/provide-transform)) (define-syntax test-pred-out (make-provide-pre-transformer (λ (stx _) (syntax-parse stx [(_ b:id p:expr)

Re: [racket] ->i contract question

2014-09-22 Thread Jay McCarthy
As far as I can tell, there is no contract form that allows treating the values returned as a list. Here is how you could implement one if you wanted: http://pasterack.org/pastes/46111 Maybe Robby has an opinion about whether this should be done in racket/contract Jay On Sun, Sep 21, 2014 at 1:

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

2014-09-22 Thread Robby Findler
Pict should be making them just the same and they should convert fine even if the GUI libraries aren't yet required. For example: Welcome to Racket v6.1.0.8. > (require file/convertible pict) > (convertible? (disk 1)) #t > (convert (disk 1) 'png-bytes) #"\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\1\0\0\0\

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

2014-09-22 Thread Alexander D. Knauth
On Sep 22, 2014, at 1:17 AM, J Arcane wrote: > > 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

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

2014-09-22 Thread Neil Van Dyke
J Arcane wrote at 09/22/2014 02:54 AM: 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. Side comment: I wou

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

2014-09-22 Thread Amir Ansari
If you run it inside a BSD jail, that should take care of a lot of the possible issues... But you're right, of course. It should be able to run without X. On Mon, 22 Sep 2014 10:11:25 +0300 J Arcane wrote: > That does sound an awful headache for something that otherwise doesn't seem > to be u

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

2014-09-22 Thread J Arcane
That does sound an awful headache for something that otherwise doesn't seem to be using X for anything other than dependency expectations. It seems like there should be a non-X-dependent way to do it. On Mon, Sep 22, 2014 at 9:52 AM, Neil Van Dyke wrote: > Amir Ansari wrote at 09/22/2014 02:28 A