Re: A better way to run shell cmd?

2012-06-13 Thread gregory benison
On Tue, Jun 12, 2012 at 11:55 PM, Nala Ginrut wrote: > > Anyway, there's a problem for you. > I'm trying to write a simple wrapper for "sed" with our popen module: This is exactly the kind of thing SCSH does well: 1> (run/string (sed s:a:b:g)(<< "banana")) "bbnbnb" Nevertheless the current sta

Re: letter occurence in a text

2012-05-23 Thread gregory benison
On Tue, May 22, 2012 at 7:26 AM, nrichard wrote: > > hello my problem is to count occurence of letter in a text and come out with > an assoc-list like > '((a.16) (b.10) ... (z.5)) Why store the alist keys as one-character strings, rather than just as characters? Storing as characters would be si

Re: http-post

2012-05-05 Thread gregory benison
On Thu, Apr 26, 2012 at 5:58 PM, Noah Lavine wrote: > If you'd like to have it added to Guile, we'd love to have it in here. > The one other thing we'd like is tests for this code. There are > examples in test-suite/tests/web-http.test. > To write a test for http-post, I thought I'd model it on a

http-post

2012-04-16 Thread gregory benison
>From the guile reference manual, web section: "More helper procedures for the other common HTTP verbs would be a good addition to this module. Send your code to ." So, I say to guile-user, "here is my code". This http-post implementation takes the request body as either a bytevector or as a st

Re: want to help hack a Scheme blogging platform?

2012-03-29 Thread gregory benison
On Thu, Mar 29, 2012 at 3:43 PM, Paul Emsley wrote: > On 29/03/12 19:47, gregory benison wrote: >> I was recently hacking lightly on some PHP code that is part of a >> well-known blogging platform when I thought to myself, "Hey, this >> would be a lot more fun in

want to help hack a Scheme blogging platform?

2012-03-29 Thread gregory benison
Hello guilers - I was recently hacking lightly on some PHP code that is part of a well-known blogging platform when I thought to myself, "Hey, this would be a lot more fun in Scheme." So I decided to implement one and put it up online, mostly as an exercise in doing that kind of thing. I'm postin