Re: Fixing "stringly typed" data structures in Artanis

2015-12-13 Thread Thompson, David
On Sun, Dec 13, 2015 at 2:41 PM, Amirouche Boubekki wrote: > Le 2015-12-10 23:02, Thompson, David a écrit : >> >> [ Changing the subject for this little rant below ] >> >> I guess this is as good a time as any to voice a concern that I have >> with Artanis before too many people depend on it and i

Re: Fixing "stringly typed" data structures in Artanis

2015-12-13 Thread Amirouche Boubekki
Le 2015-12-10 23:02, Thompson, David a écrit : [ Changing the subject for this little rant below ] I guess this is as good a time as any to voice a concern that I have with Artanis before too many people depend on it and its not feasible to change it. Artanis is alpha nobody expects to code ag

Re: Fixing "stringly typed" data structures in Artanis

2015-12-11 Thread Ludovic Courtès
"Thompson, David" skribis: > Doing this type of > string-based URI matching is the status quo in many web frameworks > written in Ruby, Python, etc., but in Scheme we have the opportunity > to do *much* better. +1 See also Andy’s take on that in the manual (info "(guile) Types and the Web"). L

Re: Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Dec 11, 2015 at 09:25:57AM -0600, Christopher Allan Webber wrote: > Speaking of expressiveness and investigating these things, I've found no > better series than the ones by Peter Bex: > > http://www.more-magic.net/posts/lispy-dsl-scss.html

Re: Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-11 Thread Christopher Allan Webber
Speaking of expressiveness and investigating these things, I've found no better series than the ones by Peter Bex: http://www.more-magic.net/posts/lispy-dsl-scss.html http://www.more-magic.net/posts/lispy-dsl-sxml.html http://www.more-magic.net/posts/lispy-dsl-sre.html http://www.more-magi

Re: Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Dec 10, 2015 at 05:02:52PM -0500, Thompson, David wrote: > [ Changing the subject for this little rant below ] > > On Thu, Dec 10, 2015 at 2:44 PM, Martyn Smith > wrote: > > [snip] > > > (get "/image" > > (lambda (rc) > >(let*

Re: Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-10 Thread Nala Ginrut
Actually, all of these issues (better rule parsing, anti SQL-injection...) have been concerning when developing Artanis. And I've prepared something for them in Artanis, but all these new solutions are still premature. It's why I didn't announce them. 1. For better rule parsing In the beginning, I

Re: Fixing "stringly typed" data structures in Artanis

2015-12-10 Thread Mike Gerwitz
On Thu, Dec 10, 2015 at 17:02:52 -0500, Thompson, David wrote: > (match uri (("user" id) (display-user-info id))) I agree with this. I understand where Artanis has derived its conventions from, (e.g. Sinatra/Ruby; Express/Node.js; Symfony/PHP; Spark/Java; and countless others), and how useful

Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-10 Thread Thompson, David
[ Changing the subject for this little rant below ] On Thu, Dec 10, 2015 at 2:44 PM, Martyn Smith wrote: [snip] > (get "/image" > (lambda (rc) >(let* ((port (open-file "s.jpg" "r")) >(bytes (get-bytevector-all port))) > (close-port port) > (response-emit b