[racket] bracket code converter to parens

2010-09-16 Thread Isaiah Gilliland
This is the utility I've been working on that had me posting on here for help from time to time. I enjoy programming in scheme probably more then CL because of its simplicity, but I wanted to check out and go through some common lisp books like Practical Common Lisp(which is awesome). But I find it

[racket] Problem with Racket REPL and pasting

2010-09-16 Thread Timothy Nelson
Hello, I am running Racket 5.0.1 in Windows. Specifically, I'm using racket.exe from the Windows cmd prompt. If I enter a multi-line expression manually, it works fine: > (+ 1 2 3) 6 But if I copy and paste in the same expression, I get an error: > (+ 1 2    3) reference to undefined identifier:

[racket] compiling for the repl, and SIGSEGV MAPERR errors?

2010-09-16 Thread Danny Yoo
Hi everyone, I wanted to double check things before I start re-hacking the WeScheme REPL. I'm trying to work with the mzc-generated bytecode for REPL interaction expressions. From looking at the implementation of the module language in drracket/private/module-language.rkt, I've derived the follo

Re: [racket] [Tutorial?] How to make a macro that takes a procedure as argument

2010-09-16 Thread Laurent
> > It's true that macro arguments are syntax objects, and the rest of your > tutorial shows one way of interpreting a syntax object as an "expression at > compile time" (as opposed to "expression at run time", which is what most > macro arguments are). > > It's also possible to do the evaluation i

Re: [racket] xmlrpc with racket problem

2010-09-16 Thread Matt Jadud
Hi Jay, On Thu, Sep 16, 2010 at 13:24, Jay McCarthy wrote: > http://planet.racket-lang.org/display.ss?package=xml-rpc.plt&owner=jaymccarthy > > On Thu, Sep 16, 2010 at 9:31 AM, Jay McCarthy wrote: >> I'll work on an updated version. Thanks much. Would you like me to do a diff and commit those c

Re: [racket] News flash! Racket once again a legal choice for developing iPhone apps!

2010-09-16 Thread YC
reading on scrtachbox it seems to cross compile for specifically for embedded linux - is iOS based on linux? On Thursday, September 16, 2010, Stephen De Gabrielle wrote: > FWIW > I once used scratchbox to cross compile mzscheme to arm > > -wikipedia, from Maemo page -> > The Maemo SDK is based ar

Re: [racket] xmlrpc with racket problem

2010-09-16 Thread Jay McCarthy
It's live: http://planet.racket-lang.org/display.ss?package=xml-rpc.plt&owner=jaymccarthy On Thu, Sep 16, 2010 at 9:31 AM, Jay McCarthy wrote: > I'll work on an updated version. > > Jay > > On Thu, Sep 16, 2010 at 5:47 AM, Matt Jadud wrote: >> On Wed, Sep 15, 2010 at 17:34, Tobias Salzmann >>

Re: [racket] News flash! Racket once again a legal choice for developing iPhone apps!

2010-09-16 Thread Ramakrishnan Muthukrishnan
On Thu, Sep 16, 2010 at 8:21 AM, Neil Van Dyke wrote: > Ah, makes sense that compilation of collections is part of the testing. > > There have been multicore ARMs in SMP configurations.  Maybe there's an > option there, if someone wants to look into what's currently available and > whether it's ap

Re: [racket] News flash! Racket once again a legal choice for developing iPhone apps!

2010-09-16 Thread Stephen De Gabrielle
FWIW I once used scratchbox to cross compile mzscheme to arm -wikipedia, from Maemo page -> The Maemo SDK is based around the Debian-oriented Scratchbox Cross Compilation Toolkit, which provides a sandbox environment in which development may take place. Scratchbox uses Qemu to emulate an ARM proce

Re: [racket] [Tutorial?] How to make a macro that takes a procedure as argument

2010-09-16 Thread Ryan Culpepper
Laurent wrote: Dear Racket list, As a non-expert of Scheme macro system, I've been struggling for a while to find out how to define a macro that can take a procedure as argument. For example, suppose you want to define a macro that takes an identifier and an expression, modifies the identifier

Re: [racket] xmlrpc with racket problem

2010-09-16 Thread Jay McCarthy
I'll work on an updated version. Jay On Thu, Sep 16, 2010 at 5:47 AM, Matt Jadud wrote: > On Wed, Sep 15, 2010 at 17:34, Tobias Salzmann wrote: >> there are already news? > > I got buried by life this weekend. > > Dave, do you have any suspicions about how far the webserver has moved > compared

Re: [racket] jaymccarthy/dbm unusable where there is only gdbm

2010-09-16 Thread Jay McCarthy
I've just put up a new version of the package with your change. Thanks, Jay On Wed, Sep 15, 2010 at 10:32 PM, Synx wrote: > Sadly gdbm does not seem to provide a libdbm.so library itself, instead > instructing every program using it to link with both libgdbm and > libgdbm_compat for similar beh

Re: [racket] Getting program options/arguments?

2010-09-16 Thread Robby Findler
It is probably better to use command-line (what Jay pointed to) and, if you do, you can pass the #:argv argument to like Eli suggests. Robby On Thu, Sep 16, 2010 at 8:59 AM, Eli Barzilay wrote: > On Sep 16, Matthias Felleisen wrote: >> If so, to develop the program, open the language dialog in D

Re: [racket] Getting program options/arguments?

2010-09-16 Thread Eli Barzilay
On Sep 16, Matthias Felleisen wrote: > If so, to develop the program, open the language dialog in DrRacket > (cmd L) and ask for details. In the text box for "command line > arguments ..." enter some strings between the parentheses, like > this: > > #("hello" "1" "#t") > > and click OK In the

Re: [racket] Getting program options/arguments?

2010-09-16 Thread Matthias Felleisen
If so, to develop the program, open the language dialog in DrRacket (cmd L) and ask for details. In the text box for "command line arguments ..." enter some strings between the parentheses, like this: #("hello" "1" "#t") and click OK In the definitions window, enter #lang racket (de

Re: [racket] Unexpected procedure identity

2010-09-16 Thread Robby Findler
Sorry, there isn't a way to do that at the moment. But it occurs to me that when Stevie is done with the chaperone overhaul of the contract system then equal? will do what you want (so you can use hashes for your metadata). Robby On Thu, Sep 16, 2010 at 7:05 AM, Markku Rontu wrote: > I'm contin

Re: [racket] Getting program options/arguments?

2010-09-16 Thread Jay McCarthy
http://docs.racket-lang.org/reference/Command-Line_Parsing.html On Thu, Sep 16, 2010 at 5:59 AM, Isaiah Gilliland wrote: > I know many programs that accept input while calling the program like: > "program -o option" I'd really like to use this for my next few projects but > I'm not even really su

Re: [racket] Getting program options/arguments?

2010-09-16 Thread Laurent
On Thu, Sep 16, 2010 at 13:59, Isaiah Gilliland wrote: > I know many programs that accept input while calling the program like: > "program -o option" I'd really like to use this for my next few projects but > I'm not even really sure where to even look for information. I've been > scouring the ra

Re: [racket] Unexpected procedure identity

2010-09-16 Thread Markku Rontu
I'm continuing with define/contract a bit. Let's say there are two definitions like this #lang racket (define/contract (sum/c lon) ((listof number?) . -> . number?) (sum lon)) (define (sum lon) (if (empty? lon) 0 (+ (first lon) (sum (rest lon) > (has-contract? sum

[racket] Getting program options/arguments?

2010-09-16 Thread Isaiah Gilliland
I know many programs that accept input while calling the program like: "program -o option" I'd really like to use this for my next few projects but I'm not even really sure where to even look for information. I've been scouring the racket I/O docs and even the r6rs docs, but haven't found anything

Re: [racket] xmlrpc with racket problem

2010-09-16 Thread Matt Jadud
On Wed, Sep 15, 2010 at 17:34, Tobias Salzmann wrote: > there are already news? I got buried by life this weekend. Dave, do you have any suspicions about how far the webserver has moved compared to where the xmlrpc library is? I simply haven't used Scheme for the better part of six months or mor

Re: [racket] Help: Passing a class to a macro and not an identifier

2010-09-16 Thread Robby Findler
On Thu, Sep 16, 2010 at 4:38 AM, Laurent wrote: > > > On Wed, Sep 15, 2010 at 19:35, Matthias Felleisen > wrote: >> >> On Sep 15, 2010, at 1:33 PM, Laurent wrote: >> >> > >> > This hack will have limitations, >> > >> > Do you have specific ones in mind? >> > >> > but you could take this one step

Re: [racket] Unexpected procedure identity

2010-09-16 Thread Robby Findler
On Thu, Sep 16, 2010 at 1:40 AM, Markku Rontu wrote: > Thanks for the info. > > On Thu, Sep 16, 2010 at 12:27 AM, Robby Findler > wrote: >> >> Contracts are implemented by creating wrapper functions and >> define/contract does this by changing how the variable reference >> "unfun" works. It actua

Re: [racket] Help: Passing a class to a macro and not an identifier

2010-09-16 Thread Laurent
On Wed, Sep 15, 2010 at 19:35, Matthias Felleisen wrote: > > On Sep 15, 2010, at 1:33 PM, Laurent wrote: > > > > > This hack will have limitations, > > > > Do you have specific ones in mind? > > > > but you could take this one step > > further by having the argument to your macro be an identifier

[racket] [Tutorial?] How to make a macro that takes a procedure as argument

2010-09-16 Thread Laurent
Dear Racket list, As a non-expert of Scheme macro system, I've been struggling for a while to find out how to define a macro that can take a procedure as argument. For example, suppose you want to define a macro that takes an identifier and an expression, modifies the identifier in some way, and