[racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here: http://pre.racket-lang.org/docs/html/search/ and compare searches with the usual page: http://docs.racket-lang.org/searc

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay wrote: > > ** More about the change (especially if you want to try to improve >   things): > > This is not real ranking, but it should give better results overall. > The thing is that the search assigns a small integer "score" for each > term, where th

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Just now, Sam Tobin-Hochstadt wrote: > On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay wrote: > > > > ** More about the change (especially if you want to try to improve > >   things): > > > > This is not real ranking, but it should give better results overall. > > The thing is that the search assign

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Neil Van Dyke
Eli Barzilay wrote at 05/29/2012 07:17 AM: I have made a possibly useful improvement to the JS search code. It's not pushed, yet, but I dropped the revised JS code on the pre-built pages so you can try it out here: http://pre.racket-lang.org/docs/html/search/ [...] Eli, looks like a not

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
A few minutes ago, Neil Van Dyke wrote: > Eli Barzilay wrote at 05/29/2012 07:17 AM: > > I have made a possibly useful improvement to the JS search code. > > It's not pushed, yet, but I dropped the revised JS code on the > > pre-built pages so you can try it out here: > > > >http://pre.racket-l

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: > That can currently get to ~20k things to sort and adjust for > additional entries that get added on each release, planet packages, > etc. Have you measured how long this takes? On my machine, the `sort()` method on an array of 25000 strings t

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
20 minutes ago, Sam Tobin-Hochstadt wrote: > On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: > > That can currently get to ~20k things to sort and adjust for > > additional entries that get added on each release, planet > > packages, etc. > > Have you measured how long this takes? On my mach

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 8:16 AM, Eli Barzilay wrote: > 20 minutes ago, Sam Tobin-Hochstadt wrote: >> On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: >> > That can currently get to ~20k things to sort and adjust for >> > additional entries that get added on each release, planet >> > packages,

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Jens Axel Søgaard
2012/5/29 Eli Barzilay : > I have made a possibly useful improvement to the JS search code. > It's not pushed, yet, but I dropped the revised JS code on the > pre-built pages so you can try it out here: > >  http://pre.racket-lang.org/docs/html/search/ > > and compare searches with the usual page:

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: > Just now, Sam Tobin-Hochstadt wrote: >> On Tue, May 29, 2012 at 7:17 AM, Eli Barzilay wrote: >> > >> > ** More about the change (especially if you want to try to improve >> >   things): >> > >> > This is not real ranking, but it should give b

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
An hour and a half ago, Sam Tobin-Hochstadt wrote: > On Tue, May 29, 2012 at 8:16 AM, Eli Barzilay wrote: > > 20 minutes ago, Sam Tobin-Hochstadt wrote: > >> On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: > >> > That can currently get to ~20k things to sort and adjust for > >> > additional

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Justin Zamora
The search still doesn't find words in function descriptions. For example, http://pre.racket-lang.org/docs/html/search/index.html?q=sine returns no results. This is especially frustrating since the very first exercise in HTDP 1e is to use the search to find out whether DrRacket has a sine functi

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Just now, Justin Zamora wrote: > The search still doesn't find words in function descriptions. [It's not a full-text search, and as long as it's required to run on client machines (needed to run on your local copy), it's unlikely to become a full-text search.] -- ((lambda (x) (x x)) (l

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Matthias Felleisen
On May 29, 2012, at 10:18 AM, Justin Zamora wrote: > This is especially frustrating since the very first exercise in HTDP 1e is > to use the search to find out whether DrRacket has a sine function. (It is okay for students to guess that sometimes they may have to search for a slightly differe

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
20 minutes ago, Eli Barzilay wrote: > An hour and a half ago, Sam Tobin-Hochstadt wrote: > > > > To stop the sort in the middle, use a custom comparison function, > > a bit of state, and an exception. > > This might work. I was confused. It does work, but it's not enough to be able to throw an

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Matthias Felleisen
On May 29, 2012, at 10:25 AM, Eli Barzilay wrote: > 20 minutes ago, Eli Barzilay wrote: >> An hour and a half ago, Sam Tobin-Hochstadt wrote: >>> >>> To stop the sort in the middle, use a custom comparison function, >>> a bit of state, and an exception. >> >> This might work. > > I was confuse

[racket-dev] No threads => CPS (was: Potential search improvement)

2012-05-29 Thread Eli Barzilay
Just now, Matthias Felleisen wrote: > > On May 29, 2012, at 10:25 AM, Eli Barzilay wrote: > > > 20 minutes ago, Eli Barzilay wrote: > >> An hour and a half ago, Sam Tobin-Hochstadt wrote: > >>> > >>> To stop the sort in the middle, use a custom comparison function, > >>> a bit of state, and an e

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 10:25 AM, Eli Barzilay wrote: > 20 minutes ago, Eli Barzilay wrote: >> An hour and a half ago, Sam Tobin-Hochstadt wrote: >> > >> > To stop the sort in the middle, use a custom comparison function, >> > a bit of state, and an exception. >> >> This might work. > > I was conf

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Four hours ago, Eli Barzilay wrote: > A few minutes ago, Neil Van Dyke wrote: > > Eli Barzilay wrote at 05/29/2012 07:17 AM: > > > I have made a possibly useful improvement to the JS search code. > > > It's not pushed, yet, but I dropped the revised JS code on the > > > pre-built pages so you can t

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Eli Barzilay
Three hours ago, Sam Tobin-Hochstadt wrote: > On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: > > Just now, Sam Tobin-Hochstadt wrote: > >> I think you probably want to rank/divide '1' here based on how > >> much of the identifier is matched by the search.  For example, if > >> you search for

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Sam Tobin-Hochstadt
On Tue, May 29, 2012 at 11:53 AM, Eli Barzilay wrote: > Three hours ago, Sam Tobin-Hochstadt wrote: >> On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: >> > Just now, Sam Tobin-Hochstadt wrote: >> >> I think you probably want to rank/divide '1' here based on how >> >> much of the identifier i

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Stephen Bloch
On May 29, 2012, at 11:53 AM, Eli Barzilay wrote: > Three hours ago, Sam Tobin-Hochstadt wrote: >> On Tue, May 29, 2012 at 7:33 AM, Eli Barzilay wrote: >>> Just now, Sam Tobin-Hochstadt wrote: I think you probably want to rank/divide '1' here based on how much of the identifier is matc

Re: [racket-dev] Potential search improvement

2012-05-29 Thread Michael Wilber
I just noticed something about the way I use search. Just now, I wanted to find the reference docs that describe threads. So I typed "thread" into the search box and got documentation about the (thread ...) form, in both the old and new search pages. But the reference describes "Threads", not "th

Re: [racket-dev] [plt] Push #24770: master branch updated

2012-05-29 Thread Neil Toronto
I didn't think it was fair to make everyone wait for the Typed Racket code behind the icons to be compiled but be the only person who could use it. So I've made it public. Now (require images/flomap) imports about half the Typed Racket goodies behind the icons. (The ray tracer itself is t