Re: [racket-users] syntax-parse and optional keywords

2015-04-19 Thread Konrad Hinsen
> > I want to define some syntax with an optional keyword but no arguments > > behind it. Something like #:mutable in struct. The pattern seems > > obvious: > > > > (~optional #:my-keyword) > > > > but I don't see how I can detect the presence or absence of the > > keyword in the code t

Re: [racket-users] Debugging Clojure in Racket

2015-04-19 Thread Greg Hendershott
I spent some of my time at Recurse Center (formerly Hacker School) getting hands-on with Clojure. I wrote five blog posts. The first of the series is here: http://www.greghendershott.com/2014/10/hands-on-with-clojure.html -- You received this message because you are subscribed to the Google Gr

[racket-users] Debugging Clojure in Racket

2015-04-19 Thread Daniel Prager
This is a bit of an anecdote: I've started doing some Clojure and ClojureScript tutorials; the idea being to learn enough ClojureScript to use it with reactjs wrappers on the front-end. So far the experience has been quite pleasant, with my brain wrapping itself around a #lang racket "cousin",

Re: [racket-users] "Save as" Scribble file extension

2015-04-19 Thread Alexander D. Knauth
Does this change the default extension for #lang at-exp racket too? Because that would be more confusing. If I want to use at-expressions in a normal racket file, I don’t want it to set the default extension to .scrbl. On Apr 19, 2015, at 4:38 PM, Robby Findler wrote: > A while back, Lei Wang

Re: [racket-users] generating hyperlinks into Scribble docs

2015-04-19 Thread Matthew Butterick
Very close, thank you. The optional #:external-root-url argument turns it into an external link. #lang racket (require setup/xref scribble/xref net/url) (define (get-docs-url-string module-path export) (define xref (load-collections-xref)) (define tag (xref-binding->definiti

Re: [racket-users] generating hyperlinks into Scribble docs

2015-04-19 Thread Robby Findler
Is this what you're after? Robby #lang racket (require setup/xref scribble/xref net/url) (define (get-docs-url module-path export) (define xref (load-collections-xref)) (define tag (xref-binding->definition-tag xref (list module-path export) #f)) (define-values (path url-

Re: [racket-users] "Save as" Scribble file extension

2015-04-19 Thread Robby Findler
A while back, Lei Wang implemented an indentation mode for Scribble and it has been set up in the implementation of the reflow-paragraph keybinding (alt-q / meta-q) but it hadn't been set up for indentation. I've now done that and sorry for the long delay. (The latest snapshots should have this cha

[racket-users] generating hyperlinks into Scribble docs

2015-04-19 Thread Matthew Butterick
This seems straightforward but I'm getting lost in the weeds: what's the simplest way to generate hyperlinks into Scribble docs on the web (without having to manually copy the URL)? For instance, the URL for `map` looks like this: http://docs.racket-lang.org/reference/pairs.html?q=map#%28def._

[racket-users] [CFP] Scheme and Functional Programming Workshop 2015

2015-04-19 Thread Andy Keep
Call For Papers: Scheme and Functional Programming Workshop 2015 Vancouver, British Columbia, Canada (Co-located with ICFP 2015) http://andykeep.com/SchemeWorkshop2015/ =

Re: [racket-users] receiving a copy of my own mails to racket-users@googlegroups.com

2015-04-19 Thread David T. Pierson
On Thu, Apr 16, 2015 at 04:39:39PM +0200, Jos Koot wrote: > I receive e-mails from racket-users@googlegroups.com. > However, when I send an e-mail to racket-users@googlegroups.com I don't > receive my own e-mail. I'm not using gmail, but I recall hearing about this problem previously. I was able t

Re: [racket-users] syntax-parse and optional keywords

2015-04-19 Thread Alexis King
You can use ~and to bind it to an attribute. (syntax-parse #'(foo) [(_ (~optional (~and #:kw kw))) (attribute kw)]) ; => #f > On Apr 17, 2015, at 05:38, Konrad Hinsen wrote: > > Hi everyone, > > my question looks like something straightforward, but I have been > reading through the docume

Re: [racket-users] raco make, file permissions, and unstable directories

2015-04-19 Thread Deren Dohoda
Thanks Robby and Matthew. I use relative or runtime-computed paths myself so it looks like everything is clear. I do need to consider how to manage different Racket builds, right now I have stuck with the same build but updating Racket is something I will need to manage. Deren On Apr 16, 2015 3:

Re: [racket-users] typecheck error with define-namespace-anchor in 6.1.1

2015-04-19 Thread Sam Tobin-Hochstadt
Unfortunately, I don't think there's an easy way to fix this in 6.1.1. That program works in current snapshots, so you might try that. Alternatively, you could put the namespace anchor in an untyped module, although that can be inconvenient for namespace anchors in particular. Sam On Sat, Apr 18,

Re: [racket-users] Organizing tests

2015-04-19 Thread WarGrey Gyoudmon Ju
Thank you Matthias This suggestion has enlightened me. I did not figure out a good way to filter tests based on their types. and, Konrad. I have a makefile.rkt to help me (and potential cooperators) build the system. The *scribble/lp* plays an important role in my development process not only beca

Re: [racket-users] Organizing tests

2015-04-19 Thread Greg Hendershott
That's the --submodule or -s flag. I did `raco help test` just now and discovered even more options than I remembered. Including fun things like running tests in parallel, printing a summary table, and so on. racket-mode has a couple features related to tests and coverage. They currently assume

Re: [racket-users] web server: database result paging

2015-04-19 Thread David Vanderson
On 04/18/2015 12:34 PM, George Neuner wrote: Hi all, I have an web server application in which I need to page results of a database query, but I also have to guarantee *exactly-once* statistical processing of each sent result row regardless of how many times it may be sent. Theresults are f