Re: [racket] [Newbie] Call for code review

2013-12-16 Thread Greg Hendershott
Correction: On Mon, Dec 16, 2013 at 10:57 PM, Greg Hendershott wrote: > I'd write `exact-positive-integer?` instead of number? if it were > actually a real. I'd write `exact-positive-integer?` instead of number? if it were actually a contract. Racket Users list: http://l

Re: [racket] [Newbie] Call for code review

2013-12-16 Thread Greg Hendershott
I took a little time to review it. I didn't try to think too deeply about what it's doing. Overall I think it looks very, very good. You're "quite new to Racket"? I'm very impressed! A few small comments: 1. https://github.com/myguidingstar/game-modeling/blob/master/core.rkt#L18 It would have be

Re: [racket] passing a list of dispatch clauses to dispatch-rules

2013-12-16 Thread Jay McCarthy
On Mon, Dec 16, 2013 at 3:25 PM, Janos Tobias Locsei wrote: > Hi, I'm a newbie Racketeer so apologies if this is a silly question: > > Is it possible to pass a list of dispatch-clause to dispatch-rules? Naive > use of "apply" doesn't work: > > (define-values (blog-dispatch blog-url) > (let ([arg

[racket] passing a list of dispatch clauses to dispatch-rules

2013-12-16 Thread Janos Tobias Locsei
Hi, I'm a newbie Racketeer so apologies if this is a silly question: Is it possible to pass a list of dispatch-clause to dispatch-rules? Naive use of "apply" doesn't work: (define-values (blog-dispatch blog-url) (let ([arglist (list [("") list-posts] [("posts" (

Re: [racket] Racket embedding

2013-12-16 Thread Jan Wedekind
On Thu, 12 Dec 2013, Thomas Chust wrote: On 2013-12-12 17:53, Jan Wedekind wrote: [...] However when doing embedding there is no single 'run' method to pass to 'scheme_main_setup'. Is there another simple way to do that? [...] Hello, it is probably a bad idea to use any setup that doesn't ha

[racket] DrRacket GUI tutorial with MVC concepts?

2013-12-16 Thread Janos Tobias Locsei
Geoff, maybe your son would enjoy the book "Realm of Racket" which teaches game programming in Racket? It teaches MVC by osmosis, i.e. MVC is not explicitly discussed but you learn to structure your code along those lines anyway. I'm about 1/3 of the way through the book and it's good fun. It's ama

Re: [racket] typesetting scribble/lp files individually

2013-12-16 Thread Matthew Flatt
With the current implementation of `scribble/lp`, this looks difficult. I think we need to reimplement `scribble/lp` to use submodules, and then this should be easy --- by having `scribble/lp` introduce a `doc` submodule that `raco scribble` would pick up instead of the module's body. At Mon, 16

[racket] typesetting scribble/lp files individually

2013-12-16 Thread Matias Eyzaguirre
Hi all, I’ve been using scribble/lp for a little while, but it’s starting to get annoying that using it seems to require a second module to lp-include the scribble/lp module in order to be able to typeset/render it. It doesn’t look like there’s a way to do it, but I thought I’d ask. If there is

[racket] [Newbie] Call for code review

2013-12-16 Thread Hoang Minh Thang
Hi all, I'm quite new to racket. I've made a small program that simulates some cells' behaviors in a matrix. http://github.com/myguidingstar/game-modeling I hope some people will tell me where & how I can improve the code. Any single piece is appreciated. Thanks Racket Users