logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Free Htmltemplate: Java implementation of HTML::Template: msg#00057

lang.perl.modules.html-template

Subject: Re: Free Htmltemplate: Java implementation of HTML::Template

Philip S Tellis <philip.tellis@xxxxxxx> writes:

> Sometime on Feb 18, Hrvoje Niksic assembled some asciibets to say:
>
>> Allow me to announce the availability of a Java implementation of
>> HTML::Template. The home page is at:
>>
>> http://htmltemplate.inet.hr/
>
> Uh, there already was a java version of html template at
> http://html-tmpl-java.sourceforge.net/
>
> why start a new project?

It's not new and, more importantly, it didn't start out as a fork.
When I started writing Free Htmltemplate in 2002, I wasn't originally
aware of your version. I even announced a release back in 2002:

http://www.geocrawler.com/archives/3/23294/2002/10/0/9958609/

Later I did come across your HTML.Template, but I found that I
preferred some of the design and implementation choices I've made.
I'll list some examples that convinced me to stick with a separate
implementation:

* HTML.Template didn't seem to offer a caching facility. One of the
strong points of Free Htmltemplate is the ability to request
transparent caching of compiled templates (including optimizations
like blind cache), but also to simply retrieve the CompiledTemplate
object and use it later.

* Free Htmltemplate is written with multithreaded environment in mind
from the start. For example, the transparent caching code is
careful to synchronize accesses to its data structures, while making
sure that synchronization doesn't degrade into serialization through
long-standing locks.

* I had different ideas of what the translation of HTML::Template's
API to Java should look like. For example, I don't have methods
that accept Object[] arguments that closely follow Perl's subroutine
call model. The Free Htmltemplate approach seems more "Java-like"
to me, while retaining the spirit of the original API. This is
surely deep in the realms of personal taste, but I invite you to
take a look and judge for yourself.

* I used the new API's such as Collections, Iterators, etc. and did
not want to revert to Hashtables, Vectors, and Enumerations. This
is a matter of taste as well.

* My simple-minded benchmarks showed that my implementation was
faster. This might simple be a consequence of the caching.

None of this is meant as an argument that my program is in any way
"better" than yours, just as an explanation of why I didn't just pick
up your version when I became aware of it.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation