[racket-users] ANN: glob, for Unix-style globbing

2015-03-30 Thread Benjamin Greenman
I've pushed a script for globbing to the package server. It exports two functions, `glob` and `in-glob`. I hope that some day functions like these can be in racket/file, but until then, enjoy. (glob "./files/*.rkt") Returns a list of all files ending with the .rkt extension in the directory "files

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
On Mar 30, 2015, at 10:16 PM, Robby Findler wrote: > On Monday, March 30, 2015, Alexander D. Knauth wrote: > Well the point of using the configure-runtime was that it would run when it > was the “main" program so that exact-decimals would work in the repl, but if > this file was required as a

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Robby Findler
On Monday, March 30, 2015, Alexander D. Knauth wrote: > Well the point of using the configure-runtime was that it would run when > it was the “main" program so that exact-decimals would work in the repl, > but if this file was required as a library, it wouldn’t set the parameter > for the other p

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
Well the point of using the configure-runtime was that it would run when it was the “main" program so that exact-decimals would work in the repl, but if this file was required as a library, it wouldn’t set the parameter for the other program. But should the tests be thought of as the “main” pro

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Robby Findler
I believe the intention of configure-runtime is that it runs only when your file is run as the main program and not when your program is run as a library (via require). So I don't think you can use that facility to implement the exact-decimal language. Robby On Mon, Mar 30, 2015 at 8:56 PM, Alexa

[racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
For my exact-decimal meta-language, I had some tests that depend on the read-decimal-as-inexact parameter being set to #f by configure-runtime. It seems like raco test isn’t running that before running the tests. Is that intentional? (by the way the tests are not within a test submodule) --

Re: [racket-users] abort test but not test suite?

2015-03-30 Thread 'John Clements' via users-redirect
On Mar 30, 2015, at 1:58 PM, Alexis King wrote: > The check-equal? function and friends don't do anything special to delimit > control, so failing a check will abort the whole program if it isn't > contained within a test case. You can use the test-case or test-begin forms > to limit the exte

Re: [racket-users] abort test but not test suite?

2015-03-30 Thread Alexis King
The check-equal? function and friends don't do anything special to delimit control, so failing a check will abort the whole program if it isn't contained within a test case. You can use the test-case or test-begin forms to limit the extent of fail-check (which just raises an exn:test:check excep

[racket-users] abort test but not test suite?

2015-03-30 Thread 'John Clements' via users-redirect
I’m writing a test suite, and I’d like a way to abort a test without aborting a test suite. It looks to me like “fail-check” is supposed to do this. Here’s the code I wrote: #lang racket (require rackunit) (define (f x) (fail-check "foo") (/ 1 0)) (check-equal? (f 3) 4) (check-equal? 9 1

Re: [racket-users] Custom repl UI widgets

2015-03-30 Thread Steve Olsen
Cool, I have a little snip now that I have a precedure and an input value and when I click I can increment the input val and display the re-evaluated expression. One thing I'd like to add are some controls like a slider or buttons. I know I could just draw something my self and handle clicks mys

[racket-users] reading & writing the preamble of an XML file

2015-03-30 Thread Matthew Butterick
I understand that the preamble of an XML file (e.g., a first line like ) is not part of the X-expression representing that file. That's why in `response/xexpr`, there's an option for adding a preamble. [1] But with static XML files, I'm unclear about how preambles are supposed to be handled. U

[racket-users] Package information not updating on the server?

2015-03-30 Thread Laurent
After a long time without updating my packages, I may have forgotten how to do it properly. On pkgs.racket-lang.org, once logged in, I'm clicking on one of my packages' names (say bazaar), and change something (say, the Description). Then I press Enter, focus on something else, click the cross to

Re: [racket-users] Arcs and lines being half-drawn

2015-03-30 Thread Matthias Felleisen
You need to provide a running program, including inputs. (You may also wish to read the style guide for Racket.) On Mar 26, 2015, at 10:39 AM, chia kang ren wrote: > http://pasterack.org/pastes/75790 > http://pasterack.org/pastes/11360 > http://pasterack.org/pastes/10455 -- You received th

Re: [racket-users] manifesto move

2015-03-30 Thread Matthias Felleisen
Thanks. Fixed -- Matthias On Mar 30, 2015, at 8:32 AM, Daniel Bastos wrote: > Matthias, at least in this new address the PDF is a broken link. It currently > points to > > http://www.ccs.neu.edu/home/matthias/manifesto/manifesto.pdf > > which yields a "file not found" answer upon reques

Re: [racket-users] manifesto move

2015-03-30 Thread Daniel Bastos
Matthias, at least in this new address the PDF is a broken link. It currently points to http://www.ccs.neu.edu/home/matthias/manifesto/manifesto.pdf which yields a "file not found" answer upon request. On Sat, Mar 28, 2015 at 11:03 AM, Matthias Felleisen wrote: > > Now that the scribble is m