Re: [racket] Possible to install both plt-scheme from repo and racket from racket-lang.org?

2010-08-24 Thread Laurent
On Wed, Aug 25, 2010 at 07:51, Eli Barzilay wrote: > On Aug 24, Laurent wrote: > > > > Probably dividing packages into core, textual, gui, docs, etc. would > > be nice I suppose. > > Not really necessary: the textual distribution is the core one (it > isn't really a core at the moment, but it wil

[racket] Boston Lisp Meeting: Monday 2010-09-20 Hari Prashanth on Functional Data Structures for Typed Racket

2010-08-24 Thread Francois-Rene Rideau
Boston Lisp Meeting: Monday 2010-09-20 Hari Prashanth on Functional Data Structures for Typed Racket http://fare.livejournal.com/158662.html A Boston Lisp Meeting will take place on Monday, September 20th 201

Re: [racket] Possible to install both plt-scheme from repo and racket from racket-lang.org?

2010-08-24 Thread Eli Barzilay
On Aug 24, Laurent wrote: > > Probably dividing packages into core, textual, gui, docs, etc. would > be nice I suppose. Not really necessary: the textual distribution is the core one (it isn't really a core at the moment, but it will be more core-ish); the gui (core) distribution is much bigger s

Re: [racket] calling osx binaries from racket

2010-08-24 Thread Stephen De Gabrielle
Ah- I missed your post on April 28. Further thinking on the issue, I'm inclined to let the user specify a path to the executable as a configuration setting - or even include the major platform executables in the plugin - and just avoid burdening users with scripts. Cheers, Stephen On Tuesday,

Re: [racket] let-one unused? field

2010-08-24 Thread Matthew Flatt
At Tue, 24 Aug 2010 17:19:46 -0400, Danny Yoo wrote: > I've been upgrading some of my programs from 4.2.5 to 5.0.1; I'm > looking at changes to the output of compiler/zo-parse, and I see that > a new field has been added to the let-one called 'unused?'. In what > situation would 'unused?' be true?

Re: [racket] Typed Racket reactions on developing polymorphic typed array library, and questions

2010-08-24 Thread Vincent St-Amour
At Mon, 23 Aug 2010 17:58:41 -0700, Neil Toronto wrote: > It's fun to open the macro stepper and see "unsafe" scattered > everywhere, in all the places I expect it. Pretty much every time it's > not there is when I expect TR to be able to prove something it can't prove. Do you have examples besi

Re: [racket] let-one unused? field

2010-08-24 Thread Jay McCarthy
Blake and I just blindly copy the C code, we don't know what it means. Jay On Tue, Aug 24, 2010 at 3:19 PM, Danny Yoo wrote: > I've been upgrading some of my programs from 4.2.5 to 5.0.1; I'm > looking at changes to the output of compiler/zo-parse, and I see that > a new field has been added to

[racket] let-one unused? field

2010-08-24 Thread Danny Yoo
I've been upgrading some of my programs from 4.2.5 to 5.0.1; I'm looking at changes to the output of compiler/zo-parse, and I see that a new field has been added to the let-one called 'unused?'. In what situation would 'unused?' be true? _ For list

Re: [racket] Typed Racket: file-position has incorrect type

2010-08-24 Thread Vincent St-Amour
Good catch. I just pushed a fix. Vincent At Tue, 24 Aug 2010 15:39:30 -0400, Jon Zeppieri wrote: > > [1 ] > [1.1 ] > file-position should be typed as: > > (case-lambda (Port -> Exact-Nonnegative-Integer) (Port > Exact-Nonnegative-Integer -> Void)) > > ... but it has type: > > (Port -> Exac

[racket] Typed Racket: file-position has incorrect type

2010-08-24 Thread Jon Zeppieri
file-position should be typed as: (case-lambda (Port -> Exact-Nonnegative-Integer) (Port Exact-Nonnegative-Integer -> Void)) ... but it has type: (Port -> Exact-Nonnegative-Integer) -Jon _ For list-related administrative tasks: http://lists.ra

Re: [racket] (Practical) Limits of Apply?

2010-08-24 Thread Eli Barzilay
On Aug 24, Will M. Farr wrote: > > So, I guess the answer to my question is: "there is no limit on > apply that takes effect before basic memory limits". Hopefully > others will find this useful as well. A relevant point here is the `append*' function which does what you want without using `appl

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

2010-08-24 Thread Nadeem Abdul Hamid
> > I would like to pre-fill the VAT Rate input-string with a rate (set to 17.5 > as a > default). Is there a way I can do that? > You probably have to define your own formlet, e.g.: (define init-input-string (λ(val) (to-string

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

2010-08-24 Thread Mark Carter
I'm trying to construct a simple tax calculator in Racket for use over the web. Here's my code so far: #lang web-server/insta (require web-server/formlets) (define new-post-formlet (formlet (div "Amount: " ,{input-string . => . amount} ;,(select-input '("Net" "Gross") . => . type)

Re: [racket] (Practical) Limits of Apply?

2010-08-24 Thread Will M. Farr
Well, the following program #lang racket (for ((log-length (in-range 23))) (let ((length (expt 2 log-length))) (printf "Applying append to list of ~a singletons~%" length) (time (apply append (for/list ((i (in-range length))) (list i)) Runs fine for me---the final stage reports Ap

Re: [racket] (Practical) Limits of Apply?

2010-08-24 Thread Robby Findler
Try it out and see. I believe that the below is considered a common idiom and that Matthew has probably done some work to make it work well, but the contribution of a stress test is always welcome. Robby On Tue, Aug 24, 2010 at 12:31 PM, Will M. Farr wrote: > Hello all, > > I recently encountere

[racket] (Practical) Limits of Apply?

2010-08-24 Thread Will M. Farr
Hello all, I recently encountered some library code of the form (apply append list-of-lists) where list-of-lists could be essentially arbitrarily long (i.e. list-of-lists came from clients of the library, and therefore could be anything). I didn't try to break it, but it made me a little nerv

Re: [racket] Remote execution in Racket

2010-08-24 Thread Richard Cleis
Can you provide an example? (At this point, one of the profs around here asserts, "Code, please." :) RAC On Aug 24, 2010, at 1:02 AM, Frederick Ross wrote: On Sat, Aug 21, 2010 at 8:07 PM, Neil Van Dyke wrote: For example, is there a reason that you cannot simply generate a small Scheme

Re: [racket] Possible to install both plt-scheme from repo and racket from racket-lang.org?

2010-08-24 Thread Laurent
On Tue, Aug 24, 2010 at 17:47, Eli Barzilay wrote: > On Aug 19, Laurent wrote: > > > > After some searching, maybe EPM (www.epmhome.org) is a good > > solution. It seems to be a nice, simple, Unix multi-platform > > package manager from binaries. It was very easy (noob here) to > > create a .de

Re: [racket] Possible to install both plt-scheme from repo and racket from racket-lang.org?

2010-08-24 Thread Eli Barzilay
On Aug 19, Laurent wrote: > > After some searching, maybe EPM (www.epmhome.org) is a good > solution. It seems to be a nice, simple, Unix multi-platform > package manager from binaries. It was very easy (noob here) to > create a .deb file from a Racket medium size project. It can also > create

Re: [racket] calling osx binaries from racket

2010-08-24 Thread Jakub Piotr Cłapa
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 "PATH") returns the same things as echo $PATH in a Terminal window.

Re: [racket] Racket filesystem interface

2010-08-24 Thread Synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/23/2010 09:44 AM, Jay McCarthy wrote: > In fact, it is already written: > > http://planet.racket-lang.org/display.ss?package=stat.plt&owner=synx Anyone who uses this, please let me know anywhere I screwed up on, that needs fixing. I just pushe

Re: [racket] text formatting questions

2010-08-24 Thread Robby Findler
It is part of racket. The text% class does what he described. Robby On Mon, Aug 23, 2010 at 8:26 PM, Mathew Kurian wrote: > Hey guys...those were all excellent answers and helped greatly. > However, it seems that Matthew Flatt's descriptions were a bit more > consistent with what i had in mind.

[racket] calling osx binaries from racket

2010-08-24 Thread Stephen De Gabrielle
Hi, This isn't actually a problem with racket, but just a helpful tip for OS X user who want to use the racket system commands for exectables they have installed themselves. (I found it looking at the documentation for an OS X GIT tool) My problem was I couldn't get (system command) to call newly

Re: [racket] Remote execution in Racket

2010-08-24 Thread Frederick Ross
On Sat, Aug 21, 2010 at 8:07 PM, Neil Van Dyke wrote: > For example, is there a reason that you cannot simply generate a small > Scheme code file to that temporary directory, expressing whatever is needed > for the batch run on the cluster?  If not, is the barrier the programming > difficulty in c