Re: Special Interest Groups - HTTP/CGI and SMTP/MIME

Chris Babcock <[email protected]>
Newsgroups gmane.mail.spam.crm114
Organization Kolonel Panic
Message-ID <[email protected]>
On Mon, 16 Mar 2009 10:55:55 -0400
"Eric S. Johansson" <[email protected]> wrote:

> > You know, this is really forcing the hand for getting something
> > like scoped variables similar to Ger's stuff into the mainline.
> > 
> > Kicking it around more with Nico and Kent, I'm leaning toward a 
> > modification of what Ger is doing (modified, in that we do not want
> > to break existing code that depends on globality)  
> 
> just dead end the current version and add nothing but bug fixes.
> Start CRM114mk2 and clean things up as you've described.

What I'm really panting for is a socket interface. When netcat is in
listening mode, it doesn't close stdout until the client closes the
socket. That makes the keep flag useless for running a server on just
about any protocol. I want to set up something co-routine-like that
blocks execution of the crm script while waiting for a network
connection then spawns a handler thread to deal with the connection
while the main program goes back to waiting for a new connection.

Of course one of the reasons that I like CRM as a scripting language is
that it loads faster than perl:

[usak@cl-t090-563cl ~]$ time `crm null.program<<EOF`

real    0m0.004s
user    0m0.001s
sys     0m0.003s
[usak@cl-t090-563cl ~]$ time `perl null.program<<EOF`

real    0m0.005s
user    0m0.001s
sys     0m0.004s
[usak@cl-t090-563cl ~]$ time `python null.program<<EOF`

real    0m0.022s
user    0m0.011s
sys     0m0.011s

Some flavor of scoping or notion of name spaces will have to happen
before it's feasible to develop library code... and candidly, that's
what I spend most of my time doing. I've got a dirt simple SMTP client,
some basic CGI stuff and an HTML template driver. It's surprisingly few
LOCs, but it's enough that I've put off upgrading to BlameBarack. 

I'm kind of hoping that the scoping mechanism in the main branch is
something really novel and idiomaticly CRM. Since you can syscall
labels, using syscall v. call isn't really that big of a deal. If
declaring namespaces were explicit, though, existing code would still
work and accessing libraries would be transparent. The issue would then
be finding an idiomatic way to declare the namespace.

Chris

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc (application/pgp-signature, 489 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBAgAGBQJJvtrAAAoJEASgqNsqZfCHFAMIALfRsi3+JfsMirhe3rzwTqoZ
bfxWHjDGCbSVMA5t06uYKOKd119dV/nimWZxKctQ4ROT7rp3S2sd0IL3bmjo3Tio
LdqteDHKdYH9mxtQQtfIFwP0HTJSvKgRpIIETlkpOaXcXNAZlR/QHR/MHdECeDMX
8KuY7WVM7eYVwXjaz8vEkmPV56Wd9zUCwNcRcxg8c/h6j1VQ+et5/ezUkGxdI3/h
RJNdUUXx3HFfZZmt4CTFDepJHx7BAVnjZgkqb5V8U1H8+cslBZE9hfU71/cY1MUE
gvVXdKCNXQVNU/Ft2m5tNSfsuKNNBFNYI38HkW8mMByt+nBARPeMmR7G+7Yut0U=
=jrRc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.