Re: [racket] Primitive scheme -> racket namespace converter

2010-06-11 Thread synx
And now I noticed that my hackish '|'| eliminator sometimes eliminates the first ( because there is no ' on the expression for reasons I don't understand. So I made a work around! :D Someone who actually knows this stuff I'd really appreciate seeing something like this. ^.^; Not so much to attempt

[racket] context switching

2010-06-11 Thread synx
Here's a little something I was playing with, the notion of context switching. What does a certain symbol (er, parameter) mean in a given context? Can parameters be grouped together into meaningful context objects that change a bunch of parameters at once? The motivation is for my text adventure t

Re: [racket] Http post using post-impure-port

2010-06-11 Thread Daniel Phelps
Hi All, Thanks for your help. Solution follows. Thanks for the pointer to netcat. Turns out I was missing the Content-Type. Hence: #lang racket (require net/url) (require net/uri-codec) (require net/head) (require web-server/http/request-structs) (require racket/string) (define my-url (stri

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Tim Johnson
* Karl Winterling [100611 11:21]: > On Fri, Jun 11, 2010 at 11:40 AM, Tim Johnson wrote: > > >  Very interesting! Could you elaborate on this Google > >  investment in kawa? Or just post some links? > >  thanks > > I think that Google uses Scheme as a configuration language for > android and a

Re: [racket] macro help redux

2010-06-11 Thread Todd O'Bryan
Thanks for responding. I've been away chaperoning students at camp for the past three days--thus my belated response. This is starting to make more sense. I got that there was a difference between data and syntax, but I thought they were much more fluidly convertible. I understand now that you hav

Re: [racket] syntax/parse ellipses question

2010-06-11 Thread Eric Dobson
Thanks, that makes sense after looking very closely at the documentation. I was able to work around it by introducing a syntax-class, which had the added benefit of being more readable then nested ~or patterns. -Eric On Fri, Jun 11, 2010 at 3:56 PM, Ryan Culpepper wrote: > Eric Dobson wrote: >>

[racket] Feature Request: new-style requires in Student Languages

2010-06-11 Thread Todd O'Bryan
I'd like to move my students to using #lang declarations and require statements, rather than loading teachpacks via the menu (mostly because as they move between computers, different configurations cause errors that are hard for them to understand). Currently BSL (at least) only accepts old-style

Re: [racket] Feature Request: new-style requires in Student Languages

2010-06-11 Thread Matthias Felleisen
It will. This is an open feature request. On Jun 11, 2010, at 3:58 PM, Todd O'Bryan wrote: I'd like to move my students to using #lang declarations and require statements, rather than loading teachpacks via the menu (mostly because as they move between computers, different configurations cause

Re: [racket] syntax/parse ellipses question

2010-06-11 Thread Ryan Culpepper
Eric Dobson wrote: I'm trying to use the syntax/parse library, and am running into a weird problem when using ~or. It works without ellipses, but with ellipses it complains about a duplicated attribute. I would assume that the attributes with the same name in an ~or pattern were the same attribut

Re: [racket] Http post using post-impure-port

2010-06-11 Thread Eli Barzilay
On Jun 11, Noel Welsh wrote: > I did a quick check of the source code and post-impure-port definitely > does send the post data -- at least functions to do so appear in the > code. Have you tried a packet sniffer like Wireshark? That will tell > exactly was is being sent over the wire. Netcat is v

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Karl Winterling
On Fri, Jun 11, 2010 at 12:16 PM, Shriram Krishnamurthi wrote: >> [...] and a scripting language for the App Engine. > > That would be news to me! > > Shriram > Hearsay is wonderful. _ For list-related administrative tasks: http://lists.racket-

Re: [racket] Http post using post-impure-port

2010-06-11 Thread Noel Welsh
I did a quick check of the source code and post-impure-port definitely does send the post data -- at least functions to do so appear in the code. Have you tried a packet sniffer like Wireshark? That will tell exactly was is being sent over the wire. HTH, N. On Fri, Jun 11, 2010 at 8:18 PM, Daniel

[racket] syntax/parse ellipses question

2010-06-11 Thread Eric Dobson
I'm trying to use the syntax/parse library, and am running into a weird problem when using ~or. It works without ellipses, but with ellipses it complains about a duplicated attribute. I would assume that the attributes with the same name in an ~or pattern were the same attribute that could just mat

[racket] Http post using post-impure-port

2010-06-11 Thread Daniel Phelps
Hi all, I'm having trouble with post-impure-port from net/url. I'm trying to post two fields like this: #lang racket (require net/url) (require net/uri-codec) (define my-url  (string->url "http://localhost:49986/foo/bar/";)) (post-impure-port my-url #"foo=bar&fiz=fuz") An http post occurs but

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Shriram Krishnamurthi
> [...] and a scripting language for the App Engine. That would be news to me! Shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Shriram Krishnamurthi
All I know is what I read here: http://googleresearch.blogspot.com/2009/08/under-hood-of-app-inventor-for-android.html shriram _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Karl Winterling
On Fri, Jun 11, 2010 at 11:40 AM, Tim Johnson wrote: >  Very interesting! Could you elaborate on this Google >  investment in kawa? Or just post some links? >  thanks I think that Google uses Scheme as a configuration language for android and a scripting language for the App Engine. Kawa can com

[racket] N queens, revisited

2010-06-11 Thread Matthias Felleisen
Horace and others who have tackled the N queens problem in HtDP. Below find a first draft of an exercise that will go into HtDP/2e. It demonstrates the importance of formulating good data representations especially with the use of (what we called) data accumulators in HtDP/1e. Enjoy -- Matthias

Re: [racket] Off-topic: Scheme for JVM?

2010-06-11 Thread Tim Johnson
* Shriram Krishnamurthi [100609 10:27]: <...> Since Google has some investment in Kawa, I'm > sure it's in good shape. Very interesting! Could you elaborate on this Google investment in kawa? Or just post some links? thanks -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwe

[racket] Using raco exe

2010-06-11 Thread Norman Gray
Greetings. I'm having difficulty using raco to build a standalone executable which requires both web-server/servlet and an extension. The raco documentation seems to suggest that I'm doing the right thing, but I'm getting an error I can't really parse. Can anyone help? The players: A w

[racket] ILC 2010

2010-06-11 Thread Antonio Menezes Leitao
With the usual apologies to those who receive multiple copies of this... ~~~ International Lisp Conference 2010 October 19-21, 2010 John Ascuaga's Nugget (Casino)

Re: [racket] Primitive scheme -> racket namespace converter

2010-06-11 Thread Synx
On 06/10/2010 09:34 PM, Stephen Chang wrote: > This doesn't seem to do the replacement when the language is just #lang > scheme. Oh, yeah it wouldn't. Well it's an easy fix. But seriously, don't use this on anything you care about. As I said it deletes line-based comments. It also reformats the w