Re: [racket] convert scribble block directly to xexpr?

2013-10-02 Thread JP Verkamp
This conversation / specific post might also be helpful: Evaluating code written in non-SEXP language -- http://lists.racket-lang.org/users/archive/2013-September/059449.html I've used a slightly modified version of Matthew Flatt's code from there to directly render Scribble from a string or port

Re: [racket] closing tab in Unix?

2013-10-02 Thread John Clements
On Sep 30, 2013, at 5:25 PM, Sam Tobin-Hochstadt wrote: > On Mon, Sep 30, 2013 at 8:18 PM, John Clements > wrote: >> >> On Sep 28, 2013, at 9:22 PM, Manfred Lotz wrote: >> >>> On Sat, 28 Sep 2013 13:55:34 -0700 >>> John Clements wrote: >>> I feel as though the answer must be howlingly o

Re: [racket] closing tab in Unix?

2013-10-02 Thread Laurent
You can use Ctrl-W if you enable "Keyboard shortcuts in menus" (or whatever the english string) in Edit/Preferences/General but then you may lose some emacs keybindings. Otherwise, you can get hold of the drracket-frame from a custom keybinding, by first getting the editor from the callback argume

[racket] Reversing strings (Jay's article)

2013-10-02 Thread Vlad Kozin
Mostly a question to Jay McCarthy but I suppose could be interesting to others. Was going over his Reversing strings article. Somehow I get weird performance. Slowest solution turns out fastest, medium, fast and really fast are only marginally different. Could anyone have a look https://github.

Re: [racket] Reversing strings (Jay's article)

2013-10-02 Thread Laurent
What values do you get? For 4'000 strings (old slow computer), I get: (236 148 84 84) for slow, medium, fast, really fast, which is consistent with Jay's post. Laurent On Wed, Oct 2, 2013 at 7:28 PM, Vlad Kozin wrote: > Mostly a question to Jay McCarthy but I suppose could be interesting to >

Re: [racket] Reversing strings (Jay's article)

2013-10-02 Thread Jay McCarthy
I collect garbage three times to find finalized resources and free them. I don't know if this is always necessary or if 3 is the right number, but I learned to do it long ago and do it by habit. Jay On Wed, Oct 2, 2013 at 11:28 AM, Vlad Kozin wrote: > Mostly a question to Jay McCarthy but I sup

Re: [racket] Reversing strings (Jay's article)

2013-10-02 Thread Vlad Kozin
Oh, wow. So I was testing this in Geiser repl in emacs: (2467 4631 4088 3934) Where apparently "slower" one wins But in DrRacket the result looks plausible: (8994 1859 1094 865) Does that mean Geiser shouldn't be trusted? --- Vlad Kozin On Oct 2, 2013, at 1:57 PM, Laurent wrote: > What valu

Re: [racket] Reversing strings (Jay's article)

2013-10-02 Thread Robby Findler
I'm not sure what is happening in Geiser, but DrRacket should definitely not be trusted. Here's the relevant section of the docs (feel free to ask more questions if that's not helping): http://docs.racket-lang.org/guide/performance.html Robby On Wed, Oct 2, 2013 at 6:29 PM, Vlad Kozin wrote: