Re: [racket] Web Application Deployment

2010-06-25 Thread John Clements
On Jun 23, 2010, at 7:33 AM, Ken Struys wrote: > Oops forgot the link: http://pandela.com/ FWIW dep't.: Linode ($20/month) sounds better than this (16 GB, 512 MB ram, etc.). John Clements smime.p7s Description: S/MIME cryptographic signature ___

Re: [racket] confusing graphics primitives in 2htdp/image

2010-06-25 Thread Robby Findler
Pinholes are planned to return, indeed. But they will not return in the way that they once were there. That is, they will be a more advanced feature and will only come in if you explicitly start using them (details forthcoming). Robby On Fri, Jun 25, 2010 at 6:51 PM, Paul Ojanen wrote: > I got t

Re: [racket] confusing graphics primitives in 2htdp/image

2010-06-25 Thread Paul Ojanen
I got the impression from past discussions that pinholes would return. _ From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Stephen Bloch Sent: Friday, June 25, 2010 11:13 AM To: PLT-Scheme Mailing List Subject: [racket] confusing graphics primitive

Re: [racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

2010-06-25 Thread Danny Yoo
> Meanwhile, configure with `--disable-futures' to disable the use of > thread-local variables in the run-time system, and then the build seems > to work ok. Thank you so much! Yes, this appears to work for me now. _ For list-related administrati

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Groshev Dmitry
This version misses an explicit combinator passing. Z can be replaced by I, Z-memoize, Z-verbose or any other, this is the point. 25.06.10, 22:58, "Ryan Culpepper" : > On 06/25/2010 12:59 PM, Groshev Dmitry wrote: > > Is there any way to avoid this overhead? I'm really interested in > > combin

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Ryan Culpepper
On 06/25/2010 12:59 PM, Groshev Dmitry wrote: > Is there any way to avoid this overhead? I'm really interested in > combinator style, but if it makes programs 8 times slower, it is > useless. Maybe some compiler/macro optimizations is possible? You might find this version interesting: (define-syn

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Groshev Dmitry
Is there any way to avoid this overhead? I'm really interested in combinator style, but if it makes programs 8 times slower, it is useless. Maybe some compiler/macro optimizations is possible? 25.06.10, 22:50, "Matthew Flatt" : > If you're interested in specially the overhead of combinator styl

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Matthew Flatt
If you're interested in specially the overhead of combinator style, then your example still understates the overhead compared to relatively cheap operations. In addition to Matthias's change to get rid of `apply', I've revised your program (see below) to replace `first' and `rest' with `car' and `

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Matthias Felleisen
I think you're comparing apples and oranges here. The use of _apply_ should make things a lost slower for comb-sum than for sum. Also, you should collect garbage before you run timed microbenchmarks. Otherwise you might have bad interactions. With that done, I get the following results: > [:~/D

Re: [racket] confusing graphics primitives in 2htdp/image

2010-06-25 Thread Matthias Felleisen
The names were chosen for backwards compatibility. -- Matthias On Jun 25, 2010, at 11:12 AM, Stephen Bloch wrote: > There are a whole lot of graphics operations in 2htdp/image, and many of them > come in pairs: overlay/xy and place-image, add-line and scene+line, add-curve > and scene+curve,

Re: [racket] Y-combinator perfomance

2010-06-25 Thread Groshev Dmitry
I've mistyped. In fact things are even worse. #lang racket (define-syntax U (syntax-rules () [(_ f) (f f)])) (define-syntax define/comb (syntax-rules () [(_ comb name (arg . args) f) (define name (comb (λ (name) (λ (arg . args) f])) (define (Z f) (U (λ (g) (λ x

Re: [racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

2010-06-25 Thread Neil Van Dyke
FWIW, it built and ran fine for me recently under (IIRC) CentOS 5.3 x86 32-bit under XenServer 5.5. BTW, this is not an endorsement of Xen, and I recommend KVM over Xen for most techie purposes. If you are able to switch to KVM, you might be able to do so with less effort than debugging this

[racket] Y-combinator perfomance

2010-06-25 Thread Groshev Dmitry
Here is the code: #lang racket (define-syntax U (syntax-rules () [(_ f) (f f)])) (define-syntax define/comb (syntax-rules () [(_ comb name (arg . args) f) (define name (comb (λ (name) (λ (arg . args) f])) (define (Z f) (U (λ (g) (λ x (apply (f (U g)) x)

Re: [racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

2010-06-25 Thread Jon Rafkind
Google turns up Xen-related advice about changing "/lib/tls" to "/lib/tls.disabled", other pages about how you shouldn't have to do that anymore, and so on. For now, I don't have any explanation for the behavior that you're seeing other than the possibility that something about thread-local stor

Re: [racket] Using Racket version 5.0 with ubuntu 10.04

2010-06-25 Thread Jon Rafkind
You can use the installer for ubuntu jaunty, other users claim it works fine with 10.04. There is a minor glitch with the installer about an extra README file which you will have to manually delete during the installer. Or you can get the source and build it which is usually painless. http:/

Re: [racket] segmentation fault while compiling mzscheme 4.2.5 on Xen environment

2010-06-25 Thread Matthew Flatt
At Fri, 18 Jun 2010 15:10:46 -0400, Danny Yoo wrote: > I'm seeing the following error when trying to install mzscheme on a > Xen-hosted virtual environment. As far as I can tell, the problem is some issue with Xen and thread-local variables at the OS level. The crash happens on the last instructi

[racket] Using Racket version 5.0 with ubuntu 10.04

2010-06-25 Thread Flavio Souza
Hi, I am a new user and I d like to use Racket 5.0 with ubuntu 10.04. How can I install it? Regards, Flavio _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] confusing graphics primitives in 2htdp/image

2010-06-25 Thread Stephen Bloch
There are a whole lot of graphics operations in 2htdp/image, and many of them come in pairs: overlay/xy and place-image, add-line and scene +line, add-curve and scene+curve, etc. that differ mainly in whether or not they crop the result to the bounding box of one of the images. (They someti

Re: [racket] Calling collect-garbage does not work during a FFI call?

2010-06-25 Thread Matthew Flatt
Garbage collection is not disabled during an FFI call. In fact, it's difficult or impossible to disable GC at all. Finalizers registered with `register-finalizer', however, run in a separate Racket thread. So there's no particular guarantee that finalizers will run before a `collect-garbage' call

Re: [racket] Metaprogramming with scheme

2010-06-25 Thread Valeriya Pudova
The errortrace library is good but for development time not for this case. Also it does not tell error location for each function anyway. Probably because continuation created not for each function. But I found another interesting thing. The error message in DrRake and command line rake are

Re: [racket] Metaprogramming with scheme

2010-06-25 Thread Valeriya Pudova
I suppose the errortrace library might give you more location information. I have never used it so I can't say much more than read the docs and/or hope someone else replies. HTH, N. The errortrace library is good but for development time not for this case. Also it does not tell error lo