Re: Selectively export C function into Perl's namespace

2002-03-06 Thread Sam Tregar
On Wed, 6 Mar 2002, Mike Liang (Volt) wrote: Just a question or maybe it can be a feature for the next Inline::C module. Currently every function you wrote in a C file will be exported to Perl after you compile your code. Is it or can it possible to make a function invisible from Perl.

Re: Specific Inline::C usage...

2002-03-06 Thread Sam Tregar
On Wed, 6 Mar 2002, Matthew O. Persico wrote: This sounds like a really bad idea to me. What is so 'bad'? That is an awfully vague expression. You're right! Sorry. How about hard and fragile? What will you do when a new version of CVS comes out? This is also a learning exercise. *shrug*

Re: Specific Inline::C usage

2002-03-06 Thread Sam Tregar
On Wed, 6 Mar 2002, James Michael DuPont wrote: Can it be possible that just because you link to a GPLed code via PAL licence that the user of the Inline::Lib cannot create a closed source application that uses the GPLED? PAL? GPLED? You're confusing me. I think you're trying to ask if

[PATCH] Fix memory leaks in Inline::C-Cookbook examples

2002-03-04 Thread Sam Tregar
such a person, have them drop me a line +One such mad scientist is Sam Tregar His HTML::Template::JIT module uses Inline::C +as a just-in-time compiler for template files =item See Also

FUD in Inline::C

2002-03-04 Thread Sam Tregar
Hello all I've been reading through the Inline::C docs lately and this section strikes me as pure FUD: All of this functionality is available through XS macro calls as well So why duplicate the functionality? [ ] Third, for future compatibility It occurred to me that if a lot of people

Re: Change 14949: For now, make incorrect case a Win32-only warning.

2002-03-03 Thread Sam Tregar
On Sun, 3 Mar 2002, Benjamin Goldberg wrote: While I like the step-3 you suggest, I don't particularly like the steps you use to make the before-and-after list of existing packages it isn't especially efficient Oh, there's nothing inefficient about it as it's just an explanation of how the

RE: Inline::HTML...

2002-02-26 Thread Sam Tregar
On Tue, 26 Feb 2002, Nadim Khemir wrote: 1/ Sam take it easy on Binkley you last mails were quite devastating (I know you meant well) If Binkley wants to add another CPAN module that he like, let it be. Sam is right for one thing let's not reinvent the wheel. Let me apologize publicly then,

Re: Inline::HTML...

2002-02-25 Thread Sam Tregar
On Mon, 25 Feb 2002, Patrick LeBoutillier wrote: I've had an idea for an Inline::HTML module that I would like to run by this list for comments/ideas. I have a prototypical working implementation. Inline::HTML? I've seen that - it's called CGI.pm! This will launch a browser and get the

Re: Inline::HTML...

2002-02-25 Thread Sam Tregar
On Mon, 25 Feb 2002, B. K. Oxley (binkley) wrote: On Monday 25 February 2002 07:17 pm, Sam Tregar wrote: Ooo, hmm. That's kind of a neat idea, but how does it work? Do you setup your own HTTP server just to fake up the ACTION? If so you might call it Inline::CGIServer! Also, how would

Re: Inline::HTML...

2002-02-25 Thread Sam Tregar
On Mon, 25 Feb 2002, Sam Tregar wrote: On Mon, 25 Feb 2002, B. K. Oxley (binkley) wrote: On Monday 25 February 2002 07:17 pm, Sam Tregar wrote: Ooo, hmm. That's kind of a neat idea, but how does it work? Do you setup your own HTTP server just to fake up the ACTION? If so you

Re: Inline::HTML...

2002-02-25 Thread Sam Tregar
On Mon, 25 Feb 2002, B. K. Oxley (binkley) wrote: On Monday 25 February 2002 08:50 pm, Sam Tregar wrote: It will need to somehow act as a web server in order to give the launched browser something to make the initial request and submit the form to. Oh, I understand. That is why I

Re: [htmltmpl] Nested Templates

2002-02-24 Thread Sam Tregar
On Sun, 24 Feb 2002, Phil Taylor wrote: I can't work out a clean way of doing this other than creating two HTML::Template objects and pushing the $subTemplate-output() into a $masterTemplate-param(). Is there a better way of achieving this? That should work fine. You might also consider

[htmltmpl] ANNOUNCE Bricolage-Devel 1.3.0 (fwd)

2002-02-21 Thread Sam Tregar
The world's only HTML::Template-supporting CMS, Bricolage, has released a new version. -sam -- Forwarded message -- Date: 21 Feb 2002 10:25:41 -0800 From: David Wheeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ANNOUNCE Bricolage-Devel 1.3.0 Announcing the release of

[htmltmpl] Re: suggestions for HTML::Template

2002-02-12 Thread Sam Tregar
On 12 Feb 2002, Peder Stray wrote: it would be real nice to have an option to turn off searching in the current direcory (only using the directories in the seachpath), and the ability to disallow relative paths. This would be a extreemly useful in a paranoid environment. I don't follow -

Re: [htmltmpl] Does loop_context_vars work with nested loops?

2002-02-12 Thread Sam Tregar
On Tue, 12 Feb 2002, Kenny Smith wrote: I've got nested loops and I am using loop_context_vars, but when I reference a context variable, it is using the outside loop. Could you please provide a small test script and a small test template that demonstrate the problem? That way I can reproduce

RE: [htmltmpl] Does loop_context_vars work with nested loops?

2002-02-12 Thread Sam Tregar
On Tue, 12 Feb 2002, Kenny wrote: Well, the test script I just put together worked properly, so it must be a problem with my other code. :/ Sorry to have bothered you. (I could have sworn I fully tested it.. ah well). No problem! That's one reason I ask people to make tests for me - it

Re: [htmltmpl] Slimmed down output

2002-02-12 Thread Sam Tregar
On Tue, 12 Feb 2002, Simon Crute wrote: Is there easy way to compress the output from $tmpl-output so that a) all comments are removed b) all non nessisary white space is removed ? I've heard you can use HTML::Clean to do this. It should be easy to pass the result of output() through a

[htmltmpl] Re: suggestions for HTML::Template

2002-02-12 Thread Sam Tregar
On 12 Feb 2002, Peder Stray wrote: I don't follow - what good would this do? lets say that i want to give users the ability to use their own templates, and add /home/$USER/templatedir to the searchpath. then any user could just include .htpasswd or any other file in the same directory as

Re: [htmltmpl] General Question - Templates and HTML forms

2002-02-05 Thread Sam Tregar
On Tue, 5 Feb 2002, Roy Rubin wrote: Is there a better way to implement server side validation? I like Data::FormValidtor. I suppose you could hook up some way for form designers to specify the validation hashes external to your program... However, I generally tend to view the actual

Re: [cgiapp] changing run modes...

2002-02-04 Thread Sam Tregar
On Mon, 4 Feb 2002, tomasz konefal wrote: the example you gave is what i'm currently implementing, but it just doesn't seem right because it looks as though i'm not actually changing run modes, but i'm nesting into another method temporarily, and then jumping out. is this a correct

Re: Handling arrays of large integers

2002-02-04 Thread Sam Tregar
On Tue, 5 Feb 2002, Sisyphus wrote: double tt; tt = SvIV(Inline_Stack_Item(i)); Shouldn't that be SvNV()? Otherwise you might as well make tt an IV (int or long int depending on your platform) since that's all you'll get out of SvIV! -sam

Re: Handling arrays of large integers

2002-02-04 Thread Sam Tregar
On Tue, 5 Feb 2002, Sisyphus wrote: Inline_Stack_Push(newSViv(tt)); Oh, and of course this should be newSVnv() if I was right about SvNV(). -sam

Re: [?] Same Named Modules, Different Paths

2002-02-02 Thread Sam Tregar
On Sat, 2 Feb 2002, John Heitmann wrote: Here is what I had to do to force correct module loading (mostly stolen from the great mod_perl guide): %INC = (); # Possibly unnecessary do 'FindBin.pm'; unshift @INC, $FindBin::Bin; # There are also modules in the same dir as the script unshift

Re: [?] Same Named Modules, Different Paths

2002-02-02 Thread Sam Tregar
On Sun, 3 Feb 2002, Stas Bekman wrote: I think the best solution is to run your staging server on a different port and use a front-end proxy to rewrite to the right server based on the Host: name. Alternatively put 2 NICs with 2 IPs, that will work if you don't hardcode the server name in

Re: Circular Definitions

2002-02-02 Thread Sam Tregar
On Thu, 31 Jan 2002, Lenny Hoffman wrote: I get the following message when parsing an input file with schema checking on: Message: No circular definitions are allowed: 'ValueGroup' Are you using the released version or CVS? I encountered a similar problem and solved it by switching

Re: [htmltmpl] loop_context_vars

2002-02-01 Thread Sam Tregar
On Fri, 1 Feb 2002, Roy Rubin wrote: How can I set the loop_context_vars variable to true after I have already created a template object? You can't. loop_context_vars is an option to new() and is used by new() when it parses the template. By the time new() returns it's too late to tell

RE: [htmltmpl] loop_context_vars

2002-02-01 Thread Sam Tregar
On Fri, 1 Feb 2002, Roy Rubin wrote: I see. In this case, I will elaborate. I am using CGI::Application and I am loading the template by the $self-load_tmpl('myfile.tmpl) command. Can I set the loop_context_vars parameters using the load_tmpl subroutine? Yes:

[htmltmpl] ANNOUNCEMENT: HTML::Template 2.5

2002-02-01 Thread Sam Tregar
/ CONTACT INFO This module was written by Sam Tregar ([EMAIL PROTECTED]). You can join the HTML::Template mailing-list by sending a blank message to [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED

ANN: HTML::Template 2.5

2002-02-01 Thread Sam Tregar
/ CONTACT INFO This module was written by Sam Tregar ([EMAIL PROTECTED]). You can join the HTML::Template mailing-list by sending a blank message to [EMAIL PROTECTED]

Re: [htmltmpl] Two HTML::Pager questions

2002-01-31 Thread Sam Tregar
On Thu, 31 Jan 2002, Phil Oertel wrote: Thanks for the great examples. I got HTML::Pager working in my app this morning, and I really like it. One question, though: why does it use javascript? Not a big deal, I was going to require it anyway, but I'm curious. It seemed to be the easiest way

Re: IPC::ShareLite

2002-01-31 Thread Sam Tregar
On Thu, 31 Jan 2002, Rasoul Hajikhani wrote: I have created a data structure and used IPC::ShareLite to save it in the main memeory. Can someone tell me how to look at it and destroy it. Your system should have a program called ipcs you can use to examine IPC shared structures (memory,

Re: [htmltmpl] Two HTML::Pager questions

2002-01-30 Thread Sam Tregar
On Wed, 30 Jan 2002, Phil Oertel wrote: I've been working on a project based on CGI::App and I've also been kicking around the idea of integrating HTML::Pager. So the two really aren't designed to work together after all? Well, no, I guess they're not. Which isn't to say that they don't

Re: [htmltmpl] how to force the new version ?

2002-01-26 Thread Sam Tregar
On Sun, 27 Jan 2002, Philip S Tellis wrote: Sometime on Jan 26, Nishikant Kapoor assembled some asciibets to say: push (@INC, /home/nkapoor/www/cgi-bin); this puts your directory at the end of @INC. You want it at the beginning. Use unshift instead. But rememeber, it has to be in a

Re: performance coding project? (was: Re: When to cache)

2002-01-26 Thread Sam Tregar
On Sat, 26 Jan 2002, Perrin Harkins wrote: It all depends on what kind of application do you have. If you code is CPU-bound these seemingly insignificant optimizations can have a very significant influence on the overall service performance. Do such beasts really exist? I mean, I guess

Re: Inline .44 and Inline::C documentation update

2002-01-25 Thread Sam Tregar
On Fri, 25 Jan 2002, Nadim Khemir wrote: About the documentation that needs upgrade, The standard answer is great idea do it and send us patches this is the most frustrating, useless, bloody dumb answer ever read in a mailing list and still it's very common. Oh, I'll be happy to do the

Re: Memory Leakage Problems with Inline::C

2002-01-25 Thread Sam Tregar
On Fri, 25 Jan 2002, Neil Watkiss wrote: If I'm right then Inline::C-Cookbook needs revision and Inline::C's docs need a new chapter on mortality. I've checked a new chapter into our repository, so the next Inline::C release will contain the new docs. Sorry, that didn't parse in my head.

Re: slow regex [BENCHMARK]

2002-01-23 Thread Sam Tregar
On Wed, 23 Jan 2002, Paul Mineiro wrote: i've cleaned up the example to tighten the case: the mod perl code snippet is: Fascinating. The only thing I don't see is where $seq gets assigned to in the CGI case. Where is the data coming from? Is it perhaps a tied variable or otherwise unlike

Re: [htmltmpl] How to assign a var from outer loop to one in innerloop ?

2002-01-21 Thread Sam Tregar
On Mon, 21 Jan 2002, Kapoor, Nishikant X wrote: I am trying to assign a value from outer loop to a var in inner loop by turning global_vars ON in new() but without success. The one in the outer loop is getting set fine though. I think this is a bug that's fixed in the upcoming 2.5 release.

RE: [htmltmpl] How to assign a var from outer loop to one in innerloop ?

2002-01-21 Thread Sam Tregar
On Mon, 21 Jan 2002, Kapoor, Nishikant X wrote: Thanks for your prompt response. missing File::Spec So, I just downloaded the latest module and installed it but the errors are still there. Here are the details: Can't locate object method splitdir via package File::Spec at HTML/Template.pm

Re: Bang returns

2002-01-20 Thread Sam Tregar
On Sun, 20 Jan 2002, Stanley, Jack wrote: I have developed this simple test to set $! - would appreciate comments - thank you. Any reason you wouldn't just set errno directly? I'm not sure what the implications of manually desynchronizing $! and errno are but I know they're not documented!

RE: Bang returns

2002-01-20 Thread Sam Tregar
On Sun, 20 Jan 2002, Stanley, Jack wrote: It is not my impression that errno and the integer value of $! are related - perhaps I am missing the point here. In my Inline use I have an exportable value for errno for testing purposes. From perlvar: $! If used numerically, yields

RE: Bang returns

2002-01-20 Thread Sam Tregar
On Sun, 20 Jan 2002, Stanley, Jack wrote: Thanks - my miss - I generally call other API routines - and get other error codes in addition to errno - so I setup this method to return what made sense to my caller. I never found a direct reference to setting it - was playing with the duality

Re: [htmltmpl] New filter for HTML::Template supports well-formedXML syntax.

2002-01-19 Thread Sam Tregar
On Sat, 19 Jan 2002, Kurt Stephens wrote: I have recently developed a filter for HTML::Template, tentatively named HTML::Template::wfXML, that modifies the syntax used by the HTML::Template tagset in conformance with well formed XML syntax. Neat! So, what's next, an HTML::Template

Re: [htmltmpl] Easy way to set the SELECTED value in option lists?

2002-01-15 Thread Sam Tregar
On Tue, 15 Jan 2002, Simon Crute wrote: Is there a better way to do this that I'm missing ? Check out CGI::popup_menu. That's what I use. I just stick the results into a single tmpl_var. -sam - To unsubscribe, e-mail:

Re: [htmltmpl] Easy way to set the SELECTED value in option lists?

2002-01-15 Thread Sam Tregar
On Tue, 15 Jan 2002, David Ferrance wrote: Sam, would you consider a doc patch that mentions the archive? I've got one in CVS already. It'll be in the next version... Thanks, -sam - To unsubscribe, e-mail: [EMAIL

Re: [htmltmpl] TMPL_INCLUDE question

2002-01-15 Thread Sam Tregar
On Tue, 15 Jan 2002, Gyepi SAM wrote: I discovered this issue of relative paths some time ago, pre 2.4, and sent a patch to the list. Sam asked for a test file and I never followed up. Here's the original email and patch. You will probably have to apply the patch manually) What problem does

Re: XML Schema circular definitions

2002-01-14 Thread Sam Tregar
On Mon, 14 Jan 2002, John Utz wrote: can you provide a tie-breaker? asserting that XMLSpy says it's ok is not really sufficient. I would suggest bringing a third tool into the mix and see what happens. I wish. If I could get a single tool to validate documents against my XML schema under

Re: XML Schema circular definitions

2002-01-14 Thread Sam Tregar
On Mon, 14 Jan 2002, John Utz wrote: can you provide a tie-breaker? asserting that XMLSpy says it's ok is not really sufficient. I would suggest bringing a third tool into the mix and see what happens. Found one (thanks to Radovan Chytracek) - TIBCO's Turbo XML 2.2 accepts the schema and

Re: kylix: rad!

2002-01-13 Thread Sam Tregar
On Sat, 12 Jan 2002, Perrin Harkins wrote: Well, does this product actually have any users to compete for? GUI builders usually don't work for anything but the most trivial websites that could be written in anything and do fine. People seem to come to mod_perl because they need more

Re: kylix: rad!

2002-01-13 Thread Sam Tregar
On Sun, 13 Jan 2002, brian moseley wrote: altho kylix was discussed in the first post of the thread, my actual reply to you stood on its own as a condemnation of a general cliquish attitude. Oh, consider me properly chastened then. BTW - kylix is actually the subject of this thread,

Re: [cgiapp] RE: Error in CGI::Application script

2002-01-11 Thread Sam Tregar
On Fri, 11 Jan 2002, Sabherwal, Balvinder (MBS) wrote: If I copy and paste the output in a file and save it as html, it works fine, when I call this script from the web server, It returns me an Internal Server Error message. What is the reason?? I don't know. Check your server logs! -sam

Re: ANNOUNCE: Bricolage 1.2.0

2002-01-11 Thread Sam Tregar
On Fri, 11 Jan 2002, Matt Sergeant wrote: Any chance of supporting more template systems in the future, like TT and XSLT? Adding more Burners (brictalk for templating system) is definitely something we're interested in. If you'd like to give it a try there's a brief set of instructions in

Re: [cgiapp] CGI Question

2002-01-10 Thread Sam Tregar
On Thu, 10 Jan 2002, Sabherwal, Balvinder (MBS) wrote: The script gets hung when it executes this line and here is what it gives in the debug mode: main::(test.cgi:34):$q = new CGI; DB1 (offline mode: enter name=value pairs on standard input) Any ideas as what am I doing wrong??

Re: [cgiapp] ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-08 Thread Sam Tregar
On Tue, 8 Jan 2002, Mark Stosberg wrote: OTOH, I think MailPage is a good fit for CPAN-- it needs just bit of code in an instance script to work, and you don't need a template file to get going. If I was to provide a default template set to use with Cascade, my 20+ template files would be

Re: [htmltmpl] HTML::Template has been Ruby-fied!

2002-01-07 Thread Sam Tregar
On Mon, 7 Jan 2002, Terrence Brannon wrote: I am not too informed about .NET, but we also must consider it as well as Python before declaring dominance. .NET supports Perl, actually, so we're already there! Python is another matter entirely, though. I imagine a Python port would be a

Re: [htmltmpl] Fwd: RE: [htmltmpl] HTML::Template ...

2002-01-07 Thread Sam Tregar
On Mon, 7 Jan 2002, Marina Hauptman wrote: Why would anyone want to program Java the Perl way anymore than to program Perl the Java way? Oh, don't worry - if no Java programmers want to use HTML::Template then it just won't be written! Open source programming is generally free of products

Re: [cgiapp] ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-06 Thread Sam Tregar
On Sun, 6 Jan 2002, Terrence Brannon wrote: Is there any possibility of abstracting the requirement of CGI::Application for HTML::Template? I had been interested in using CGI::Application with my templating module HTML::Seamstress. Sure, just don't call load_tmpl() and you can ignore

[htmltmpl] HTML::Template has been Ruby-fied!

2002-01-06 Thread Sam Tregar
I was reading Ruby In A Nutshell and I started thinking - hey, maybe I should write HTML::Template for Ruby. So I swing over to the Ruby Application Archive and there it is! IKEBE Tomohiro beat me to it. Check it out: http://www.0xfa.com/~ikechin/ruby/html-template-0.16/html-template.rd

[htmltmpl] ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-05 Thread Sam Tregar
://sourceforge.net/project/showfiles.php?group_id=12636 The module is also available on CPAN. You can get it using CPAN.pm or go to: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/ AUTHOR Copyright 2000-2002, Sam Tregar ([EMAIL PROTECTED]). Questions, bug reports and suggestions can be sent

ANNOUNCE: CGI::Application::MailPage 1.0

2002-01-05 Thread Sam Tregar
://sourceforge.net/project/showfiles.php?group_id=12636 The module is also available on CPAN. You can get it using CPAN.pm or go to: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/ AUTHOR Copyright 2000-2002, Sam Tregar ([EMAIL PROTECTED]). Questions, bug reports and suggestions can be sent

Re: [htmltmpl] die_on_bad_includes

2001-12-31 Thread Sam Tregar
On Mon, 31 Dec 2001, William R. Ward wrote: I would like to propose a new feature: die_on_bad_includes. If set to 0, then the tmpl_include statement does not require the file to actually exist. The attached patch implements this functionality, but I haven't tested it with caching, and

Re: [htmltmpl] die_on_bad_includes

2001-12-31 Thread Sam Tregar
On Mon, 31 Dec 2001, William R. Ward wrote: This seems like a reasonable addition to me. I'd accept a patch that included appropriate modifications to the caching code and some test cases. Any objections? Can someone who understands the caching code help with this? Well, that would be me

Re: Generators -- Icon, Python, YAML and YATL

2001-12-31 Thread Sam Tregar
On Mon, 31 Dec 2001, Clark C . Evans wrote: Hello. I was wondering if Parrot is going to support Generators. A generator is a function that returns multiple times, and I believe, was first made available in the language ICON. Now, ICON may have taken it a bit too far (everything is a

Re: Generators -- Icon, Python, YAML and YATL

2001-12-31 Thread Sam Tregar
On Mon, 31 Dec 2001, Clark C . Evans wrote: Hello. I was wondering if Parrot is going to support Generators. A generator is a function that returns multiple times, and I believe, was first made available in the language ICON. Now, ICON may have taken it a bit too far (everything is a

Re: [htmltmpl] Re: TMPL_LOOP Questions

2001-12-30 Thread Sam Tregar
On Sat, 29 Dec 2001, Sam Tregar wrote: sub display_questions(@refs) Hey, that's not Perl! Actually, that looks a bit like the proposed syntax for Perl 6... Are you from the future? Funny, it seemed to work for me. Yeesh, you're right it does! It looks like Perl thinks

Re: [PATCH] The Code Police [1/

2001-12-29 Thread Sam Tregar
On Sat, 29 Dec 2001, Boris Tschirschwitz wrote: I suggest opcode_t* code_start So what does this declare: opcode_t* code_start, code_end; If you said two pointers to opcode_t then you just got fooled by your notation! If you want to move the '*' then it has to go to the RHS since

Re: [PATCH] The Code Police [1/

2001-12-29 Thread Sam Tregar
On Sat, 29 Dec 2001, Boris Tschirschwitz wrote: I suggest opcode_t* code_start So what does this declare: opcode_t* code_start, code_end; If you said two pointers to opcode_t then you just got fooled by your notation! If you want to move the '*' then it has to go to the RHS since

[htmltmpl] Re: Memoryleaks with HTML::Template

2001-12-21 Thread Sam Tregar
On Fri, 21 Dec 2001, Gerhard Wannemacher wrote: I use the Perl package HTML::Template and found an memory leak in 'param'. I don't know any problems with unshift(@_,), but there is anyone. You can test it with foo.pl: with the original version of HTML::Template the memory increases, but

Re: [htmltmpl] HTML::Template and swish-e

2001-12-16 Thread Sam Tregar
On Thu, 13 Dec 2001, Bill Moseley wrote: Anyway, I've updated the search CGI script (and mod_perl handler) that comes with swish-e to work with HTML::Template. The hope that it will make it easy to integrate a search engine into your HTML::Template sites. Hey, that's cool! Count me stupid,

Re: [htmltmpl] tmpl_skip

2001-12-16 Thread Sam Tregar
On Thu, 13 Dec 2001, Francesco Martelli - HalNet wrote: simply we need a skip parsing tag. how can we do it? reading the following lines. I think I'd rather see a solution that used filter, if possible. I think it could be done easily enough by translating tmpl_* inside the tmpl_skip block

Re: [Patch] - for memory.c

2001-12-09 Thread Sam Tregar
On Sun, 9 Dec 2001, David Jacobs wrote: +for (i = 1; size i; i = 1); Infinite loop if size == MAXINT, eh? So don't do that. Ok. -sam

Re: Inline not viable with this speed

2001-12-05 Thread Sam Tregar
On Wed, 5 Dec 2001, Nadim Khemir wrote: Problems : There is a big problem with inline, SPEED. The main problem is the use of Parse::Recdescent. I've found that Parse::RecDescent speed is very dependent on the grammar being used. I use Parse::RecDescent in HTML::Template::Expr and it was so

Re: Thoughts on vtables...

2001-12-02 Thread Sam Tregar
On Sun, 2 Dec 2001, Michael L Maraist wrote: On Sunday 02 December 2001 02:47 pm, Brent Dax wrote: Quick comment: I've been thinking about constructing an 'OpaqueHandle' PMC type.  All the programmer is supposed to know about it is that it points to Something (usually a C struct, but they

Re: Thoughts on vtables...

2001-12-02 Thread Sam Tregar
On Sun, 2 Dec 2001, Michael L Maraist wrote: On Sunday 02 December 2001 02:47 pm, Brent Dax wrote: Quick comment: I've been thinking about constructing an 'OpaqueHandle' PMC type.  All the programmer is supposed to know about it is that it points to Something (usually a C struct, but they

RE: [PATCH] Don't count on snprintf

2001-12-01 Thread Sam Tregar
On Sat, 1 Dec 2001, Dan Sugalski wrote: At 01:20 PM 12/1/2001 -0500, Jeff G wrote: I'll probably pull out perl5's snprintf function and add it to the vtables. Unfortunately I'll say the dreaded L word here... Licensing. Wow, are we still running this project without a license? That's

RE: [PATCH] Don't count on snprintf

2001-12-01 Thread Sam Tregar
On Sat, 1 Dec 2001, Dan Sugalski wrote: At 01:20 PM 12/1/2001 -0500, Jeff G wrote: I'll probably pull out perl5's snprintf function and add it to the vtables. Unfortunately I'll say the dreaded L word here... Licensing. Wow, are we still running this project without a license? That's

ANNOUNCEMENT: HTML::Template::JIT 0.02

2001-11-26 Thread Sam Tregar
HTML::Template::JIT - a just-in-time compiler for HTML::Template CHANGES - Added support for loop_context_vars. - Added support for global_vars. - Fixed bug in loop param handling that made loop variables case-sensitive. DESCRIPTION This module provides a just-in-time compiler for

Re: [htmltmpl] list archive

2001-11-19 Thread Sam Tregar
On Mon, 19 Nov 2001, Sean P. Scanlon wrote: I have loaded the entire htmltmpl list archive here: http://bluedot.net/mail/archive/ Awesome! I'll add it to the FAQ. Thanks! -sam - To unsubscribe, e-mail: [EMAIL PROTECTED]

[htmltmpl] Re: HTML::Template::Component

2001-11-19 Thread Sam Tregar
On Mon, 19 Nov 2001 [EMAIL PROTECTED] wrote: Should this be included in HTML::Template.pm or as a separate file like HTML::Template::Expr? I don't know what the protocol here is. I think it should be a separate module. That way it can be developed quickly - HTML::Template is basically

ANNOUNCEMENT: HTML::Template::JIT 0.01

2001-11-17 Thread Sam Tregar
HTML::Template::JIT - a just-in-time compiler for HTML::Template DESCRIPTION This module provides a just-in-time compiler for HTML::Template. Templates are compiled into native machine code using Inline::C. The compiled code is then stored to disk and reused on subsequent calls.

ANNOUNCEMENT: HTML::Template::Expr 0.03

2001-11-13 Thread Sam Tregar
CHANGES - Added register_function() class method add functions globally. (Tatsuhiko Miyagawa) - Fixed broken cache mode. DESCRIPTION This module provides an extension to HTML::Template which allows expressions in the template syntax. This is purely an addition - all the normal

Re: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Dan Sugalski wrote: Gack. Looks like a mis-placed optimization in perl 5. The list of a foreach is *supposed* to flatten at loop start and be static. Apparently not. :) Care to file the perl 5 bug report, or shall I? It's not a bug. Check out the Foreach Loops section

RE: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Brent Dax wrote: That doesn't support your argument. The point is that in the statement: foreach(@array) { ... } @array should only be evaluated once, at the beginning of the loop. In effect (using := here, but otherwise Perl 5 code):

Re: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Dan Sugalski wrote: Yes, it is a bug. There's an array in list context--it's supposed to be flattened before the foreach loop gets evaluated. (And if there are multiple arrays in the list it works as you'd expect) Sorry, I quoted the wrong section. It really isn't a bug

Re: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Dan Sugalski wrote: Gack. Looks like a mis-placed optimization in perl 5. The list of a foreach is *supposed* to flatten at loop start and be static. Apparently not. :) Care to file the perl 5 bug report, or shall I? It's not a bug. Check out the Foreach Loops section

RE: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Brent Dax wrote: That doesn't support your argument. The point is that in the statement: foreach(@array) { ... } @array should only be evaluated once, at the beginning of the loop. In effect (using := here, but otherwise Perl 5 code):

Re: Yet another switch/goto implementation

2001-11-08 Thread Sam Tregar
On Thu, 8 Nov 2001, Dan Sugalski wrote: Yes, it is a bug. There's an array in list context--it's supposed to be flattened before the foreach loop gets evaluated. (And if there are multiple arrays in the list it works as you'd expect) Sorry, I quoted the wrong section. It really isn't a bug

ANNOUNCEMENT: HTML::Template::Expr 0.02

2001-11-05 Thread Sam Tregar
CHANGES - Fixed bug where numeric functions all returned 1. (reported by Peter Leonard) - Improved performance over 300% with a new grammar and expression evaluator. - Enhanced grammar to support call(foo 10) syntax. DESCRIPTION This module provides an extension to HTML::Template which

Re: [PATCH] Computed goto, super-fast dispatching.

2001-11-05 Thread Sam Tregar
On Mon, 5 Nov 2001, Simon Cozens wrote: On Sun, Nov 04, 2001 at 06:22:59PM -0300, Daniel Grunblatt wrote: Do you want me to give you an account in my linux machine where I have install gcc 3.0.2 so that you see it? How much effort do we want to put into something that shows a speedup on

Re: [htmltmpl] H::T for java

2001-11-04 Thread Sam Tregar
Thanks sam! it worked ...sorry about the delay i am away for this weekend.. Thank you so much.. Regards, Neo Sam Tregar [EMAIL PROTECTED] wrote: On Fri, 9 Nov 2001, anderson Neo wrote: ### here i am setting the ODD/EVEN Parameter

Re: Vtables fixed, scalar started

2001-10-28 Thread Sam Tregar
On Sun, 28 Oct 2001, Simon Cozens wrote: You are all encouraged to write implementations of the vtable functions in scalarclass.c Cool. So, what needs to get done first? By that I mean, what is standing in the way of our creating tests for scalar PMCs? Maybe I'm anal retentive, but I don't

Re: Vtables fixed, scalar started

2001-10-28 Thread Sam Tregar
On Sun, 28 Oct 2001, Simon Cozens wrote: You are all encouraged to write implementations of the vtable functions in scalarclass.c Cool. So, what needs to get done first? By that I mean, what is standing in the way of our creating tests for scalar PMCs? Maybe I'm anal retentive, but I don't

Re: Inline::Basic - Neato

2001-10-27 Thread Sam Tregar
On Sat, 27 Oct 2001, Neil Watkiss wrote: I haven't tested it or anything. Should be fun to play with, especially for those on Windows with big libraries written in VB or something. I wonder if it supports COM and all that jazz. Ah, looks like it's closer to Apple BASIC to me! It uses

Re: [htmltmpl] HTML::Template Help

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Billy Strader wrote: Does anyone have any good tutorials or documentation how to use this module effectively... I would really love to add templates to my system... Check out http://sam.tregar.com/software.html. I've got links there to an HTML version of the docs as well

Re: Parameter passing conventions

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Dan Sugalski wrote: Okay, here are the conventions. Great. Anyone want to offer up some examples or should I just wait for Jako support to see this in action? -sam

Re: Parameter passing conventions

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Dan Sugalski wrote: Okay, here are the conventions. Great. Anyone want to offer up some examples or should I just wait for Jako support to see this in action? -sam

RE: Ooops, sorry for that blank log message.

2001-10-26 Thread Sam Tregar
On Fri, 26 Oct 2001, Brent Dax wrote: What if I want my compiler to be lazy? Do you have the right to punish me for my laziness by making me add constant folding to my optimizer (or perhaps making me *write* an optimizer just to do constant folding)? Actually, a really lazy compiler will

Re: String rationale

2001-10-25 Thread Sam Tregar
On Thu, 25 Oct 2001, Dan Sugalski wrote: The only bits of the interpreter that much care about the string data are the regex engine parts, and those only operate on fixed-sized data. Care to elaborate? I thought the mandate from Larry was to have regexes compile down to a stream of string

Re: String rationale

2001-10-25 Thread Sam Tregar
On Thu, 25 Oct 2001, Dan Sugalski wrote: The only bits of the interpreter that much care about the string data are the regex engine parts, and those only operate on fixed-sized data. Care to elaborate? I thought the mandate from Larry was to have regexes compile down to a stream of string

[PATCH] Re-fixes comparisions in Parrot Scheme compiler

2001-10-23 Thread Sam Tregar
Here's a patch to re-fix comparisions in the Scheme compiler. The patch: - Makes (),(),(=),(=) and (=) behave correctly on more than two args. - Adds tests to affirm this and fixes tests that were incorrect. Sidenote: I don't think it's going to be possible to do static type

<    1   2   3   4   5   6   7   8   >