[racket-dev] another small doc typo

2011-09-29 Thread John Clements
Again, ignore this if it's already been fixed. The docs contain this example: #lang racket (provide main) (define (any-double? l) (for/or ([i (in-list l)]) (for/or ([i2 (in-list l)]) (= i2 (* 2 i) (define (main) (define p (place ch (define l (place-channel-get ch

[racket-dev] More places questions

2011-09-29 Thread John Clements
The example in the guide works fine: #lang racket (provide main) (define (any-double? l) (for/or ([i (in-list l)]) (for/or ([i2 (in-list l)]) (= i2 (* 2 i) (define (main) (define p (place ch (define l (place-channel-get ch)) (define l-double? (any-double? l)

[racket-dev] ACM publishing and ArXiv

2011-09-30 Thread John Clements
In case you didn't catch Stephanie Weirich's post of this on plus.google.com, here's some very interesting information about ArXiv and ACM and where copyrights intersect. It may be that you can avoid much of this by only publishing "draft" versions of your paper on ArXiv; I Am Not A Lawyer. Jo

Re: [racket-dev] ACM publishing and ArXiv

2011-09-30 Thread John Clements
On Sep 30, 2011, at 10:07 AM, John Clements wrote: > In case you didn't catch Stephanie Weirich's post of this on plus.google.com, > here's some very interesting information about ArXiv and ACM and where > copyrights intersect. > > It may be that you can avoid m

Re: [racket-dev] More places questions

2011-09-30 Thread John Clements
On Sep 30, 2011, at 6:31 AM, Matthew Flatt wrote: > At Fri, 30 Sep 2011 09:21:42 -0400, Eli Barzilay wrote: >> A few minutes ago, Kevin Tew wrote: >>> place-channel-put is not blocking. >> >> So "channel" in the name is not a good choice... > > We use "channel" for asynchronous channels, too, s

Re: [racket-dev] More places questions

2011-09-30 Thread John Clements
On Sep 30, 2011, at 5:28 AM, Sam Tobin-Hochstadt wrote: > On Fri, Sep 30, 2011 at 12:26 AM, John Clements > wrote: >> I'm guessing that calling place-channel-put with a descriptor pulls out the >> associated channel... should the docs indicate this? > > The do

Re: [racket-dev] Release for v5.2 is about to begin

2011-10-02 Thread John Clements
On Oct 2, 2011, at 1:30 PM, Ryan Culpepper wrote: > The release process for v5.2 will begin in about a week. If > you have any new features that you want in and are relatively close > to being done, now is a good time to do that. Cool... 5.2! What's the occasion? John smime.p7s Descriptio

[racket-dev] Autosave recovery: lovely (though it does lead to an internal error...)

2011-10-02 Thread John Clements
Just saw the autosave recovery feature for the first time; super-nice. It was immediately followed by an internal error that may or may not be repeatable, though it looks like a straightforward insertion of "path->string" will solve it. John set-label in control<%>: expected argument of typ

Re: [racket-dev] Transparent Structures in XML Library

2011-10-03 Thread John Clements
On Oct 3, 2011, at 2:13 PM, Doug Williams wrote: > There are ways around it like that. For example, I'm trying to get in the > habit of using ~.s in printf's where it might occur. But, I think it would be > easy in this case to just fix the real problem. I don't think I would agree that #:tran

Re: [racket-dev] Transparent Structures in XML Library

2011-10-03 Thread John Clements
On Oct 3, 2011, at 3:01 PM, Doug Williams wrote: > The fact that transparent structures also print all of their element - in > this case recursively, ad nauseam - is more of a side effect. In that case, I > think prop:custom-write properties should be added. I assume any of the print > limitin

[racket-dev] blocked on a mzrt-sema that gets collected: okay?

2011-10-04 Thread John Clements
I conjecture that if a place is blocked on a mzrt_sema semaphore and if that semaphore is then collected using a call to mzrt_sema_destroy(), then the waiting thread will simply wait forever. Is that correct? John smime.p7s Description: S/MIME cryptographic signature

Re: [racket-dev] blocked on a mzrt-sema that gets collected: okay?

2011-10-04 Thread John Clements
On Oct 4, 2011, at 1:48 PM, Matthew Flatt wrote: > At Tue, 4 Oct 2011 13:34:17 -0700, John Clements wrote: >> I conjecture that if a place is blocked on a mzrt_sema semaphore and if that >> semaphore is then collected using a call to mzrt_sema_destroy(), then the >> waiti

[racket-dev] plea for short planet syntax in student languages?

2011-10-05 Thread John Clements
I'm using the rsound planet package in beginning student languages, and requiring them to type (require (planet "main.rkt" ("clements" "rsound.plt 2 6"))) at the top of every file is a bit painful. Would it be difficult to support the shorter (require (planet clements/rsound)) syntax in the

[racket-dev] Distributing C libraries (was: Re: New plot library pushed)

2011-10-05 Thread John Clements
On Oct 5, 2011, at 9:45 AM, Neil Toronto wrote: > I've just pushed the new 'plot' library. > > Eli and I both forgot that the new 'plot' still needs the old libfit, and > removed it along with libplplot. I just added libfit back (the sources are in > "src/fit" now instead of "src/plot/fit") al

[racket-dev] open untagged files in blank language level?

2011-10-06 Thread John Clements
Currently, opening a file that doesn't begin with a #lang line results in a window whose language level is inherited from the buffer that was foremost when the open-file was issued (IIUC). I think this is a mistake. I think that instead, the language level should revert to "Use the language defi

Re: [racket-dev] open untagged files in blank language level?

2011-10-06 Thread John Clements
On Oct 6, 2011, at 11:30 AM, Robby Findler wrote: > Two hours ago, John Clements wrote: >>> Currently, opening a file that doesn't begin with a #lang line >>> results in a window whose language level is inherited from the >>> buffer that was foremost when the o

Re: [racket-dev] open untagged files in blank language level?

2011-10-07 Thread John Clements
On Oct 7, 2011, at 4:27 AM, Robby Findler wrote: > On Thu, Oct 6, 2011 at 10:37 PM, Stephen Bloch wrote: >> >> >> On Oct 6, 2011, at 4:35 PM, "John Clements" >> wrote: >> >>> If there's any disagreement, it's about what sh

Re: [racket-dev] plea for short planet syntax in student languages?

2011-10-07 Thread John Clements
On Oct 7, 2011, at 9:50 AM, Robby Findler wrote: > I've just now pushed a change for this. Awesome! Can't wait. Will this be a part of 5.2? John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks:

[racket-dev] advice on linking against racket in windows

2011-10-08 Thread John Clements
I'm building cross-platform binaries, and one of my platforms is Windows. Moreover, I'm calling mzrt_sema primitives from my library, but those are the only Racket functions I'm calling. I can think of at least three possible approaches to this, and if someone can give me 30 seconds of advice,

Re: [racket-dev] advice on linking against racket in windows

2011-10-08 Thread John Clements
On Oct 8, 2011, at 10:39 AM, Matthew Flatt wrote: > At Sat, 8 Oct 2011 10:28:58 -0700, John Clements wrote: >> I'm building cross-platform binaries, and one of my platforms is Windows. >> >> Moreover, I'm calling mzrt_sema primitives from my library, but th

Re: [racket-dev] advice on linking against racket in windows

2011-10-08 Thread John Clements
On Oct 8, 2011, at 10:43 AM, Matthew Flatt wrote: > At Sat, 8 Oct 2011 10:41:52 -0700, John Clements wrote: >> >> On Oct 8, 2011, at 10:39 AM, Matthew Flatt wrote: >> >>> At Sat, 8 Oct 2011 10:28:58 -0700, John Clements wrote: >>>> I'm building c

Re: [racket-dev] open untagged files in blank language level?

2011-10-10 Thread John Clements
On Oct 8, 2011, at 7:47 AM, Robby Findler wrote: > Okay, here's what I've done for the upcoming release. (It is a kind-of > patch on the existing setup, but perhaps that's appropriate, since the > right long-term solution is to move everything to #lang.) > > When a file is opened, and the langu

[racket-dev] Fwd: Can't pass cpointers in 5.1.3, correct?

2011-10-11 Thread John Clements
Just to confirm this: it looks like I can't pass cpointers through place-channels in version 5.1.3. However, it looks to me like I can cheat, using the standard unsafe C transformations to turn pointers into numbers and back again, right?[*] John [*]The pointer in question is allocated using m

[racket-dev] Typed Racket & ffi/vector ?

2011-10-14 Thread John Clements
Does typed racket know about ffi/vector, and more specifically s16vectors? I can't find a typed/ffi/vector, and if I import them as opaque types, typed racket won't know about the representations of these vectors, and it doesn't seem reasonable to think that they'd do a good job of optimizing th

[racket-dev] Windows ffi's 'malloc raw' can't be paired with C 'free'

2011-10-18 Thread John Clements
It looks like there's a problem with the ffi implementation of (malloc ... 'raw) in Windows. In particular, if I call 'free()' in a C extension on a block of memory that was allocated with (malloc ... 'raw), I get the Windows equivalent of a core dump, with an exception code that indicates "hea

Re: [racket-dev] Windows ffi's 'malloc raw' can't be paired with C 'free'

2011-10-18 Thread John Clements
On Oct 18, 2011, at 3:36 PM, Matthew Flatt wrote: > At Tue, 18 Oct 2011 15:27:28 -0700, John Clements wrote: >> It looks like there's a problem with the ffi implementation of (malloc ... >> 'raw) in Windows. In particular, if I call 'free()' in a C extensio

Re: [racket-dev] Pre-Release Checklist for v5.2, Second Call

2011-10-21 Thread John Clements
directory, you can do this: > cd ...racket-root... > git archive --remote=git://git.racket-lang.org/plt.git release \ > -- collects/tests | tar x > > -- > > * John Clements > - Stepper Tests >

[racket-dev] occasional seg faults when calling C routine

2011-10-21 Thread John Clements
I'm getting occasional (non-reliably-reproducible) seg faults when calling a C routine that copies bits from one place to another. My working assumption is that the buffer is getting moved by GC in between the computation of the pointers and the actual ffi invocation, though that's a fairly tig

Re: [racket-dev] occasional seg faults when calling C routine

2011-10-21 Thread John Clements
On Oct 21, 2011, at 2:30 PM, Matthew Flatt wrote: > > In case it helps, I'm thining of adding something like the following to > the docs: > > > For the following scenarios, assume > > * A `define-mylib' form of the sort that `ffi/unsafe/define' would > produce. > > * A C function f() that

Re: [racket-dev] [plt] Push #23788: master branch updated

2011-10-27 Thread John Clements
On Oct 27, 2011, at 4:51 PM, ro...@racket-lang.org wrote: > robby has updated `master' from 91866f58c7 to dc24fbf62d. > http://git.racket-lang.org/plt/91866f58c7..dc24fbf62d Those were open-source? MOST, MOST, AWESOME>> John smime.p7s Description: S/MIME cryptographic signature __

[racket-dev] First Face of the Day

2011-10-29 Thread John Clements
Good thing I encountered a bug at "0:00". Happy Birthday! John smime.p7s Description: S/MIME cryptographic signature _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

[racket-dev] REPL broken for #lang racket language?

2011-11-04 Thread John Clements
It looks to me like my drracket REPL is unusable. To wit: 1) unset PLTCOLLECTS. 2) move ~/Library/Racket 3) move ~/Library/Preferences/*racket* 4) start drracket 5) Choose "Use Language Declared in Source" 6) Run 7) In REPL, evaluate 13 ... get this error message: compile: unbound identifier (an

Re: [racket-dev] Racket home page proposal

2011-12-20 Thread John Clements
On Dec 20, 2011, at 8:08 AM, Sam Tobin-Hochstadt wrote: > On Tue, Dec 20, 2011 at 8:02 AM, Matthias Felleisen > wrote: >> >> I do NOT like pages that have text below my laptop screen 'fold'. >> My eyes do glaze over. And I am off the page quickly. > > The important questions about this are: >

[racket-dev] please merge to release: Fwd: [plt] Push #24173: master branch updated

2012-01-18 Thread John Clements
anch updated > > clements has updated `master' from 276cb4150d to 481bc2f00f. > http://git.racket-lang.org/plt/276cb4150d..481bc2f00f > > =[ 2 Commits ]== > > Directory summary: > 100.0% collects/stepper/private/ > &

Re: [racket-dev] Pre-Release Checklist for v5.2.1

2012-01-19 Thread John Clements
On Jan 17, 2012, at 3:44 PM, Ryan Culpepper wrote: > Checklist items for the v5.2.1 release > (using the v5.2.0.900 release candidate build) > > Search for your name to find relevant items, reply when you finish an > item (please indicate which item/s is/are done). Also, if you have any > comm

Re: [racket-dev] Pre-Release Checklist for v5.2.1, second call

2012-01-23 Thread John Clements
directory, you can do this: > cd ...racket-root... > git archive --remote=git://git.racket-lang.org/plt.git release \ > -- collects/tests | tar x > > -- > > * Matthew Flatt > - mzc --exe tests &

Re: [racket-dev] Pre-Release Checklist for v5.2.1, second call

2012-01-23 Thread John Clements
On Jan 20, 2012, at 12:18 PM, Ryan Culpepper wrote: > Checklist items for the v5.2.1 release > (using the v5.2.0.900 release candidate build) > > * John Clements > - Stepper Updates: update HISTORY > (updates should show v5.2.1 as the most current version; email me >

[racket-dev] check over this doc fix to slideshow's (dc ...) before I push?

2012-01-28 Thread John Clements
e procedure. Let me know if I should/shouldn't push the commit below: John oiseau:~/plt/collects/scribblings/slideshow clements$ git show 72edb8c commit 72edb8c861ecb5ccfb90ade8d83ae86a6289bc13 Author: John Clements Date: Sat Jan 28 15:11:18 2012 -0500 added docs for a&d args of

Re: [racket-dev] "bookmarks" in drracket?

2012-02-03 Thread John Clements
On Feb 3, 2012, at 10:32 AM, Matthias Felleisen wrote: > > I would think that browser-like buttons are enough, and match the stack > philosophy. > > I also think that stacks are fine. If working with bookmarks suggest we want > something else, we should explore this as a second step. I agr

[racket-dev] very unhelpful beginner language error message, possible fix proposed

2012-02-10 Thread John Clements
A user on stackoverflow had a question about this code: (define list-sum-odd (lambda (list) (cond ((null? list) 0) ((odd? (car list)) (+ (car list) (list-sum-odd (cdr list (list-sum-odd (cdr list) (list-sum-odd '(3 4 5)) ... which signalled an error. In #lang rac

Re: [racket-dev] very unhelpful beginner language error message, possible fix proposed

2012-02-10 Thread John Clements
On Feb 10, 2012, at 2:43 PM, Danny Yoo wrote: >> >> "Ho Ho!" thought I. "Beginner Student Racket will give a much better error >> message." Actually, though, the error message was much worse: it highlighted >> the id "list-sum-odd" in what should have been the 'else' case, and wrote: >> >> "l

Re: [racket-dev] new logo

2012-02-11 Thread John Clements
On Feb 11, 2012, at 11:59 AM, Sam Tobin-Hochstadt wrote: > On Sat, Feb 11, 2012 at 1:27 PM, John Clements > wrote: >> >> Also, in case it's not obvious, a rotated and flipped version of the logo >> does recall the lambda pretty clearly: >> > > A

Re: [racket-dev] new logo

2012-02-12 Thread John Clements
On Feb 12, 2012, at 9:37 AM, David Van Horn wrote: > On 2/11/12 3:04 PM, Asumu Takikawa wrote: >> On 2012-02-11 13:23:46 -0500, Matthias Felleisen wrote: >>> Have you guys considered a small change that makes the 'r' more >>> lambda-ish? >> >> Maybe an 'r' in different scripts can be considered?

[racket-dev] build fail for 64-bit OS X af9bab74265

2012-02-13 Thread John Clements
After axing and re-creating the src directory, I get this error while building racket on 64-bit Lion: a - src/rational.o a - src/read.o a - src/regexp.o a - src/resolve.o a - src/salloc.o a - src/sema.o a - src/setjmpup.o a - src/sfs.o a - src/string.o a - src/struct.o a - src/symbol.o a - src/sy

Re: [racket-dev] Google Summer of Code

2012-02-14 Thread John Clements
On Feb 13, 2012, at 5:15 AM, Matthias Felleisen wrote: > > Go do it. Both Asumu and John have sent similar signals. Take the initiative. > Do! I sent an e-mail to Asumu about a week ago that sneakily tried to get him to take responsibility, and it sounds like he might be on it. If not, I'll

[racket-dev] confused by output of macro stepper -- ooh, I see why! --> UI suggestion.

2012-02-14 Thread John Clements
I was trying to investigate the expansion behavior of a piece of code for which I just submitted a bug, and used the macro stepper. I was confused by what I saw. Here's the program: #lang racket (define (takes-kwd-arg #:kwd-arg opt) (not opt)) (let ([named-val (takes-kwd-arg #:kwd-arg #t)])

Re: [racket-dev] new logo

2012-02-15 Thread John Clements
On Feb 15, 2012, at 10:24 AM, Michael W wrote: > I'm no graphics designer but I've been playing with Eli's logo a > bit. I went gradient-happy; sorry. > > Here it is with a silvery sheen: > http://dl.dropbox.com/u/219506/racket-logo/whitesilver-subtle.png > > Less subtle, darker silver: > http:

Re: [racket-dev] Google Summer of Code

2012-02-15 Thread John Clements
On Feb 15, 2012, at 5:33 AM, David Van Horn wrote: > On 2/15/12 8:27 AM, Matthias Felleisen wrote: >> >> On Feb 14, 2012, at 10:26 PM, Asumu Takikawa wrote: >> >>> On 2012-02-14 09:58:12 -0800, John Clements wrote: >>>> I sent an e-mail to Asumu about

[racket-dev] OS X 10.8 includes new restrictions on running apps

2012-02-21 Thread John Clements
In a move that I find not even slightly surprising, the new Apple operating system (10.8, out soon?) includes new features that make it harder for developers to deploy their code on user machines. http://tidbits.com/article/12795 Specifically, the technology is called "Gatekeeper", and it allo

Re: [racket-dev] Interactive Stepping

2012-02-21 Thread John Clements
On Feb 21, 2012, at 1:44 PM, Stephen Bloch wrote: > The latest student query on "users@racket-lang" comes from a student who > typed an expression at the prompt and hit "Step" to single-step its > evaluation. Which is a reasonable thing to do, and one I've wished for years > were possible. H

Re: [racket-dev] OS X 10.8 includes new restrictions on running apps

2012-02-21 Thread John Clements
On Feb 21, 2012, at 7:54 PM, Eli Barzilay wrote: > A few minutes ago, Sam Tobin-Hochstadt wrote: >> On Tue, Feb 21, 2012 at 10:22 PM, Eli Barzilay wrote: >>> >>> Also, it's likely that I don't understand, but it sounds to me >>> like it's better to stay out of this thing since otherwise you >>>

Re: [racket-dev] build fail for 64-bit OS X af9bab74265

2012-02-22 Thread John Clements
On Feb 13, 2012, at 5:16 PM, Matthew Flatt wrote: > Have you changed anything about your installation via MacPorts lately? > > I think you're seeing a mismatch between a MacPorts iconv and the > pre-installed iconv. See also > > https://lists.racket-lang.org/dev/archive/2011-April/006153.html

Re: [racket-dev] OS X 10.8 includes new restrictions on running apps

2012-02-22 Thread John Clements
On Feb 22, 2012, at 1:05 PM, Norman Gray wrote: > > Greetings. > > On 2012 Feb 22, at 20:03, Jens Axel Søgaard wrote: > >> The tech press reports that the default is to "medium" i.e. applications >> downloaded from the mac app store and from identified developers (that is >> signed application

[racket-dev] Racket web server doesn't handle POST requests with 'Transfer-Encoding: chunked' ?

2012-03-09 Thread John Clements
My students are working on an assignment that has them CPS and defunctionalize a small evaluator so that they can ship computations from one compute server to another: http://www.brinckerhoff.org/clements/csc430-wi12/Assignments/ass7.html As part of this assignment, some of the students are wri

Re: [racket-dev] Racket web server doesn't handle POST requests with 'Transfer-Encoding: chunked' ?

2012-03-09 Thread John Clements
On Mar 9, 2012, at 12:18 PM, Jay McCarthy wrote: > There is nothing going wrong with the supported features of the Web > server. It's just that the Web server doesn't support any > Transfer-Encoding other than the default of no encoding. From RFC2616: "A server which receives an entity-body wit

Re: [racket-dev] Racket web server doesn't handle POST requests with 'Transfer-Encoding: chunked' ?

2012-03-09 Thread John Clements
semble chunked data when it comes back as a response, so this may be as simple as making the right call in the right place. John > > Jay > > On Fri, Mar 9, 2012 at 2:18 PM, John Clements > wrote: >> >> On Mar 9, 2012, at 12:18 PM, Jay McCarthy wrote: >> &g

Re: [racket-dev] racket virtual machine out of memory error

2012-03-09 Thread John Clements
his likely the same error? In this case, the process itself shouldn't be using more than 100MB or so of live data, but perhaps it just never collects and constantly increases the virtual memory address space? Forgive my ignorance, John Clements smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] style guide on blank lines

2012-03-12 Thread John Clements
The style guide has this to say about blank lines: "5.8 Spaces Don’t pollute your code with spaces at the end of lines and extraneous blank lines." This comes out pretty strongly against "extraneous" blank lines. In writing the code below, though, it seems to me that the blank lines aid readab

Re: [racket-dev] style guide on blank lines

2012-03-13 Thread John Clements
es: ~e" > teachpack-requires))) > > (define (flagged-requires stx teachpack-requires) > (for/list ([tp-rq (in-list teachpack-requires)]) >(stepper-syntax-property stx 'stepper-ignore-completely #t))) > > > > > On Mar 13, 2012, at 2:16 AM, Joh

Re: [racket-dev] style guide on blank lines

2012-03-13 Thread John Clements
On Mar 13, 2012, at 11:10 AM, Matthias Felleisen wrote: > > > Okay. I am adding > > Don't pollute your code with spaces at the end of lines. > > If you find yourself breaking long blocks of code with blank lines to aid > readability, consider refactoring your program to introduce auxiliary

Re: [racket-dev] [plt] Push #24425: master branch updated

2012-03-13 Thread John Clements
ectory summary: > 98.0% collects/lang/ > > ~~ > > 8d6e9e7 John Clements 2012-03-13 12:09 > : > | cleanup and refactoring of run-teaching-program, minor teachpack stepper fix One other note/question: in order to make the code read nicely, I imported split-at and seque

[racket-dev] doc typo?

2012-03-16 Thread John Clements
The documentation for in-directory reads: "Return a sequence that produces all of the paths for files, directories, and links with dir. If dir is not #f, then every produced path starts with dir as its prefix. If dir is #f, then paths in and relative to the current directory are produced." Was

Re: [racket-dev] Migrating the bug database to GitHub

2012-03-16 Thread John Clements
On Mar 16, 2012, at 3:56 PM, Sam Tobin-Hochstadt wrote: > * The bug notification-turned-mailing-list interaction aspect of Gnats >is mostly lost. GitHub sends out notifications when a bug is >created, but it will *not* send out further comments unless you're >participating in the di

Re: [racket-dev] Migrating the bug database to GitHub

2012-03-17 Thread John Clements
- I think that it > is a good thing overall, including not needed a czar. I just want the > implications to be clear ahead of time. Okay, many thanks; this makes sense. John > > > > On Friday, March 16, 2012, Sam Tobin-Hochstadt wrote: > > On Fri, Mar 16, 2012 at 7

[racket-dev] Oversight in type for path-string?

2012-03-21 Thread John Clements
It looks like 'path-string?' is not labeled as a discriminator type. > path-string? - : (Any -> Boolean) # > Is this just an oversight? John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Oversight in type for path-string?

2012-03-21 Thread John Clements
On Mar 21, 2012, at 3:20 PM, Sam Tobin-Hochstadt wrote: > On Wed, Mar 21, 2012 at 5:36 PM, John Clements > wrote: >> It looks like 'path-string?' is not labeled as a discriminator type. >> >>> path-string? >> - : (Any -> Boolean) >> # >

[racket-dev] FYI only: core dump during file open

2012-04-13 Thread John Clements
DrRacket just seg-faulted while trying to open a file after my choice in the dialog box. The stack trace blames an ffi call … objc_send ? Anyhow, JFYI. smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread John Clements
On Apr 18, 2012, at 8:00 AM, Ryan Culpepper wrote: > Checklist items for the v5.3 release > (using the v5.2.901.1 release candidate build) I'm confused by the OS X download options on the pre-release download page (http://pre.racket-lang.org/release/installers/). Specifically, one of the entr

Re: [racket-dev] Pre-Release Checklist for v5.3

2012-04-19 Thread John Clements
On Apr 18, 2012, at 8:00 AM, Ryan Culpepper wrote: > * John Clements > - Stepper Tests > Updates: > - Stepper Updates: update HISTORY > (updates should show v5.3 as the most current version; email me > to pick the changes when they're done, or tell me if there

[racket-dev] Thanks for faster builds!

2012-04-25 Thread John Clements
I recently completed a full build from source in 15-20 minutes; I think that's about *half* of what it used to take. Many thanks! John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] change abs to magnitude in rackunit^W everywhere?

2012-04-26 Thread John Clements
I see that rackunit's check-= handles real numbers only, since it uses "abs" on the difference between the two. I want to use it on complex numbers, and it would seem that changing 'abs' into 'magnitude' would not change the non-error-signalling behavior, and would allow its use on complex numbe

[racket-dev] modules with both 'test' and 'main' submodules: looks like a Dr bug?

2012-04-26 Thread John Clements
I'm seeing an inconsistency in the behavior of submodules that looks like a bug in DrRacket (as opposed to Racket). First, though, it looks like running a module in DrRacket runs *both* the main and test submodules, if they both exist. I don't think this behavior is documented; I see this text:

[racket-dev] Doc fix for make-argb?

2012-05-04 Thread John Clements
The docs for make-argb read: Constructs a new argb value. The vector has four entries for each pixel, an alpha, red, green, and blue value. The int specifies the width of the image; the height is the size of the vector, divided by 4, divided by the width. This documentation doesn't specify whet

[racket-dev] emscripten? (was: Re: Using clang to Build Racket on Mac OS X)

2012-05-09 Thread John Clements
On Sep 10, 2011, at 6:33 PM, Will M. Farr wrote: > Thanks, Matthew! It seems to build OK now. > I missed the implication of this, the first time around. If I'm reading this correctly, it means that clang can compile racket, which is awfully close to being able to run Racket using an LLVM m

Re: [racket-dev] emscripten? (was: Re: Using clang to Build Racket on Mac OS X)

2012-05-09 Thread John Clements
On May 9, 2012, at 2:47 PM, Michael W wrote: > That's an interesting thought. > > Racket currently uses GNU Lightning as its JIT, correct? What if > it used LLVM instead? > http://en.wikipedia.org/wiki/LLVM#Description > > Of course this is much more work than just getting racket to > build wit

[racket-dev] race setup tests gives wrong error message, best way to fix?

2012-05-10 Thread John Clements
Apologies in advance if this is a known or fixed issue. Running raco setup tests gives the following error message: raco setup: given collection path: "tests" is not in canonical form (e.g., wrong case on a case-insensitive filesystem) === context === /Users/clements/plt/collects/setup/set

[racket-dev] Fwd: Introducing Developer ID and Gatekeeper.

2012-06-13 Thread John Clements
For what it's worth, I still have the info for our "Apple Developer ID" (it's 'plt'), and the password. Anyone want this info in order to sign forthcoming releases? John Begin forwarded message: > From: Apple Developer > Subject: Introducing Developer ID and Gatekeeper. > Date: April 30, 201

[racket-dev] building WeScheme using Eclipse

2012-06-16 Thread John Clements
I'm trying to build WeScheme locally, and wrestling with Eclipse. Specifically, I've completed all of the steps given in the README, and I'm now trying to figure out how to deploy it. It appears to me that I'll need to use Eclipse, in order to make use of the GWT resources that we installed as

[racket-dev] doc fix for with-contract?

2012-06-19 Thread John Clements
It looks to me like the "free-var-list" is optional in uses of with-contract and define/contract. The documentation, though, suggests that this is not the case. Specifically, free-var-list is defined as: free-var-list = #:freevars ([id co

Re: [racket-dev] [plt] Push #24868: master branch updated

2012-06-20 Thread John Clements
On Jun 20, 2012, at 9:10 AM, Eli Barzilay wrote: > Just now, Jon Rafkind wrote: >> This push resulted in the following failure (drdr will tell you the >> same thing in a few minutes probably). >> >> raco setup: error: during making for stepper/private >> raco setup: expand: unbound identifier

[racket-dev] sequence syntax for (mlist #t #f …) ?

2012-06-20 Thread John Clements
Reality check before I do something dumb and re-invent the wheel: I often want to write a for loop where the first element is treated specially. In such cases, it would be nice to have a sequence that had a #t and then an infinite number of #f's, so I could write (for ([s my-sequence] [first? ]

Re: [racket-dev] sequence syntax for (mlist #t #f …) ?

2012-06-21 Thread John Clements
On Jun 21, 2012, at 1:24 AM, Eli Barzilay wrote: > An hour and a half ago, John Clements wrote: > > >> Yes, of course I can do it the ugly way: >> [...] >> (define p1 (mcons #f 'bogus)) >> (set-mcdr! p1 p1) >> (define true-then-falses (mcons #t p1))

Re: [racket-dev] sequence syntax for (mlist #t #f …) ?

2012-06-21 Thread John Clements
> (for/list ([b (in-list (nested-flow-blocks i))] > [pos (in-naturals)]) >(render-block b part ri (and starting-item? (zero? pos) > > Robby > > On Thu, Jun 21, 2012 at 3:24 AM, Eli Barzilay wrote: >> An hour and a half ago, John Clements

Re: [racket-dev] check-syntax hack: patch to show how many uses an identifier has

2012-06-21 Thread John Clements
really--radiate from this point, or would I need to go to the binding identifier and figure out how many uses the thing has? John > > > On Jun 20, 2012, at 10:48 PM, John Clements wrote: > >> When I'm using online check syntax, I often look at the lines leaving an >

Re: [racket-dev] [plt] Push #24901: master branch updated

2012-06-25 Thread John Clements
On Jun 25, 2012, at 4:34 PM, Matthias Felleisen wrote: > > The largest part of my commit today concerns a re-organization of > the documentation for lang/htdp* functions. In the past we lived with > lists of strings that were eventually turned into a quasi-defproc. > > I have scribblized the

Re: [racket-dev] check-syntax hack: patch to show how many uses an identifier has

2012-06-27 Thread John Clements
On Jun 21, 2012, at 10:09 AM, Robby Findler wrote: > I'll try to do something along these lines. It shouldn't be hard to > make it a tooltip. Don't spend too much time on it! John > > Robby > > On Thu, Jun 21, 2012 at 11:03 AM, John Clements > wrote

[racket-dev] Minor inconsistency in stepper interface: which way would be right?

2012-07-26 Thread John Clements
Right now, the stepper and the ordinary interactions window disagree in one minor detail (well, one that I know about…): In the stepper, test cases (e.g. (check-expect (+ 3 4) 7)) reduce to a boolean, and leave a printed boolean value in the list of results. In the interactions window, though, n

Re: [racket-dev] Pre-Release Checklist for v5.3, second call

2012-07-26 Thread John Clements
On Jul 25, 2012, at 4:28 PM, Ryan Culpepper wrote: > > * John Clements > - Stepper Tests Done. > Updates: > - Stepper Updates: update HISTORY > (updates should show v5.3 as the most current version; email me > to pick the changes when they're done, or te

Re: [racket-dev] [plt] Push #25088: master branch updated

2012-07-26 Thread John Clements
On Jul 26, 2012, at 8:09 PM, Robby Findler wrote: > How about "Misc. minor bug fixes" or something like that instead? Sure… done. John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] DrDr - previous/next change buttons

2012-07-30 Thread John Clements
On Jul 30, 2012, at 5:42 PM, Jay McCarthy wrote: > DrDr now has green buttons to go between times the file's output has > changed. Hopefully this will help you find problematic commits easier. Here's what I think is a super-minor request. When I view the diff of two DrDr outputs; say: http://d

Re: [racket-dev] DrDr - previous/next change buttons

2012-07-31 Thread John Clements
On Jul 31, 2012, at 3:57 PM, Jay McCarthy wrote: > Done :) Thanks! John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] number-of-bindings tooltip: thanks!

2012-08-27 Thread John Clements
I see that you've added a tooltip on check-syntax hover that shows how many uses a variable has. Thanks! John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Racket backend for my Python visualizer

2012-08-27 Thread John Clements
s. It may well be that you're actually interested in student language programs, which would be good in the sense that the stepper's annotation is more robust for these programs, and a bit of extra work in the sense that I'd have to doctor the annotation to take this into account

[racket-dev] desired behavior of (in-directory …) when lacking permissions?

2012-08-31 Thread John Clements
Currently, using the (in-directory …) sequence in a directory where there are unreadable directories causes a funny internal contract failure. Suppose I have directory "/tmp/f", containing directory "sekrit" which I cannot read. Then this program: #lang racket (sequence->list (in-directory "/t

Re: [racket-dev] [plt] Push #25302: master branch updated

2012-08-31 Thread John Clements
On Aug 31, 2012, at 3:07 PM, mfl...@racket-lang.org wrote: > mflatt has updated `master' from eed93825ab to 7b2e18afc5. > http://git.racket-lang.org/plt/eed93825ab..7b2e18afc5 > > =[ 2 Commits ]== > Directory summary: > 11.6% collects/rac

[racket-dev] typed racket non-monotonic in scary way?

2012-09-07 Thread John Clements
I was trying to write a function on natural numbers today, and came up with an example that scares me all to bits. This program: #lang typed/racket (: int->nat (Natural -> Natural)) (define (int->nat n) (cond [(<= n 0) 13] [else (- n 1)])) Does not type-check, because (- n 1) has type

Re: [racket-dev] What are single flonums good for?

2012-09-14 Thread John Clements
On Sep 12, 2012, at 1:03 PM, Jay McCarthy wrote: > On Wed, Sep 12, 2012 at 8:31 AM, Neil Toronto wrote: >> Compatibility with C code? Why not have the FFI convert them? >> >> Save space? I can see that. It won't help much if they're sent to math >> library functions, though. Those will convert

Re: [racket-dev] Short-circuiting comprehensions

2012-09-14 Thread John Clements
On Sep 14, 2012, at 1:14 PM, Robby Findler wrote: > My $0.02: I find #:while and #:when to be too close, and #:until and > #:unless even closer. More bike-shedding: I agree. In response to eli: I find the difficulty of reading "break-when" to be an adequate cost to pay to highlight the differen

[racket-dev] Optimization Coach suggestion / question

2012-09-14 Thread John Clements
I used the optimization coach for the first time today. First, a suggestion. I wrestled with it for about five minutes before I realized that it applied only to programs written in TR. An error message here would be *really* useful; I kept mousing over and clicking and unclicking things to get t

Re: [racket-dev] Optimization Coach suggestion / question

2012-09-14 Thread John Clements
On Sep 14, 2012, at 4:50 PM, Vincent St-Amour wrote: > At Fri, 14 Sep 2012 15:39:22 -0700, > John Clements wrote: >> I used the optimization coach for the first time today. First, a >> suggestion. I wrestled with it for about five minutes before I realized >> that it

<    1   2   3   4   5   >