[racket-users] Does here any HtDP-y recipe for classic DP algorithm like backPack?

2019-01-06 Thread piv det
Here's the classic backpack question(https://www.lintcode.com/problem/backpack/description): Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? Using classic DP with memoize to solve this problem in Racket would be ps1. I would like

Re: [racket-users] triggering servlet on GET parameters

2019-01-06 Thread Matthew Butterick
Don't know if it would be an instructive example, but the Pollen project server [1], though not intended for production use, is a self-contained HTTP server that handles dynamic generation of HTML (it even works with Scribble files), which sounds similar to what you're trying to do. Jesse

[racket-users] Re: Functional augmenting

2019-01-06 Thread George Neuner
On Fri, 4 Jan 2019 13:30:43 -0500, David Storrs wrote: >Racket's OO system has the 'augment' family of functionality that allows >you to change how a function works. I'm wondering if there's a way to do >something similar in functional Racket. For example, when I was working in >Perl I used to

Re: [racket-users] triggering servlet on GET parameters

2019-01-06 Thread Stephen De Gabrielle
Thank you Jay and David, Your suggestions were good, #:servlet-regexp #rx"" lets me capture the request for a page and server the original file, or the edit servlet: http://localhost:8000/mouse.html http://localhost:8000/mouse.html?action=edit I've been reading a little more and I think I've