Re: [racket] plot-frame does not wait at end of process

2013-03-16 Thread Eli Barzilay
On Thursday, Robby Findler wrote: > Also: I don't think that you need a parameter for this default. the > current-eventspace parameter would already do this job. IOW, Robby wants no keyword or parameter, just the default behavior, and if there's a problem with that then people would deal with it l

Re: [racket] Rounding

2013-03-16 Thread Neil Toronto
On 03/16/2013 05:33 PM, Danny Yoo wrote: Since when is round 0.5 not giving 1?! According to the documentation: http://docs.racket-lang.org/reference/generic-numbers.html#%28def._%28%28quote._~23~25kernel%29._round%29%29 "Returns the integer closest to x, resolving ties in favor o

Re: [racket] planet bug reporting system: taken over by spam

2013-03-16 Thread David Vanderson
One idea could be to route the bug reports through the mailing list, since the list seems to deal with spam pretty well. On 03/16/2013 09:22 AM, Robby Findler wrote: Cool! On Sat, Mar 16, 2013 at 11:18 AM, Ray Racine > wrote: Hyperloglog with a sliding windo

Re: [racket] Rounding

2013-03-16 Thread Eli Barzilay
40 minutes ago, Carl Eastlund wrote: > That's an overly specific solution.  I believe the more general rounding > function taught in grade-school math would be: > > (define (my-round n) >   (floor (+ n 1/2))) If you want 0.5 to round down to 0, then (define (my-round n) (ceiling (- n 1/2))) -

Re: [racket] Rounding

2013-03-16 Thread mike
On Sat, Mar 16, 2013 at 10:21:57AM -0400, Eric Nadeau wrote: > Since when is round 0.5 not giving 1?! I believe that this is standard in physics and engineering in order to avoid statistical bias. For example, see the NIST "Guide for the Use of the International System of Units", section B.7. (

Re: [racket] Rounding

2013-03-16 Thread Carl Eastlund
That's an overly specific solution. I believe the more general rounding function taught in grade-school math would be: (define (my-round n) (floor (+ n 1/2))) This is also untested. And it might need tweaking for negative numbers if they are supposed to round away from zero, I forget how that

Re: [racket] Rounding

2013-03-16 Thread Danny Yoo
> > Since when is round 0.5 not giving 1?! According to the documentation: http://docs.racket-lang.org/reference/generic-numbers.html#%28def._%28%28quote._~23~25kernel%29._round%29%29 "Returns the integer closest to x, resolving ties in favor of an even number... " And zero is an even

Re: [racket] Rounding

2013-03-16 Thread Eric Dobson
The docs say that it is round to even, which is the standard for floating point numbers [1]. You can write your own rounding operator that rounds .5 up if need be. ;; Untested (define (my-round n) (let ((r (round n))) (if (= .5 (- n r)) (add1 r) r))) [1] http://en.wikipedia.org/wiki/Rounding#Ro

Re: [racket] Rounding

2013-03-16 Thread Nadeem Abdul Hamid
> Since when is round 0.5 not giving 1?! http://en.wikipedia.org/wiki/Rounding#Round_half_to_even --- nadeem Racket Users list: http://lists.racket-lang.org/users

[racket] Rounding

2013-03-16 Thread Eric Nadeau
Hi, I was having problems with a mathematical application I'm writing and narrowed it down to: (round 0.5) (round (/ 1 2)) (round 1.5) (round (/ 3 2)) giving me 0.0 0 2.0 2 Since when is round 0.5 not giving 1?! Cheers, Eric ___

[racket] parallel-map, for/parallel etc.

2013-03-16 Thread Harry Spier
This post from May 2011 says: "parallel-for-each, parallel-sort, parallel-filter, for/parallel and the likes for sequences. ... are next on our radar." Are there still plans to develop these parallel processing functions. Thanks, Harry Spier Racket Users list: http://list

[racket] ICFP 2013: Second Call for Papers

2013-03-16 Thread David Van Horn
= 18th ACM SIGPLAN International Conference on Functional Programming ICFP 2013 Boston, MA, USA, 25-27 September 2013 http://www.icfpconference.org/icfp2013 =

Re: [racket] planet bug reporting system: taken over by spam

2013-03-16 Thread Robby Findler
Cool! On Sat, Mar 16, 2013 at 11:18 AM, Ray Racine wrote: > Hyperloglog with a sliding window on the IP or src/dest connection ports. > http://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf > Page 140, Cool but simple algo to implement. Could be added to the Racket > HTTP Server as a DOS c

Re: [racket] planet bug reporting system: taken over by spam

2013-03-16 Thread Ray Racine
Hyperloglog with a sliding window on the IP or src/dest connection ports. http://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf Page 140, Cool but simple algo to implement. Could be added to the Racket HTTP Server as a DOS capability. On Sat, Mar 16, 2013 at 10:15 AM, Robby Findler wrote:

Re: [racket] planet bug reporting system: taken over by spam

2013-03-16 Thread Robby Findler
Woah! I should have checked: I think they were all coming from the same ip address. I've blocked that IP address and lets see what happens. Thanks. Robby On Sat, Mar 16, 2013 at 9:04 AM, Laurent wrote: > I don't how much of this is done right now, or is feasible, but just in > case here are s

Re: [racket] planet bug reporting system: taken over by spam

2013-03-16 Thread Laurent
I don't how much of this is done right now, or is feasible, but just in case here are some suggestions: - Don't allow more than 5-10 bug reports in one hour from the same IP, with possible ban (+ visual warning) - Use something like SpamAssassin, tuned toward bug-reporting - Restrict bug reporting

[racket] planet bug reporting system: taken over by spam

2013-03-16 Thread Robby Findler
Hi all: I'm sorry to say that I've just disabled planet's bug reporting system. Over the last 24 hours, we've gotten about 2,000 spam bug reports. (They are all gone now.) I'm also sorry to report that I deleted bug number 509 by accident (it was not spam). The bug report system was using recaptc