[racket-dev] repeatable segfault in expander

2011-09-20 Thread Sam Tobin-Hochstadt
The below program segfaults the expander, but not the compiler (tested with git HEAD): [samth@punge:~/sw/plt/collects/tests/racket/benchmarks/shootout (master) plt] r Welcome to Racket v5.1.3.9. - (define x '(module m racket (require racket/require) (require (filtered-in (lambda (n)

Re: [racket-dev] [racket] Code compiled for version ~a, not ~a

2011-09-20 Thread Matthew Flatt
At Tue, 20 Sep 2011 00:56:01 -0400, Guillaume Marceau wrote: When I was doing it earlier, I was skipping the 'raco setup -D' step. I was under the impression that the 'raco link' operation updated the necessary info-domain/compiled/cache.rktd files automatically. When I add or remove a

Re: [racket-dev] repeatable segfault in expander

2011-09-20 Thread Matthew Flatt
Fix pushed. At Tue, 20 Sep 2011 11:04:46 -0400, Sam Tobin-Hochstadt wrote: The below program segfaults the expander, but not the compiler (tested with git HEAD): [samth@punge:~/sw/plt/collects/tests/racket/benchmarks/shootout (master) plt] r Welcome to Racket v5.1.3.9. - (define x

[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] error with futures and the compiler

2011-09-20 Thread Sam Tobin-Hochstadt
The attached program works fine, and if compiled, it works fine with small inputs: [samth@punge] r tst.rkt 40 /dev/null [samth@punge] r tst.rkt 4000 /dev/null [samth@punge] raco make tst.rkt [samth@punge] r tst.rkt 40 /dev/null But with big inputs, when compiled, it fails: [samth@punge] r

Re: [racket-dev] error with futures and the compiler

2011-09-20 Thread Robby Findler
Are the unsafe operations ever misapplied? Robby On Tue, Sep 20, 2011 at 4:27 PM, Sam Tobin-Hochstadt sa...@ccs.neu.edu wrote: The attached program works fine, and if compiled, it works fine with small inputs: [samth@punge] r tst.rkt 40 /dev/null [samth@punge] r tst.rkt 4000 /dev/null

Re: [racket-dev] error with futures and the compiler

2011-09-20 Thread Sam Tobin-Hochstadt
Here's a rather smaller version, with the same error: #lang racket/base (require racket/future racket/flonum racket/fixnum racket/cmdline) (define N (command-line #:args (n) (string-number n))) (define (M Ci) (let loop ([Zr 0.0]) (fl+ 0. Ci) (loop 0.0))) (for ([y N])

Re: [racket-dev] error with futures and the compiler

2011-09-20 Thread Matthew Flatt
Fix pushed. At Tue, 20 Sep 2011 17:57:01 -0400, Sam Tobin-Hochstadt wrote: Here's a rather smaller version, with the same error: #lang racket/base (require racket/future racket/flonum racket/fixnum racket/cmdline) (define N (command-line #:args (n) (string-number n)))

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

2011-09-20 Thread Kevin Tew
Place channels only work between places (os threads spawned using the `place' primitives). Place channels can't be used with an OS thread spawned by an arbitrary C library. but src/racket/src/mzrt.c contains synchronization operations for use between OS threads. Place channels are built on