Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Finding duplicated code in Perl

by shushu (Scribe)
on Nov 27, 2003 at 19:28 UTC ( #310586=note: print w/ replies, xml ) Need Help??


in reply to Re: Finding duplicated code in Perl
in thread Finding duplicated code in Perl

Hi all,
Thanks for the interest in the problem and in the language.

First, regarding to CPD tokenizer requirement - looking inside CPD sources I see they need the yokenized data in java structure. heir own PHP and C++ tokenizers are written in Java, but it doe snot mean we cannot execute Perl tokenizer, and they import the data (though it will take time to fit the information, I guess).

Meanwhile I executed CPD over some C code and got very nice results. When changing my Perl files into .java I got some limited answers as well, so I might just use what I got. It depends whether I will get the reources (tiem and people) to work on it or not.

Regarding to the language, and the primary language -

  • It is called QTL, and it comes for Qa Testing Language
  • Using this language we were able to execute distributed tests over any number of machines in a multi platform environment. All, BTW, written in Perl.
  • The new version, already working for a year, reduced the amount of special QTL commands, and gave the developer (almost) full Perl capabiliites.
  • Two main objects are use in QTL/Perl - a machine, and a label
  • $machine->command() will execute the command on the remote machine, and will return a $label.
  • $label->attribute (such as result, state, exitcode) will check the executed command and give the developer updated status all of the time
  • The converter from the old language to the new syntax was rather simple, and was executed a year ago. This means we cannot go back to the old sources, since we had many changes already.


  • I cannot give more information without management approval (which I won't get, I believe) - this is not an open source project. On the other hand, I plan to give a lecture in YAPC::Israel::2004 which will take place on February 2004, so you are all welcome.

    Back to our business - the duplication detector - although it is very interesting stuff, unless I come up with a fully automatic tool that find duplications over several files and give the user proper information on what to do with them, I believe I will need to take some of your advices, and work manually on it.

    Question is - what do you think will take longer, and what do you think will be more reliable ?

    Thanks,
    shushu


    Comment on Re: Re: Finding duplicated code in Perl

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://310586]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (7)
    As of 2014-07-11 11:37 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      When choosing user names for websites, I prefer to use:








      Results (224 votes), past polls