Re: [racket-users] servlet development in REPL

2018-10-04 Thread Greg Hendershott
I just wanted to chime in and say I share Philip's preference. I think programming is hard enough without multiple sources of truth. p.s. Replacing expensive startup items with a no-op is a good idea. Or sometimes, keep the "real-op" but postpone using one of: - `delay/sync` and `force` from

Re: [racket-users] servlet development in REPL

2018-10-03 Thread Philip McGrath
While Jay and Sam have tried to answer the question you actually asked, my advice would be to approach this differently. When I am developing web server things interactively, I put them in the DrRacket definitions window and run the program with the "Run" button. You can then poke at the running

Re: [racket-users] servlet development in REPL

2018-10-03 Thread Cam
It looks like Sam's suggestion of racket-reloadable is exactly what I need, but I will play with this as well. Thanks! Jay McCarthy writes: > You'd have to build it yourself, by doing a `set!` in the REPL to > inject the new function in. > On Wed, Oct 3, 2018 at 8:10 AM Cam wrote: >> >> >> I

Re: [racket-users] servlet development in REPL

2018-10-03 Thread Sam Tobin-Hochstadt
You will probably be interested in the `reloadable` package: https://github.com/tonyg/racket-reloadable/ Sam On Wed, Oct 3, 2018 at 8:10 AM Cam wrote: > > > I am playing around with the built-in webserver functionality with > `servlet/serve' and am wondering if there is a way to automatically >

Re: [racket-users] servlet development in REPL

2018-10-03 Thread Jay McCarthy
You'd have to build it yourself, by doing a `set!` in the REPL to inject the new function in. On Wed, Oct 3, 2018 at 8:10 AM Cam wrote: > > > I am playing around with the built-in webserver functionality with > `servlet/serve' and am wondering if there is a way to automatically > "reload" the

[racket-users] servlet development in REPL

2018-10-03 Thread Cam
I am playing around with the built-in webserver functionality with `servlet/serve' and am wondering if there is a way to automatically "reload" the servlet, for lack of better terminology, when I am playing in the REPL. In other words, if I do something like this in the REPL: (define