[racket] racket ubuntu ppa upgraded to 5.1.1

2011-06-22 Thread Jon Rafkind
The racket ppa for ubuntu has been upgraded to 5.1.1. This should work on lucid (10.04) maverick (10.10) natty (11.04) although I only tested on lucid. Thanks to Todd O'Bryan for poking me. https://launchpad.net/~plt/+archive/racket _ For li

Re: [racket] json-rpc (was: Re: Racket and .NET)

2011-06-22 Thread Greg Hendershott
I had a similar thought, although my first idea was simply a RESTful string like "function?Param=Val&Parm2=Val2". I also thought it would be nifty to have a `define/contract' variant that would return a wrapper that takes the query params string, unpacks it into the procedure args, raises an excep

Re: [racket] Racket and .NET

2011-06-22 Thread Ben Goetter
On 6/21/2011 6:40 PM, José Lopes wrote: Is there a way of interfacing with Racket from a .NET language? I would like to write a program in F# to use the libraries I have in Racket. Try loading mzcom via F#'s COM interop. Something like let racket = Activator.CreateInstance(Type.GetTypeFrom

[racket] json-rpc (was: Re: Racket and .NET)

2011-06-22 Thread John Clements
On Jun 22, 2011, at 9:21 AM, Grant Rettke wrote: > 2011/6/22 Thomas Chust : >> * Use interprocess or network communication to connect a Racket >> program and a .NET program. > > Anybody used something like this before? Sounds like an interesting > enough problem that there ought to be an e

Re: [racket] Dynamic scope

2011-06-22 Thread John Clements
On Jun 22, 2011, at 9:40 AM, Jay McCarthy wrote: > You probably want something like parameters. +1 John Clements smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/lis

Re: [racket] Dynamic scope

2011-06-22 Thread Jay McCarthy
You probably want something like parameters. You could make a language with dynamic scope if you really wanted it though. You would capture variable accesses with #%top and friends. Or you could just redefine binding/setting forms to use parameters/globals+fluid-let. Jay 2011/6/22 José Lopes : >

[racket] Dynamic scope

2011-06-22 Thread José Lopes
Hello, Is it possible to declare a variable with dynamic scope? Or is there a way of implementing this? Possibly using macros? Regards, José -- José António Branquinho de Oliveira Lopes 58612 - MEIC-A jose.lo...@ist.utl.pt _ For list-related adm

[racket] Changing the background color dynamically in FrTime

2011-06-22 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, is it possible to change the background color of say a fr-text-field% dynamically, for example to represent wether the entry is valid (according to some local criterium). I think I would need something that maps from events to actions, like a

Re: [racket] status of FrTime

2011-06-22 Thread Jay McCarthy
FrTime doesn't have a very good automated test suite, so it hard to instantly fix problems. Mostly we check that the demos run before releases. One of my goals is to improve its state (in particular, the documentation) and see about making the implementation faster. Jay 2011/6/22 Marijn : > -

Re: [racket] Racket and .NET

2011-06-22 Thread Grant Rettke
2011/6/22 Thomas Chust : >  *  Use interprocess or network communication to connect a Racket >     program and a .NET program. Anybody used something like this before? Sounds like an interesting enough problem that there ought to be an existing solution already that doesn't involve SOAP or REST or

[racket] Fwd: regexp-match number

2011-06-22 Thread Louis-Philippe
my use case is for substutition, and so need to work with regex-replace, as its third argument, I don't think the grouping operator works in that case... some named sub-expression could do it I believe, I can't find any information about Racket supporting this, am I wrong? 2011/6/22 Matthew Fla

Re: [racket] status of FrTime

2011-06-22 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/22/11 14:42, Marijn wrote: > Hi list, > > I'm quite interested in the FrTime language, and decided to use my new > knowledge of implementing graphical programs in Racket to try and bluff > my way into a bit of FrTime hacking. Unfortunately it se

Re: [racket] regexp-match number

2011-06-22 Thread Matthew Flatt
You could wrap the "\1" with the grouping operator "(?:...)": > (regexp-match #px"(.*)\\1001" "abcabc001") bad pregexp string: backreference number is larger than the highest-numbered cluster > (regexp-match #px"(.*)(?:\\1)001" "abcabc001") '("abcabc001" "abc") At Wed, 22 Jun 2011 09:52:09

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Todd O'Bryan
And in contrast to clay tablets and, oh laptops, you can read things written on paper at the beach without worrying about getting sand in them. And sitting at the barber shop without worrying that you'll run out of power. And in the tub without worrying that they'll get the water muddy. Or electroc

Re: [racket] retrieving an https url

2011-06-22 Thread Matthias Felleisen
On Jun 22, 2011, at 9:27 AM, Greg Hendershott wrote: > ;; make-ports : url -> in-port x out-port > (define (make-ports url proxy) > (let ([port-number (if proxy Thanks for pointing out that the comments are out of sync with the code :-) [another story for Sam's arsenal] _

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Matthew Flatt
At Tue, 21 Jun 2011 15:39:06 -0500, Don Blaheta wrote: > If I put a single > example in a file and then run > >scribble --latex myfile.scrbl > > I get a LaTeX file that is an entire \document, not one that I can > \include elsewhere. I've added a `--latex-section' mode to `scribble', so s

[racket] regexp-match number

2011-06-22 Thread Louis-Philippe
Hi all, I have a small question about regexp-match: when I want to insert a sub-expression followed by a number what should I write? like "\1001" to insert sub-expression 1 followed by 001 right now tries to insert sub-expression 1001... is there a way to escape this? thanks! L-P

Re: [racket] Scribble's codeblock is collapsing whitespace?

2011-06-22 Thread Matthew Flatt
At Tue, 21 Jun 2011 16:12:54 -0400, Danny Yoo wrote: > I'm trying to layout the following important program: > > @codeblock|{ > #lang planet dyoo/bf >*** > * * > * o> ** > * * >* * > > }| > > Unfortunately, when

Re: [racket] retrieving an https url

2011-06-22 Thread Greg Hendershott
At first I thought you meant users would need to set this parameter each time. Then I looked on GitHub.com and found this: ;; make-ports : url -> in-port x out-port (define (make-ports url proxy) (let ([port-number (if proxy (caddr proxy) (or (url-po

Re: [racket] Racket and .NET

2011-06-22 Thread Thomas Chust
2011/6/22 José Lopes : > [...] > Is there a way of interfacing with Racket from a .NET language? I > would like to write a program in F# to use the libraries I have in > Racket. > [...] Hello José, there is no direct link between the CLR and the Racket runtime. Therefore you have two options:

[racket] status of FrTime

2011-06-22 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, I'm quite interested in the FrTime language, and decided to use my new knowledge of implementing graphical programs in Racket to try and bluff my way into a bit of FrTime hacking. Unfortunately it seems the windowing part of FrTime is a bit b

Re: [racket] Tutorial: writing a language (brainf*ck) in Racket

2011-06-22 Thread Sam Tobin-Hochstadt
On Wed, Jun 22, 2011 at 12:03 AM, Danny Yoo wrote: > > So it looks like a multiple of 4.  It would be nice if that constant > were smaller, but I'm still impressed that Racket gets even that > close, given how little time Racket takes to do the actual > compilation. Here are some more vague thoug

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Prabhakar Ragde
Don Blaheta wrote: I certainly don't expect that a feature be implemented just because I want it, and even good features may take a while due to being low priority or whatever. And there may well be some technical impediment to just creating a scribble.sty and working from there that I (a newco

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Ohad Kammar
> So I'd like to second the request that there be an easy way to include > Scribble code in a LaTeX document. I conclude differently, especially as LaTeX is a fairly horrible place to be as a programming language. A perfectly reasonable solution is to include LaTeX code in a Scribble-like languag

Re: [racket] Integrating scribble and LaTeX

2011-06-22 Thread Stephen Bloch
On Jun 22, 2011, at 1:43 AM, Don Blaheta wrote: > The reasons I want to use Scribble snippets inside a broader LaTeX > context is that I have a substantial part of this document already > written, and a huge installed base of LaTeX documents that include a > large amount of custom definitions. I

Re: [racket] comment colors in DrRacket

2011-06-22 Thread Neil Van Dyke
Neil Van Dyke wrote at 06/20/2011 11:20 PM: Anyone have opinions on DrRacket's yellow default color for comments? Is it OK, great, lousy? If you want to email me directly, I will summarize responses. I've decided to have the new Emacs mode mimic DrRacket's yellow comments (comments colored

Re: [racket] rackunit (success)

2011-06-22 Thread Noel Welsh
On Mon, Jun 20, 2011 at 5:56 PM, Anthony Carrico wrote: > On 06/20/2011 12:50 PM, Anthony Carrico wrote: >> Sorry the thanks didn't go to the list, but actually there is more. I >> think I'm reaching for a way to make sure it took that (success) code >> path. That would be necessary to truly test