Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Alex Harsanyi
On Tuesday, April 18, 2017 at 5:15:12 AM UTC+8, Jens Axel Søgaard wrote: > 2017-04-17 22:56 GMT+02:00 Vincent St-Amour : > (For people following along, the issue is that there exists a value `x` > > such that `(= (+ x 1e-17) x)`, and that the iteration reaches that

Re: [racket-users] Preventing browser frame from terminating evaluation thread?

2017-04-17 Thread Philip McGrath
It's a little ugly, but you can change the exit handler: (exit-handler (λ (x) (displayln "Called exit"))) -Philip On Mon, Apr 17, 2017 at 8:57 PM, Matt Jadud wrote: > Hi all, > > I would like to spawn a browser frame, but I'd like it if the frame did > not terminate the

[racket-users] Preventing browser frame from terminating evaluation thread?

2017-04-17 Thread Matt Jadud
Hi all, I would like to spawn a browser frame, but I'd like it if the frame did not terminate the thread when I close it. I'm having a hard time figuring out what I should override/augment or catch so that I can spawn the frame from within a GUI application, let the user close the frame, and

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Vincent St-Amour
I agree. I'll add a note to the docs. Vincent On Mon, 17 Apr 2017 16:16:49 -0500, Tim Jervis wrote: > > I like the document route; anyone who is happy with the performance tradeoff > would be free to implement a more conservative version. > > On 17 Apr 2017, at 21:59, Ben Greenman

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Tim Jervis
I like the document route; anyone who is happy with the performance tradeoff would be free to implement a more conservative version. > On 17 Apr 2017, at 21:59, Ben Greenman wrote: > > Maybe, just add a note to the docs? > >> On Mon, Apr 17, 2017 at 4:56 PM,

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Jens Axel Søgaard
2017-04-17 22:56 GMT+02:00 Vincent St-Amour : > (For people following along, the issue is that there exists a value `x` > such that `(= (+ x 1e-17) x)`, and that the iteration reaches that `x` > as its state at some point, then loops.) > What is the smallest y

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Ben Greenman
Maybe, just add a note to the docs? On Mon, Apr 17, 2017 at 4:56 PM, Vincent St-Amour < stamo...@eecs.northwestern.edu> wrote: > The latter is easy to fix; I've submitted a pull request. > > The former is trickier. The problem is not so much due to the step size > itself, but rather to a

Re: [racket-users] range with small or zero step doesn't return

2017-04-17 Thread Vincent St-Amour
The latter is easy to fix; I've submitted a pull request. The former is trickier. The problem is not so much due to the step size itself, but rather to a combination of the step size and of a particular iteration state. (For people following along, the issue is that there exists a value `x` such

[racket-users] Re: [Shameless self-promotion] Articles about programming-language theory for working programmers in Racket

2017-04-17 Thread lfacchi2
Hi Alexander, Thank you for the nice words, neighbor  -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more

[racket-users] Call for participation: PLDI 2017 and co-located events

2017-04-17 Thread Tobias Grosser
Call for participation: PLDI 2017 and co-located events PLDI is the premier forum in the field of programming languages and programming systems research, covering the areas of design, implementation, theory, applications, and performance. The co-located conferences take place in Barcelona, June

[racket-users] Re: [Shameless self-promotion] Articles about programming-language theory for working programmers in Racket

2017-04-17 Thread Alexander McLin
Leandro, Your article comes at a good time for me because I received my copy of "Semantics Engineering with PLT Redex" last week and am preparing to start studying it. I thought your examples are a nice exposition of the complex ideas that go into selecting features a programming language

[racket-users] Re: inspecting a table error 'error 'query: multiple statements given'

2017-04-17 Thread Alexander McLin
The error message is unclear but I believe SQLite do not support parameters for PRAGMA statements. The SQLite documentation at http://www.sqlite.org/lang_expr.html#varparam specifically says parameters are supported by expressions. PRAGMA statements are not expressions. If you examine the

[racket-users] range with small or zero step doesn't return

2017-04-17 Thread Tim Jervis
Dear Racket Users, I’ve noticed the following procedure calls don’t return (on my 64 bit Mac hardware): (range (- 1 1e-16) 1.0 1e-17) (range 0 1 0) While (2) is obvious, (1) tripped me up (as I hadn’t noticed my step size had fallen to effectively zero). A small tweak to for.rkt in the