On 6 Jul 2001, David N. Welton wrote:
> > #ifdef UNDEFINEDDEFINE
> > #endif
> > Ok, I'll check out the code and probably change it a bit...
> If you don't fix the style, and I end up including the code, I will,
> as I want the code to look reasonably uniform. But I would appreciate
> receiving code that more or less looks like the rest of mod_dtcl:-)
Ok, I'll do that. That was my style for about 2-3 years, but I'll try to
improve my 'codewriting' ;-)
> > > I'll have a look at my own parser, too, and see what it would take to
> > > extract *just* the parsing code.
> I've extracted the dtcl parser into parser.c, in the CVS tree. It was
> actually slightly easier than I'd immagined... probably due to some of
> the reworking I've been doing.
Great to hear that.
> > Actually, I was thinking of choosing which one is faster. I'd have
> > to write a part for creating pure Tcl code, probably reuse of your
> > code...
> By all means, create some tests and let's see the results:-)
Ok, in the near future.
> > I'd hate to mess around with your project, but maybe my code (which
> > uses memchr() instead of byte-by-byte browsing) is faster, so it
> > would be wiser to use mine.
> libc does do buffering, so it shouldn't be generating a syscall for
> each getc...
Yeap. But still, AFAIR the best way is to mmap() it. Also,
threads+non-blocking sockets on about 10 sockets/thread should be optimal
- I read on it someplace, maybe /.
Anyway, I still claim that it's faster to use memchr() than getc().
> > Also, I'd like to hear opinions from people on this list if <?= and
> > <?dtcl could be useful for someone except me?
> Comments? I don't really like <?=, because it's a special case that
> makes code harder to read, and less immediate for new users.
But it makes it easy to write pages. I use it in ADP, use <?p $var?> in
dtcl, and I suppose many people find it useful.
I suppose it's more important than <?dtcl.
> <?dtcl
> might be ok, although if people have .ttml files, they probably ought
> to realize that it's not PHP (one would hope, at least!).
I've never used it in PHP.
It's just a nice feature. Nothing more...
--
Wojtek Kocjan
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]