Re: [racket] Remote execution in Racket

2010-08-25 Thread Frederick Ross
On Wed, Aug 25, 2010 at 4:38 PM, Eli Barzilay wrote: > IIUC, the intention of `execute' is to run stuff in some known > context, where this is sometimes a temporary directory, and sometimes > a batch job run on your cluster.  So it looks easy to generalize it > (for example, add some keyword) to d

Re: [racket] #%top and hopeless toplevel stuff

2010-08-25 Thread Robby Findler
And, just to be clear, you can look at the code in rep.rkt to see what DrRacket does (altho it is pretty complex; there are a lot of cases). It might help to know that the module-based language case is a fairly simple case and that for other cases, probably the right thing is to make the sandbox d

Re: [racket] #%top and hopeless toplevel stuff

2010-08-25 Thread Matthew Flatt
At Wed, 25 Aug 2010 19:52:17 -0400, Danny Yoo wrote: > I see that the error messages regarding toplevel variables are > slightly different, depending on context. e.g. set! can produce > either the error message > > set!: unbound identifier in module in: x That's a syntax error. > or the mes

Re: [racket] #%top and hopeless toplevel stuff

2010-08-25 Thread Jay McCarthy
Just an idea, every REPL interaction sexp is wrapped in #%top-interaction, that could be how it communicates to set!, but I don't really know. Jay On Wed, Aug 25, 2010 at 5:52 PM, Danny Yoo wrote: > I wanted to make sure I understand how toplevel variables, REPLs and > namespaces work.  I need t

[racket] #%top and hopeless toplevel stuff

2010-08-25 Thread Danny Yoo
I wanted to make sure I understand how toplevel variables, REPLs and namespaces work. I need to understand this because what I'm doing in WeScheme's REPL is not quite right because it doesn't match what is happening with DrRacket's REPL. I see that the error messages regarding toplevel variables

Re: [racket] calling osx binaries from racket

2010-08-25 Thread Jakub Piotr Cłapa
On 25.08.10 20:10, John Clements wrote: IIUC, the basic problem here is that on the mac, many users don't start racket from a terminal window, which means that there isn't a $PATH value to inherit. One solution to this is (as I do) to simply start drracket from the command-line. In this case,

Re: [racket] changing the default language

2010-08-25 Thread Eli Barzilay
On Aug 25, Kartik Agaram wrote: > > * If you're talking about running racket, then you can use a flag > > to set the initial language: "racket -I mzscheme". > > '$ racket -l mzscheme -f main.scm' turns out to be just what I > wanted. Thanks! (And you know that using `load' (which is what "-f" d

Re: [racket] calling osx binaries from racket

2010-08-25 Thread John Clements
On Aug 24, 2010, at 6:58 AM, Jakub Piotr Cłapa wrote: > This came up before and the environment.plist is mentioned in many places as > the proper solution. It seems that Apple introduced /etc/paths.d for this but > you found that it is not sufficient for GUI apps. > > OTOH a simple (getenv "PA

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread philippe sismondi
Bingo. With the combination of the right #lang and (import) stuff I am off to the races. I will certainly study the Guide, and other Racket specific docs. However, as usual when I learn something new, I have to "fix" most of the variables and proceed in a stable setting. Since I have start

Re: [racket] procedure get-compiled-file-sha1: expects 1 argument, given 2

2010-08-25 Thread Laurent
The new way to deal with Windows icons works fine and is easy to use. Thanks a lot Matthew! (for those interested, search for "create-embedding-executable") On Mon, Jun 28, 2010 at 19:54, Laurent wrote: > > > On Mon, Jun 28, 2010 at 15:08, Matthew Flatt wrote: > >> At Sun, 27 Jun 2010 19:34:02

Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Mark Carter
- Original Message > From: Jay McCarthy > I'm interested in figuring out what is overwhelming and alleviating > it. Unless you're overwhelmed by its featurefullness ;) Yes - there's just a lot to absorb all at once. The example blog for Racket is very good. There's things that pu

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread Jim Wise
Eli Barzilay writes: > On Aug 25, Jim Wise wrote: >> Matthias Felleisen writes: >> >> > Open DrRacket, choose Language, click radio button "Use the language >> > declared in the source", type >> > >> > #lang r6rs >> >> Once you do this, IIRC, all of the examples in TSPL4 work in >> DrRacket ex

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread Eli Barzilay
On Aug 25, Jim Wise wrote: > Matthias Felleisen writes: > > > Open DrRacket, choose Language, click radio button "Use the language > > declared in the source", type > > > > #lang r6rs > > Once you do this, IIRC, all of the examples in TSPL4 work in > DrRacket except for those that use set-car! a

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread Matthias Felleisen
On Aug 25, 2010, at 11:40 AM, Jim Wise wrote: > I played some with trying to use those examples with Racket's mcons > mutable pairs, but didn't find any clean way to get there from here, > since enough other things get broken by the fact that cons pairs and > mcons pairs are not interchangeable.

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread Jim Wise
Matthias Felleisen writes: > Open DrRacket, choose Language, click radio button "Use the language > declared in the source", type > > #lang r6rs Once you do this, IIRC, all of the examples in TSPL4 work in DrRacket except for those that use set-car! and set-cdr!, since Racket (by design) does no

Re: [racket] beginner's question on learning Scheme

2010-08-25 Thread Matthias Felleisen
Open DrRacket, choose Language, click radio button "Use the language declared in the source", type #lang r6rs (import (rnrs)) (define ! (lambda (x) (if (= x 0) 1 (* x (! (- x 1)) and in the repl > (! 10) and you'll get the correct result. On Aug 25, 2010, at

[racket] beginner's question on learning Scheme

2010-08-25 Thread philippe sismondi
I am new to Racket and Scheme generally, having started learning Common Lisp about a year ago. I have a question which is probably answered somewhere in the Racket docs or in the archives of this mailing list, but it would be of great help to get a quick answer. I ordered the 4th edition of th

Re: [racket] changing the default language

2010-08-25 Thread Eli Barzilay
On Aug 25, Norman Gray wrote: > On 2010 Aug 25, at 15:22, Eli Barzilay wrote: > > > * And if you're talking about editing in DrRacket, then the > > language dialog has an "Automatic #lang line" that determines > > the line that gets inserted into new buffers. > > ...which you will see if you

Re: [racket] Remote execution in Racket

2010-08-25 Thread Eli Barzilay
Roughly what Noel said, but with an addition. IIUC, the intention of `execute' is to run stuff in some known context, where this is sometimes a temporary directory, and sometimes a batch job run on your cluster. So it looks easy to generalize it (for example, add some keyword) to do either kind o

Re: [racket] changing the default language

2010-08-25 Thread Norman Gray
On 2010 Aug 25, at 15:22, Eli Barzilay wrote: > * And if you're talking about editing in DrRacket, then the language > dialog has an "Automatic #lang line" that determines the line that > gets inserted into new buffers. ...which you will see if you press the 'Show Details' button in the dialog

Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Jay McCarthy
On Wed, Aug 25, 2010 at 2:01 AM, Mark Carter wrote: > Sweet! Many thanks. I've decided to mess around with websites. I'm quite > comfortable with Python (I'm not familiar with any of its web frameworks, > though), but Scheme/Lisp sounded like it would be more fun. Lisp turned out to > be an exerci

Re: [racket] changing the default language

2010-08-25 Thread Eli Barzilay
On Aug 24, Kartik Agaram wrote: > Is there a way to switch the default language to mzscheme (or > something else where the empty list can be evaluated without > quoting) without getting into a module environment? > > (I'm trying to code-generate scheme code.) * If you're talking about generating

[racket] [CUFP 2010] Birds of a Feather sessions

2010-08-25 Thread Anil Madhavapeddy
= Birds of a Feather sessions (BOFs) Commercial Uses of Functional Programming Workshop (CUFP 2010) http://cufp.org/bofs-2010 Baltimore, Maryland, September 30 - October 1 =

[racket] changing the default language

2010-08-25 Thread Kartik Agaram
Is there a way to switch the default language to mzscheme (or something else where the empty list can be evaluated without quoting) without getting into a module environment? (I'm trying to code-generate scheme code.) _ For list-related administrat

Re: [racket] Remote execution in Racket

2010-08-25 Thread Noel Welsh
On Wed, Aug 25, 2010 at 9:11 AM, Frederick Ross wrote: > Someone pointed out serializable continuations in the stateless > servlets code to me, which seem like just about the perfect solution, > but they seem to be tied into that framework. I don't think so. If you (require web-server/lang/abor

Re: [racket] Remote execution in Racket

2010-08-25 Thread Frederick Ross
On Tue, Aug 24, 2010 at 7:08 PM, Richard Cleis wrote: > Can you provide an example? (At this point, one of the profs around here > asserts, "Code, please." :) You're right, code will clarify this. I should have started out asking what people would recommend to do something. My users end up writ

Re: [racket] Web input-string with pre-fllled value

2010-08-25 Thread Mark Carter
- Original Message > From: Nadeem Abdul Hamid > To: Mark Carter > Cc: users@racket-lang.org > Sent: Tue, 24 August, 2010 19:33:05 > Subject: Re: [racket] Web input-string with pre-fllled value > > > > > I would like to pre-fill the VAT Rate input-string with a rate (set to > > 17.