[racket-dev] foreign struct access different in 5.1.3?

2011-09-16 Thread John Clements
I'm trying to backport working FFI code to 5.1.3, and I'm having trouble referring to elements of a C struct. Specifically, in the presence of this definition (define-cstruct _rack-audio-closure ([sound _pointer] [cur-sample_ulong] [num-samples _ulong] [stop-now

Re: [racket-dev] foreign struct access different in 5.1.3?

2011-09-16 Thread John Clements
On Sep 16, 2011, at 3:06 PM, John Clements wrote: I'm trying to backport working FFI code to 5.1.3, and I'm having trouble referring to elements of a C struct. Specifically, in the presence of this definition (define-cstruct _rack-audio-closure ([sound _pointer] [cur-sample

Re: [racket-dev] posting to semaphore from C causes seg fault

2011-09-17 Thread John Clements
On Sep 17, 2011, at 7:32 AM, Matthew Flatt wrote: It looks like the call in C might have been in a thread other than the thread where Racket was started. In that case, when scheme_post_sema() tries to cooperate with the GC, then it would end up with a NULL pointer for the Racket GC

[racket-dev] FYI crash in os X cairo

2011-09-17 Thread John Clements
Disregard unless interested: crash while running program, drracket #8e5bb730b369b169821695e1b3216d68a8d71d64 from Friday 16th. Process: racket [11531] Path:/Users/clements/plt/bin/racket Identifier: racket Version: ??? (???) Code Type: X86-64 (Native)

[racket-dev] heads-up on gcc-clang switch

2011-09-18 Thread John Clements
FYI: Extracted from an audio mailing list, of possible interest re: Mac compilation; it looks like Apple's switching to clang. In fact, gcc may (already? soon?) be a front end for clang. John Begin forwarded message: From: Kyle Sluder kyle.slu...@gmail.com Date: September 17, 2011 8:58:27

Re: [racket-dev] heads-up on gcc-clang switch

2011-09-18 Thread John Clements
On Sep 18, 2011, at 3:33 PM, Sam Tobin-Hochstadt wrote: Apple has already switched to clang, that happened with XCode 4. Previously, they shipped both and old version of GCC (4.2), and a compiler which used the GCC frontend and an LLVM backend. They made this switch because they didn't like

[racket-dev] Using places to synchronize with C threads?

2011-09-20 Thread John Clements
It looks like you've done the heavy lifting of creating primitives that can be used to synchronize between OS threads. Is there any way to use place channels to interact between the main Racket thread and an OS thread spawned by an audio library? I don't see any documentation that provides a

[racket-dev] system-library-subpath etc. on windows 32-bit and 64-bit platforms?

2011-09-22 Thread John Clements
In distributing compiled binaries for Windows, I'm trying to cover all of the bases for the required DLLs. As far as I can tell from Visual Studio 2010, there are only two flavors, 32-bit and 64-bit. However, I see that on at least one of my students' machines, the system-library-subpath

Re: [racket-dev] system-library-subpath etc. on windows 32-bit and 64-bit platforms?

2011-09-22 Thread John Clements
On Sep 22, 2011, at 10:22 PM, Neil Van Dyke wrote: Matthew or someone can give an authoritative answer, but if this lets you sleep tonight... I suspect the win32 in Racket is fine, and that Visual Studio just has a backward-compatibility awkwardness in naming. Win32 was the name of one

[racket-dev] missing negation in guide for places?

2011-09-29 Thread John Clements
It sure looks to me like this sentence from the docs is missing a really important not: The consequence of this second feature is that place should appear immediately in a module or in a function that is called in a module’s top level; otherwise, invoking the module will invoke the same module

[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

[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?

[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.

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 much of this by only publishing draft

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, such as

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 cleme...@brinckerhoff.org wrote: I'm guessing that calling place-channel-put with a descriptor pulls out the associated channel... should the docs indicate this? The docs here: http

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 Description:

[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 type

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

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 limiting

[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 waiting thread will simply wait

[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) along with

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 open-file was issued (IIUC

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 bl...@adelphi.edu wrote: On Oct 6, 2011, at 4:35 PM, John Clements cleme...@brinckerhoff.org wrote: If there's any disagreement, it's about what should happen when an existing file

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 those are the only Racket functions I'm

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 cross-platform binaries, and one of my platforms is Windows

[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

[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

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 extension on a block of memory

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

2011-10-21 Thread John Clements
-lang.org/plt.git release \ -- collects/tests | tar x -- * John Clements cleme...@brinckerhoff.org - Stepper Tests Updates: - Stepper Updates: update HISTORY (updates should show v5.2 as the most current version

[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

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 expects a

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

2011-10-28 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 (and

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 matth...@ccs.neu.edu 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

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

2012-01-18 Thread John 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/ ~~ 758523b John Clements cleme...@racket

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 commits

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 cleme...@brinckerhoff.org - 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
should/shouldn't push the commit below: John oiseau:~/plt/collects/scribblings/slideshow clements$ git show 72edb8c commit 72edb8c861ecb5ccfb90ade8d83ae86a6289bc13 Author: John Clements cleme...@racket-lang.org Date: Sat Jan 28 15:11:18 2012 -0500 added docs for ad args of slideshow's dc

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 agree;

[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

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: list-sum-odd:

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 cleme...@brinckerhoff.org wrote: Also, in case it's not obvious, a rotated and flipped version of the logo does recall the lambda pretty clearly: And here I thought this [attached

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? For

[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 -

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

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:

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 a week ago that sneakily tried to get him to take

[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

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. How

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 e...@barzilay.org 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

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 applications) are

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 with a

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

2012-03-09 Thread John Clements
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 cleme...@brinckerhoff.org wrote: On Mar 9, 2012, at 12:18 PM, Jay McCarthy wrote: There is nothing going wrong

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

2012-03-09 Thread John Clements
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-13 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

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] 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

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

2012-03-17 Thread John Clements
to be clear ahead of time. Okay, many thanks; this makes sense. John On Friday, March 16, 2012, Sam Tobin-Hochstadt sa...@ccs.neu.edu wrote: On Fri, Mar 16, 2012 at 7:19 PM, John Clements cleme...@brinckerhoff.org wrote: On Mar 16, 2012, at 3:56 PM, Sam Tobin-Hochstadt wrote

[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) #procedure:path-string? Is this just an oversight? John smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list:

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 cleme...@brinckerhoff.org wrote: It looks like 'path-string?' is not labeled as a discriminator type. path-string? - : (Any - Boolean) #procedure:path-string? Is this just

[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

[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

[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

[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

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 with

[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 ===

[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 develo...@insideapple.apple.com Subject: Introducing Developer ID and

[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

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 in module

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

2012-06-21 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)) What about (shared ([fs (cons #f fs)]) (cons #t fs

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

2012-06-21 Thread John Clements
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 identifier and wonder: is that just one line

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

2012-06-26 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 docs

[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,

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 cleme...@brinckerhoff.org - 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 tell me

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:

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-28 Thread John Clements
this into account. I sincerely hope that you're able to make progress on this: I've seen that python visualizer output, and I would *love* to have something like that running for Racket programs. All the best, John Clements (cc: racket-dev) See below ... On Sat, Aug 25, 2012 at 4:10

[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

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%

[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 neil.toro...@gmail.com 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

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 difference

[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

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 applied only to programs written

Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-17 Thread John Clements
on experimental-mumble… John Ryan On 09/16/2012 08:31 PM, John Clements wrote: I want to apply a transformation to a nested pattern element. To start with, suppose I have a (kind of useless) with-handlers that looks like this: (with-syntax ([((arg

Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-17 Thread John Clements
On Sep 17, 2012, at 11:27 AM, Ryan Culpepper wrote: On 09/17/2012 02:20 PM, John Clements wrote: On Sep 16, 2012, at 5:48 PM, Ryan Culpepper wrote: See 'define-template-metafunction' in syntax/parse/experimental/template. Remember to change the relevant occurrences of 'syntax

[racket-dev] Hi to Matthias and the rest of the team.

2012-10-10 Thread John Clements
I've just had a very brief round of e-mail with M. Fatih Köksal, who sends his best to Matthias and the rest of the team. Cheers, John (Mehmet) smime.p7s Description: S/MIME cryptographic signature _ Racket Developers list: http://lists.racket-lang.org/dev

<    1   2   3   4   >