Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Roger Rousseau
Thanks everybody for the suggestions I've followed most of them, except adding a section about "Units" because I felt there was already a lot to take in Amended version is here: https://github.com/voila/learnxinyminutes-docs/blob/master/racket.html.markdown I plan to send a pull request tonight.

Re: [racket] submodule/local-require question

2013-07-14 Thread Matthew Flatt
I had tried only from `racket', but I see the same result as you in DrRacket or with `errortrace'. I'll have to investigate further. At Sun, 14 Jul 2013 17:06:04 -0600, Christopher wrote: > The code you gave doesn't seem to work either. After saving your code in a > file named test-n.rkt, and r

Re: [racket] submodule/local-require question

2013-07-14 Thread Christopher
The code you gave doesn't seem to work either. After saving your code in a file named test-n.rkt, and running it, I get the following error: Welcome to DrRacket, version 5.3.4 [3m]. Language: racket; memory limit: 256 MB. . . ../../../../Applications/Racket v5.3.4/collects/errortrace/errortrace

Re: [racket] Bug all/13780 ... can someone confirm this?

2013-07-14 Thread Matthew Flatt
I see that the `pressedMouseButtons' method of `NSEvent' was not available until OS X 10.6, so the implementation of `get-current-mouse-state' needs to avoid it in 10.5 and earlier. At Sun, 14 Jul 2013 18:29:27 +0100, Erich Rast wrote: > This bug is a minor show-stopper in my project ("minor" beca

Re: [racket] submodule/local-require question

2013-07-14 Thread Matthew Flatt
At Sun, 14 Jul 2013 12:50:32 -0600, Christopher wrote: > #lang racket > > (module A racket > (provide x) > (define x #t) ) > > (let [] > (local-require 'A) > x ) The '-based shorthand for submodules only works in certain situations. (Generalizing that has been on my to-do list for a lon

Re: [racket] PLT-Redex modeling side effects and thread?

2013-07-14 Thread Robby Findler
Yes, these are both doable. For side-effects, probably the easiest thing is to have an expression paired with a store in your reduction relation. For threads you can use the pattern matcher's support for ambiguity to model non-deterministic choice. There are examples of both of these in the redex

[racket] submodule/local-require question

2013-07-14 Thread Christopher
#lang racket (module A racket (provide x) (define x #t) ) (let [] (local-require 'A) x ) FAILS WITH: Welcome to DrRacket, version 5.3.4 [3m]. Language: racket; memory limit: 256 MB. . . ../../Applications/Racket v5.3.4/collects/racket/private/reqprov.rkt:1092:2: require: unknown mod

Re: [racket] Bug all/13780 ... can someone confirm this?

2013-07-14 Thread Greg Hendershott
I just tried but do not get a crash with OS X 10.7.5 and DrRacket 5.3.5. On Sun, Jul 14, 2013 at 1:29 PM, Erich Rast wrote: > This bug is a minor show-stopper in my project ("minor" because I could > simply remove the functionality that makes use of the function). > The bug was filed on May 26 an

[racket] PLT-Redex modeling side effects and thread?

2013-07-14 Thread Monica Tomson
Hi, I am not sure whether it is the right place to ask the questions, but I didn't find the PLT-Redex mailing list or something like that: My questions are (quoted from stack overflow: http://stackoverflow.com/questions/17642316/can-plt-redex-model-these-features ) Just starting to learn PLT-Re

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Robby Findler
How about throwing in a simple macro? Robby On Sunday, July 14, 2013, Richard Lawrence wrote: > Hi Roger, > > This is cool, thanks for putting it together! > > Roger Rousseau > > writes: > > > It's largely inspired from the Clojure version and the Racket > documentation > > I would be grateful f

[racket] Bug all/13780 ... can someone confirm this?

2013-07-14 Thread Erich Rast
This bug is a minor show-stopper in my project ("minor" because I could simply remove the functionality that makes use of the function). The bug was filed on May 26 and nobody is assigned to it yet, so I wonder: Is it repeatable? Could someone else confirm it? Does it only occur in my particular VM

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Richard Lawrence
Hi Roger, This is cool, thanks for putting it together! Roger Rousseau writes: > It's largely inspired from the Clojure version and the Racket documentation > I would be grateful for any corrections/suggestions before I send a pull > request to get this online Here are a couple of (tiny) sugge

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Grant Rettke
On Sun, Jul 14, 2013 at 7:08 AM, Roger Rousseau wrote: > It's largely inspired from the Clojure version and the Racket documentation > I would be grateful for any corrections/suggestions before I send a pull > request to get this online That is really, really nice. A few of my personal favorites

Re: [racket] Small Racket-embedded dataflow DSP language

2013-07-14 Thread Tom Schouten
On 06/27/2013 02:15 PM, John Clements wrote: On Jun 12, 2013, at 9:24 AM, Tom Schouten wrote: On 05/30/2013 08:21 PM, Tom Schouten wrote: On 05/30/2013 05:30 PM, John Clements wrote: On May 30, 2013, at 1:21 PM, Tom Schouten wrote: Hi List, Here's a tiny experimental tool I've been working

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Sam Tobin-Hochstadt
Great! Two suggestions -- I'd move `set!` later, and maybe have a section for mutation, with vectors as well. Also, I think some version of `for/list` and `for/hash` would be good to show off in the loop section. Sam On Sun, Jul 14, 2013 at 8:08 AM, Roger Rousseau wrote: > Hello > > Following

[racket] learn racket in 10 minutes

2013-07-14 Thread Roger Rousseau
Hello Following Sam's suggestion on Twitter I have done a Racket version of http://learnxinyminutes.com/ which can be found here: https://github.com/voila/learnxinyminutes-docs/blob/master/racket.html.markdown It's largely inspired from the Clojure version and the Racket documentation I would be