[racket] feeding input to Scribble and source location info

2011-08-27 Thread Neil Van Dyke
Question about different ways of feeding input to Scribble, and whether Scribble insists on reading input from files itself for some purposes I want to write some code that takes a source document that's not in Scribble language, and produces a document that can be used with the Scribble t

Re: [racket] Thoughts on Overeasy

2011-08-27 Thread Eli Barzilay
30 minutes ago, Neil Van Dyke wrote: > However, in the future, I would like to treat the "#:val" and > "#:exn" specially, but to make all the effects testing be plugins, > for extensibility. The "test" macro could then consult the test > context to get the sequence of effects to be tested, and wou

Re: [racket] Thoughts on Overeasy

2011-08-27 Thread Neil Van Dyke
Thanks for the comments, Noel. Noel Welsh wrote at 08/27/2011 05:21 PM: I think the keyword argument method is a mistake. It seems you'd have to do a lot of checking in the test macro to make sure the user doesn't specify non-sensical parameters. E.g. if I specify #:exn and #:val what happens?

Re: [racket] For new Racket users

2011-08-27 Thread Sam Phillips
On Sat, Aug 27, 2011 at 10:10, Robby Findler wrote: > It made me want to make a similar puzzle for learning Racket. But I > don't know how effective such things are. A few months ago I was looking at a job posting that had a several puzzles that involved Javascript and CSS tricks, and in the end

Re: [racket] For new Racket users

2011-08-27 Thread Mark Engelberg
I think such things can be hugely motivating! Although not as puzzley as pythonchallenge, recently I've been hearing some buzz about Clojure's puzzle intro site called 4clojure.com. All the "puzzles" are just fill in the blank programming problems. Nothing that seems like it would be hugely excit

Re: [racket] Bite-Size Racket Projects

2011-08-27 Thread Ray Racine
I have a number of odds and ends that I've been un-mothballing and moving to typed/racket which are currently in various states of entropy: crypto sha1, md5, sha256, hmac-xxx, AWS, S3, Amazon Product API, HTTP client library and a few odds and ends.It was all originally R6RS / Larceny so the b

Re: [racket] (Not really) a book on Racket

2011-08-27 Thread Noel Welsh
On Sat, Aug 27, 2011 at 6:20 PM, Grant Rettke wrote: > Writing books is hard from what I hear. Indeed. > Lot of Racketeers individually want to do it. > > Perhaps there is an opportunity for collaboration? We'll see. I've set out my stall, more or less. There is a reasonably detailed plan and t

[racket] Thoughts on Overeasy

2011-08-27 Thread Noel Welsh
Some quick notes: Generally good. Certainly cuts down on some of the crap that Rackunit / Schemeunit requires while being more comprehensible than eli-tester. --- I think the keyword argument method is a mistake. It seems you'd have to do a lot of checking in the test macro to make sure the user

Re: [racket] db library in core

2011-08-27 Thread gonzalo diethelm
> > Are you saying that access to PostgreSQL and MySQL DBs runs without > > having any native client libraries installed? If this is correct, did > > you re-implement in Racket the network protocol used to access these > > DBs? > > Yes to both. Wow. I didn't even know those protocols where docume

[racket] Fw: Building docs

2011-08-27 Thread Mark Carter
- Forwarded Message - > From: Matthew Flatt > I'm puzzled by the warnings, where the same collection is named in two > ways. Can you show the command line that produced this output? raco setup carali Actually, you can visit the root of the project at this link: https://github.com/bl

Re: [racket] Mediawiki dedicated to Liitin/Racket/Scheme code + more

2011-08-27 Thread Jukka Tuominen
I believe I've visited it a few times in the past. Very nice, and has many things i'd like to achieve, some characteristics that I'm trying avoid, but most of all a bit different in profile. I'm hoping to bring something new and complementory, not just another copy. Being accessible to all and ha

Re: [racket] Building docs

2011-08-27 Thread Matthew Flatt
I'm puzzled by the warnings, where the same collection is named in two ways. Can you show the command line that produced this output? At Sat, 27 Aug 2011 19:47:27 +0100 (BST), Mark Carter wrote: > I'm trying to build some documentation for my modules, although it's far from > clear what the proce

[racket] Intro Projects: Get rid of units in the net collect

2011-08-27 Thread Jon Zeppieri
For the most part, getting rid of units in net is straightforward. However, I'm not sure what people have in mind for the tcp^ sig. 1) net/tcp-redirect provides a single function, tcp-redirect, which returns a unit implementing tcp^. Is there a consensus on what to do with this function? Remove it

[racket] Building docs

2011-08-27 Thread Mark Carter
I'm trying to build some documentation for my modules, although it's far from clear what the procedure should be. I can use my module, but I can't access its help from F1 within DrRacket. I have issued the command raco setup carali and I have obtained the output: raco setup: version: 5.1.2.3 [

[racket] variant of struct-out that excludes constructors?

2011-08-27 Thread Jon Zeppieri
The language of unit signatures (http://download.plt-scheme.org/doc/4.2.1/html/reference/define-sig-form.html) has an #:omit-constructor keyword option for the 'struct' subform, but provide's 'struct-out' subform has no corresponding option. Does this exist in some library somewhere? Specifically,

Re: [racket] (Not really) a book on Racket

2011-08-27 Thread Grant Rettke
On Sat, Aug 27, 2011 at 10:39 AM, Matthias Felleisen wrote: > > We need books. Someone go for it. Writing books is hard from what I hear. Lot of Racketeers individually want to do it. Perhaps there is an opportunity for collaboration? The Real World Haskell book was pretty interesting: 1. Deve

Re: [racket] For new Racket users

2011-08-27 Thread Richard Cleis
My daily Racketeering is puzzling enough! (and it pays the bills) RAC On Aug 27, 2011, at 11:10 AM, Robby Findler wrote: > It made me want to make a similar puzzle for learning Racket. But I > don't know how effective such things are. > > Robby > > On Sat, Aug 27, 2011 at 11:33 AM, Stephen Ch

Re: [racket] For new Racket users

2011-08-27 Thread Robby Findler
It made me want to make a similar puzzle for learning Racket. But I don't know how effective such things are. Robby On Sat, Aug 27, 2011 at 11:33 AM, Stephen Chang wrote: > It looks like many of the puzzles require python-specific libraries, > of which there's no Racket equivalent. Something to

Re: [racket] For new Racket users

2011-08-27 Thread Stephen Chang
It looks like many of the puzzles require python-specific libraries, of which there's no Racket equivalent. Something to add to the Racket task list? On Sat, Aug 27, 2011 at 11:57 AM, David Van Horn wrote: > On 8/27/11 8:46 AM, Robby Findler wrote: >> >> It also looks like there are solutions f

Re: [racket] For new Racket users

2011-08-27 Thread David Van Horn
On 8/27/11 8:46 AM, Robby Findler wrote: It also looks like there are solutions for lots of languages on a wiki ... but not Racket. I worked through the first three. https://gist.github.com/f8898fe28bd54852a745 https://gist.github.com/3c84d799be53c9632027 https://gist.github.com/3ad26a049df5cf

Re: [racket] (Not really) a book on Racket

2011-08-27 Thread Matthias Felleisen
We need books. Someone go for it. On Aug 27, 2011, at 3:13 AM, Noel Welsh wrote: > Hi all, > > From time to time I've taken a crack at writing a book on Racket. I > had big plans for it, but I've realised I don't have the time to > fulfil them. I've put the text on here: > > https://github.

Re: [racket] For new Racket users

2011-08-27 Thread Robby Findler
It also looks like there are solutions for lots of languages on a wiki ... but not Racket. Robby On Fri, Aug 26, 2011 at 8:18 PM, Grant Rettke wrote: > Yes it is intended for Python but it looks fun in any language: > > http://www.pythonchallenge.com/ > __

Re: [racket] Regexp character classes

2011-08-27 Thread gabor papp
On 8/27/11 10:04 AM, Neil Van Dyke wrote: #lang racket/base (define str "17.4 25.4 15.7 13.7 19.4 20.9 ") (regexp-split #rx"[ \t]+" str) or with posix character class: (regexp-split #px"[[:space:]]+" str) _ For list-related administrative tasks:

Re: [racket] Regexp character classes

2011-08-27 Thread Neil Van Dyke
I don't know about ":space:", but you can do regexp character classes the old-fashioned way: #lang racket/base (define str "17.4 25.4 15.7 13.7 19.4 20.9 ") (regexp-split #rx"[ \t]+" str) ;;==> '("17.4" "25.4" "15.7" "13.7" "19.4" "20.9" "") I also used "regexp" instead

[racket] Regexp character classes

2011-08-27 Thread Mark Carter
I'm trying to do a regexp split, but I can't get it to work. Here's my code: (require mzlib/pregexp) (define str "17.4     25.4     15.7     13.7     19.4     20.9     ") (pregexp-split #rx"[:space:]+" str) The output is '("17.4 \t25.4 \t15.7 \t13.7 \t19.4 \t20.9 \t") which is of course not

[racket] Regexp character classes

2011-08-27 Thread Mark Carter
I'm trying to do a regexp split, but I can't get it to work. Here's my code: (require mzlib/pregexp) (define str "17.4     25.4     15.7     13.7     19.4     20.9     ") (pregexp-split #rx"[:space:]+" str) The output is '("17.4 \t25.4 \t15.7 \t13.7 \t19.4 \t20.9 \t") which is of course not

[racket] (Not really) a book on Racket

2011-08-27 Thread Noel Welsh
Hi all, >From time to time I've taken a crack at writing a book on Racket. I had big plans for it, but I've realised I don't have the time to fulfil them. I've put the text on here: https://github.com/noelwelsh/making-a-racket There isn't a lot of content but it might be of interest to some.