Re: [racket] Typed racket in DrRacket

2012-10-22 Thread J. Ian Johnson
Sam and Vincent have been working on lowering the load time for Typed Racket, and have done a great job over the past year. As I understand it, there is however a massive overhead from building the initial environment, because it cannot be serialized at the time that Typed Racket itself is built

[racket] Typed racket in DrRacket

2012-10-22 Thread Harry Spier
When I run the simplest possible racket program in DrRacket definitions window #lang racket 1 the result 1 and the prompt appear instantaneously in the interactions window, but when I change this to typed racket #lang typed/racket 1 it takces two seconds before the result 1 and the prompt are d

Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-22 Thread David Van Horn
On 10/22/12 10:05 PM, Dan Grossman wrote: (define (range lo hi) (print "hi") (if (> lo hi) null (cons lo (range (+ 1 lo) hi ... I apologize if this is a known "feature" or a known "bug" -- I do scan the release notes briefly when new versions come out, but don't remember anything

[racket] confusion about shadowing predefined functions in interactions window

2012-10-22 Thread Dan Grossman
[DrRacket version 5.3, Language: racket] A colleague stumped me and I confirmed the behavior... * range is a provided procedure, but suppose we redefine it ourselves, in curried form: (define (range lo) (lambda (hi) (if (> lo hi) null (cons lo ((range (+ 1 lo)) hi) or (define ((range lo)

[racket] three-n-plus-one

2012-10-22 Thread Danny Yoo
http://hashcollision.org/three-n-plus-one/ Racket Users list: http://lists.racket-lang.org/users

[racket] redex + #lang = awesome

2012-10-22 Thread David Van Horn
Sam and I have been developing a prototype language using redex and #lang for about a year now, and that's been a really great experience (I don't believe we could have done this research and gotten it right without this tool support). But on my way to OOPSLA I re-implemented some of the core

[racket] Custom Keybindings - Editor Insert Poofed

2012-10-22 Thread Ray Racine
Updated to the latest Racket master in git and some of my key bindings are failing. Typical example. (keybinding "c:\\" (λ (editor evt) (send editor insert "λ"))) The key binding is invoked, however, I'm seeing the following in a pop-up. Error running keybinding. send: no such method method name

Re: [racket] regexp with \"

2012-10-22 Thread Tobias Hammer
(regexp-match #rx"c\"d" "abc\"def") and (regexp-match #rx"c\\\"d" "abc\"def") seems to work. On Mon, 22 Oct 2012 16:30:15 +0200, Nadeem Abdul Hamid wrote: When I insert \\" in the pattern, the double quote is interpreted as the end of the pattern. You have to escape the quote too...

[racket] Web-Server: Continue Tutorial, Templates and Dispatch

2012-10-22 Thread Helmut Dobretzberger
Hey, I want to build my new web-application with the racket-webserver, so I have worked through the continue-tutorial. Now i want to improve the simple blog from the tutorial to learn more web-server tecniques which leads to some questions: - I've tried to change that application to use templates

Re: [racket] regexp with \"

2012-10-22 Thread Nadeem Abdul Hamid
> > When I insert \\" in the pattern, the double quote is interpreted as the > end of the pattern. > You have to escape the quote too... " ... \\\" ... " --- nadeem Racket Users list: http://lists.racket-lang.org/users

[racket] regexp with \"

2012-10-22 Thread Ted
Hi the list, new problem with parsing a string with double quote inside by a regexp-match function. When I insert \\" in the pattern, the double quote is interpreted as the end of the pattern. Does anyone know how to avoid this? Thanks in advance. Ted Racket Users list:

Re: [racket] putenv

2012-10-22 Thread Jay McCarthy
How are you checking "in the system"? putenv does not make a global change to your system settings, instead it changes the environment locally. For example, on Unix (it would work the same on Windows, but I don't know a lot about the Windows shell), [outer] $ FOO=1 [outer] $ echo $FOO 1 [outer] $

[racket] putenv

2012-10-22 Thread heraklea
Hello friends, I try to change my env variables in windows 7. getenv works fine, but when I change a specific env variable it returns #t but in the system there are no changes... Yours, Racket Users list: http://lists.racket-lang.org/users