Re: [racket] struct-copy and custom-write bug?

2014-03-01 Thread Jon Stenerson
I get it. Thanks all. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] struct-copy and custom-write bug?

2014-03-01 Thread Gustavo Massaccesi
This is not a problem with copy-struct. It's a weird combination of small bugs. One of the problems is that the result of (struct-copy Base (Atom 3))) is a Base? struct, not a Atom? struct. More on this later. First, let's analyze a reduced version of your program. Just delete the copy-struct an

[racket] How to handle #??? from #%declare

2014-03-01 Thread Asumu Takikawa
Hi all, I have a question about the recently added #%declare form for modules. Here's an example expansion for context: -> (syntax->datum (expand #'(module a racket (#%declare "something" '(module a racket (#%module-begin (module configure-runtime '#%kernel (#%module-be

Re: [racket] struct-copy and custom-write bug?

2014-03-01 Thread Robby Findler
One useful trick in these situations is to break the computation and then you can sometimes get a stacktrace inside the infinite loop. Robby On Sat, Mar 1, 2014 at 6:40 AM, Matthias Felleisen wrote: > > On Mar 1, 2014, at 5:50 AM, Jon Stenerson wrote: > > > When I put the following in the DrRac

[racket] CFP: FARM 2014: Functional Art, Music, Modelling and Design

2014-03-01 Thread Michael Sperber
If you are using Racket or any mostly functional language in any kind of musical, artistic, or design endeavour, please consider contributing to FARM 2014, the 2nd ACM SIGPLAN International Workshop of Functional Art, Music, Modelling and Design, co-located with ICFP 2014. Find attached the Call

Re: [racket] Support for R7RS-small?

2014-03-01 Thread Matthias Felleisen
I think the correct answer in this context is "it can't be done." :-) On Feb 28, 2014, at 7:49 AM, Daniel Carrera wrote: > Hello, > > I am a fairly new user of Scheme and Racket. My question is, now that > R7RS-small is out, when can I expect to see support added to Racket / > DrRacket? In

Re: [racket] struct-copy and custom-write bug?

2014-03-01 Thread Matthias Felleisen
On Mar 1, 2014, at 5:50 AM, Jon Stenerson wrote: > When I put the following in the DrRacket definitions window and then evaluate > t, it works for a few seconds and runs out of memory. Anyone understand the > problem? > > #lang racket > > (define (Print stx port mode) > (if (Atom? stx) >

[racket] struct-copy and custom-write bug?

2014-03-01 Thread Jon Stenerson
When I put the following in the DrRacket definitions window and then evaluate t, it works for a few seconds and runs out of memory. Anyone understand the problem? #lang racket (define (Print stx port mode) (if (Atom? stx) (write-string "ATOM " port) (Print (Pair-cdr stx) port mod