logo       

[ANNOUNCE] Devel::Typecheck 0.01: msg#00060

Subject: [ANNOUNCE] Devel::Typecheck 0.01

The uploaded file

    Devel-TypeCheck-0.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/B/BA/BARGLE/Devel-TypeCheck-0.01.tar.gz
  size: 17824 bytes
   md5: 08c34f17ac3ba314a5e8e2a828e2b037

TypeCheck does basic type inference on Perl programs and reports if types are used inconsistently. For instance, when run against the following program, it identifies that $foo takes on the integer type as well as the reference to integer type:

if (int(rand(2)) % 2) {
     $foo = 1;
} else {
     $foo = \1;
}

Notably, there are some things that it does not do (yet):

1.  No interprocedural analysis - functions do not get types.
2. No aggregate data types (hashes and arrays lose type information when written to).
3.  No objects (it treats them as plain references to hashes).

I will address 2 (and hopefully 1 as well) by September 1.

The type system is a model of the type information available at compile time. I have written a paper (not intended for a Perl community audience) that explains motivation, mechanism, performance, and future direction for Devel::Typecheck:

http://www.umiacs.umd.edu/~bargle/project2.pdf

Notably, it discusses the obscure type notation that I've used.

--
                    Gary Jackson
                    bargle@xxxxxxxxxxxxxx




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

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
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