[racket-users] Syntax parameters and renaming

2015-05-05 Thread Jack Firth
I find that 99% of the time when I'm using syntax parameters, I'm just using them with make-rename-transformer to implement macro-dependent keyword-like things, such as `aif` and `it`. So I made a small helper macro syntax-parameterize-rename: (syntax-parameterize-rename ([param #'foo]) ...) e

Re: [racket-users] Regular expressions and Unicode categories

2015-05-05 Thread Evgeny Odegov
05.05.2015 20:41, Gustavo Massaccesi пишет: I was tiring to solve the extended version of a Rosetta code task, but I can't find the correct regexp to match accented letters and numbers: #lang racket (regexp-match #px"\\.\\p{L}+$" "zz.aBc") ;==> '(".aBc") (regexp-match #px"\\.\\p{L}+$" "zz.ñéü")

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-05 Thread Alexander D. Knauth
On May 5, 2015, at 10:06 AM, Robby Findler wrote: > One of the issues is that the racket/draw version is not doing the > cropping that the 2htdp/image version is doing. Changing the > "scene+line" call in utils.rkt to "add-line" cuts the freeze time in > half for me (using size 242 instead of 72

[racket-users] Re: [racket] Racket 6.0 does not work

2015-05-05 Thread Stephen Chang
> ./racket: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found > (required by ./racket) I just ran into this problem and a search led me to this thread, thanks. I am running Debian 7.8 wheezy which includes glibc 2.13. I originally used the Ubuntu 12.04 (Precise) 64bit installer fro

[racket-users] Regular expressions and Unicode categories

2015-05-05 Thread Gustavo Massaccesi
I was tiring to solve the extended version of a Rosetta code task, but I can't find the correct regexp to match accented letters and numbers: #lang racket (regexp-match #px"\\.\\p{L}+$" "zz.aBc") ;==> '(".aBc") (regexp-match #px"\\.\\p{L}+$" "zz.ñéü") ;==> '(".ñéü") (regexp-match #px"\\.\\p{N}+$"

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-05 Thread Robby Findler
One of the issues is that the racket/draw version is not doing the cropping that the 2htdp/image version is doing. Changing the "scene+line" call in utils.rkt to "add-line" cuts the freeze time in half for me (using size 242 instead of 728 in the time.rkt file). I didn't check to see if lines go ou

Re: [racket-users] Rosetta Code: Level 1st (that's FIRST) with TCL

2015-05-05 Thread Tim Brown
On 04/05/15 18:19, Gustavo Massaccesi wrote: Too early. Tcl is (apparently) first again :( (I'm not sure how is the correct method to count them.) http://timb.net/popular-languages.html That script undercounts Racket and over-counts Tcl. It's been on my to do list to fix. Compare: http://rose