Re: [racket] TR memory optimization: 240 Bytes of garbage for calling TR?

2012-11-10 Thread John Clements
On Nov 10, 2012, at 7:29 AM, Robby Findler wrote: > If you're calling from Racket to TR then you have the contract > checking and probably the floats flowing thru there need boxing. If I understand you correctly, the contract checking would just be "is this a float?" which I imagine wouldn't re

Re: [racket] TR memory optimization: 240 Bytes of garbage for calling TR?

2012-11-10 Thread John Clements
On Nov 10, 2012, at 12:30 PM, Neil Toronto wrote: > On 11/10/2012 08:22 AM, John Clements wrote: >> (: comb1 (Float -> Float)) >> (define (comb1 in) >> (define delayed1 (flvector-ref v1 c1)) >> (define midnode1 (fl+ delayed1 (fl* g11 m1))) >> (define out1 (fl+ (fl* g21 midnode1) in)) >> (

Re: [racket] Porting Sawfish to Racket

2012-11-10 Thread Laurent
Dear Sawfish and Racket users, After roughly estimating the effort required to port Sawfish to Racket ( http://sawfish.wikia.com/wiki/Porting_Sawfish_to_Racket ), I found that it would be too much work and would probably not be the best option. The effort required before having anything usable wou

Re: [racket] 80-bit precision in Racket

2012-11-10 Thread Matthias Felleisen
I could imagine a reason #5: you are porting programs from a language that supports 80bits. On Nov 10, 2012, at 4:41 PM, Neil Toronto wrote: > On 11/09/2012 06:56 AM, Dmitry Pavlov wrote: >> 2. Maybe we are cutting blocks with a razor here? >> If there is any simpler way to have native 80-bi

Re: [racket] TR vs. R - Conflicting def of module path

2012-11-10 Thread Ray Racine
Ok. I have a number of minor this-and-thats for base-env.rkt that I've queued up. I'll add this. Patch in a couple of days. Thanks, Ray On Sat, Nov 10, 2012 at 6:46 PM, Sam Tobin-Hochstadt wrote: > I think that paths were added to to the Racket grammar since the Typed > Racket definition wa

Re: [racket] TR vs. R - Conflicting def of module path

2012-11-10 Thread Sam Tobin-Hochstadt
I think that paths were added to to the Racket grammar since the Typed Racket definition was written, and the latter just needs an update. Sam On Nov 10, 2012 2:25 PM, "Ray Racine" wrote: > Consider in R > #lang racket > > (require > racket/place/distributed) > > (quote-module-path) > (module-p

[racket] TOPSL language?

2012-11-10 Thread Jordan Schatz
I came across this: "Topsl: a domain-specific language for on-line surveys" http://topsl.sourceforge.net/ it appears to have been a library / planet package for Racket, its older though. Does anyone know if there has been further work done on it, or a related project? Thanks, Jordan

Re: [racket] 80-bit precision in Racket

2012-11-10 Thread Neil Toronto
On 11/09/2012 06:56 AM, Dmitry Pavlov wrote: 2. Maybe we are cutting blocks with a razor here? If there is any simpler way to have native 80-bit floating point in Racket (say Racket->ASM compilation, Racket->C, LLVM, anything), please do tell me. Here's another razor/brick-related question: Wha

Re: [racket] TR memory optimization: 240 Bytes of garbage for calling TR?

2012-11-10 Thread Neil Toronto
On 11/10/2012 08:22 AM, John Clements wrote: (: comb1 (Float -> Float)) (define (comb1 in) (define delayed1 (flvector-ref v1 c1)) (define midnode1 (fl+ delayed1 (fl* g11 m1))) (define out1 (fl+ (fl* g21 midnode1) in)) (flvector-set! v1 c1 out1) (define next-c1 (add1 c1)) (set! c

[racket] TR vs. R - Conflicting def of module path

2012-11-10 Thread Ray Racine
Consider in R #lang racket (require racket/place/distributed) (quote-module-path) (module-path? (quote-module-path)) => # #t So a Path type satisfies the module-path? predicate in R. In TR abbrev.rkt (define -Module-Path (Un -Symbol -String (-lst* (-val 'quote) -Symbol

Re: [racket] sync and input ports

2012-11-10 Thread Laurent
Yes, that's what I did. The code is here: https://github.com/Metaxal/RWind/blob/master/server-sync.rkt The commented main is the single-sync version, which does not work as intended (i.e., clients can get blocked when several clients are connected), and the uncommented main is with threads, which

Re: [racket] sync and input ports

2012-11-10 Thread Kevin Tew
I'm not sure I understand your question. But you need to wrap your input events with handle-evt or wrap-evt so you can close over state that helps you distinguish the events when sync returns. Kevin On 11/10/2012 10:55 AM, Laurent wrote: Hi, Can a single 'sync' accept several input-port even

[racket] render draw.ss drawings to pdf, ps, etc.

2012-11-10 Thread David Van Horn
Is there an easy way to render draw.ss drawings to PDF or PS? A) I know draw.ss is deprecated -- this is legacy code B) It's OK if the solution involves "magic" (e.g. using some pict library) -- this is just a one-off thing to render some drawings in a high-quality printing format. Thanks!

[racket] sync and input ports

2012-11-10 Thread Laurent
Hi, Can a single 'sync' accept several input-port events? >From my little tests, it seems not, but this does not seem to match what the docs say. To make it work and avoid one of the clients to be blocked half of the time, I needed to run several sync's in different thread. But then I don't see th

Re: [racket] TR Custodians Unavailable

2012-11-10 Thread Ray Racine
Sharp eyes Asusu. I swear I looked at that line at least three times before reporting it. On Sat, Nov 10, 2012 at 12:06 PM, Asumu Takikawa wrote: > On 2012-11-10 10:25:55 -0500, Ray Racine wrote: > >#lang typed/racket > > > >(define: cust : Custodian (current-custodian)) > > > >The

Re: [racket] TR Custodians Unavailable

2012-11-10 Thread Asumu Takikawa
On 2012-11-10 10:25:55 -0500, Ray Racine wrote: >#lang typed/racket > >(define: cust : Custodian (current-custodian)) > >The above fails. I just pushed a fix for this to the git repo. Thanks for the report. Cheers, Asumu Racket Users list: http://lists.racke

Re: [racket] Performance of Racket on Linux and Windows

2012-11-10 Thread Greg Hendershott
Although I don't know the answer, I wanted to suggest using Amazon EC2 as a way you could determine this for your specific application. You could provision two instances, use them for a few hours, then suspend or delete them. Even with the largest instance types it would probably cost ~$15 for say

Re: [racket] TR memory optimization: 240 Bytes of garbage for calling TR?

2012-11-10 Thread Robby Findler
If you're calling from Racket to TR then you have the contract checking and probably the floats flowing thru there need boxing. Can you put the loop itself into TR? Robby On Sat, Nov 10, 2012 at 9:22 AM, John Clements wrote: > I'm trying to implement some simple comb filters for a reverb, using

[racket] TR Custodians Unavailable

2012-11-10 Thread Ray Racine
#lang typed/racket (define: cust : Custodian (current-custodian)) The above fails. Racket Users list: http://lists.racket-lang.org/users

[racket] TR memory optimization: 240 Bytes of garbage for calling TR?

2012-11-10 Thread John Clements
I'm trying to implement some simple comb filters for a reverb, using racket and/or typed racket. I have six of these running in parallel; each one has a vector, and each time a sample arrives, each comb needs to perform two floating-point multiplies and two floating point adds, increment a coun

Re: [racket] TR base-env typing classes/instances

2012-11-10 Thread Ray Racine
While awaiting for some example(s) of provisioning class/instances for racket/... libs in base-env.rkt, I've make satisfactory progress in TRing a core of racket/place and racket/place/distributed with the following approach: 1) Provision procedures based on prim data types / structure datatypes i