Re: [racket-users] Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Christopher Lemmer Webber
Wow! These libraries are great! Excited to discover about them :) I'm also excited to see the ANSI user interface one, as a fan of roguelikes (and ascii art)! Jay McCarthy writes: > FYI the package lux is like Big Bang and the package mode-lambda is like > 2htdp/image. Right now, however, I am

Re: [racket-users] What am I misunderstanding about flat-contract-with-explanation?

2018-01-05 Thread David Storrs
Brilliant. Thanks, Matthew. On Fri, Jan 5, 2018 at 4:14 PM, Matthew Flatt wrote: > In DrRacket's "Package Manager" (under "File"), there's a "Copy from > Version" tab. > > At the command line, it's `raco pkg migrate`. > > At Fri, 5 Jan 2018 15:51:33 -0500, David Storrs wrote: >> Ah, yes. That w

Re: [racket-users] What am I misunderstanding about flat-contract-with-explanation?

2018-01-05 Thread Matthew Flatt
In DrRacket's "Package Manager" (under "File"), there's a "Copy from Version" tab. At the command line, it's `raco pkg migrate`. At Fri, 5 Jan 2018 15:51:33 -0500, David Storrs wrote: > Ah, yes. That would be the problem -- I'm still on 6.6. Okay, time to > upgrade! > > My belief is that when

Re: [racket-users] What am I misunderstanding about flat-contract-with-explanation?

2018-01-05 Thread David Storrs
Ah, yes. That would be the problem -- I'm still on 6.6. Okay, time to upgrade! My belief is that when I upgrade (on OSX) I will need to reinstall all modules I've 'raco pkg install'd. Is there an easy way to automatically port them all over? On Fri, Jan 5, 2018 at 3:24 PM, Daniel Feltey wrote

Re: [racket-users] What am I misunderstanding about flat-contract-with-explanation?

2018-01-05 Thread Daniel Feltey
Are you using a recent version of Racket? I see the same error in Racket 6.8, but not in more recent releases. Dan On Fri, Jan 5, 2018 at 2:15 PM, David Storrs wrote: > https://docs.racket-lang.org/reference/data-structure- > contracts.html#%28def._%28%28lib._racket%2Fcontract% > 2Fprivate%2Fmi

[racket-users] What am I misunderstanding about flat-contract-with-explanation?

2018-01-05 Thread David Storrs
https://docs.racket-lang.org/reference/data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fprivate%2Fmisc..rkt%29._flat-contract-with-explanation%29%29 says: (flat-contract-with-explanation get-explanation [#:name name]) → flat-contract? get-explanation : (-> any/c (or/c boole

Re: [racket-users] Scopes and shadowing syntax-rules literals

2018-01-05 Thread Matthew Flatt
I think the effect that you're seeing with a same-phase `syntax-rules` is described here: http://www.cs.utah.edu/plt/scope-sets/general-macros.html#%28part._.Local_.Bindings_and_.Syntax_.Quoting%29 It's not as easy to find an explanation in the documentation, but the pointer at the end of https

Re: [racket-users] Re: Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Hendrik Boom
On Fri, Jan 05, 2018 at 08:09:59AM -0800, Andrew Kent wrote: > In case you didn't see, there's a blog post (by Jay) about writing Conway's > game of life in Racket. It spends some time talking about various > optimizations to get performance: > > http://jeapostrophe.github.io/2013-11-18-life-pos

Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
Thanks a lot, that's a cool data structure and I was thinking about something similar. (Actually, I was thinking about the "chart" in "chart parser" and was about to look up how these are usually implemented.) I'm reluctant to do it on the side, though, because experience has told me that these ki

Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Robby Findler
The arrows, docs information, etc that Check Syntax draws use a data/interval-map to manage that kind of information on the side. https://docs.racket-lang.org/data/interval-map.html hth, Robby On Fri, Jan 5, 2018 at 8:58 AM, Erich Rast wrote: > Hi all, > > Is there a way to associate custom pay

Re: [racket-users] Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Jay McCarthy
FYI the package lux is like Big Bang and the package mode-lambda is like 2htdp/image. Right now, however, I am working on raart for doing ANSI user interfaces. On Fri, Jan 5, 2018 at 11:04 AM Matthias Felleisen wrote: > > Thanks for the feedback. > > Yes, b-b was designed for middle school, high

[racket-users] Re: Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Andrew Kent
In case you didn't see, there's a blog post (by Jay) about writing Conway's game of life in Racket. It spends some time talking about various optimizations to get performance: http://jeapostrophe.github.io/2013-11-18-life-post.html On Friday, January 5, 2018 at 9:14:39 AM UTC-5, cwebber wrote:

Re: [racket-users] Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Matthias Felleisen
Thanks for the feedback. Yes, b-b was designed for middle school, high school and college freshman courses. But like all software, it eventually escapes and makes it into the “real world”. [ ASIDE What does this tell you about the terrible training that most students get and u

[racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
Hi all, Is there a way to associate custom payload data to individual characters and image snips in a text% instance? Maybe some package or framework class that already exists? I'd like to add custom data that is independent of styles but behaves like them. Basically, I need to keep track of arbi

[racket-users] Lessons learned from writing a Conway's Game of Life implementation in big-bang

2018-01-05 Thread Christopher Lemmer Webber
Hello all, Last night out of curiosity I started lazily adding some code to see how long it would take me to write a game of life implementation in Racket. Not exactly a challenging expidition game-authoring-wise, but a fun little exercise anyway. You can see and play with the results here: ht

Re: [racket-users] Programming for blind students - sample code needed

2018-01-05 Thread Emmanuel Schanzer
Oh yeah, I’ve even had the opportunity to speak to T.V. Raman about it! Cool stuff, but it’s solving a different set of problems. While it's a wonderfully powerful tool, Emacs is poorly suited to our educational context. We work in schools where teachers are nervous about the jump from Word to