Novel Thoughts on Scripting and Languages

James Huang judoscript at hotmail.com
Wed Jan 8 10:32:12 EST 2003


Grant Edwards <grante at visi.com> wrote in message news:<slrnb1ncej.n6a.grante at localhost.localdomain>...
> In article <52719db8.0301071948.71364a03 at posting.google.com>, James Huang wrote:
> 
> >> If that's your definiton, all programming languages of which I'm aware are
> >> "scripting languages".  At least under Linux, issuing "OS commands" is a
> >> standard library function accessible to all languages.  C and assembly
> >> language can both use the exact same system() or exec calls that Python and
> >> Perl do.
> > 
> > Gee... Anyway, this is what I call scripting:
> > 
> >    copy '*.java, *.jj' except '*Test*' in '~/src/'
> >         recursive echo
> >         to '~/archive/today';
> > 
> >    copy '*.java, *.jj' except '*Test*' in '~/src/'
> >         recursive echo
> >         into '~/archive/today_src.jar';
> 
> Then python isn't a scripting language, since it can't do that sort of
> stuff.  I think.  I don't know what the language above is nor what the
> example does, but it appears to be manipulating files more-or-less directly
> the way a shell script does.
> 
> Here is how you do an os command in C:
> 
>  system("ls -l >foo");
>  
> Here is how you do the same thing in Python:
> 
>  os.system("ls -l >foo")
> 
> Not much difference, eh?
> 

I'd say quite different even in this example.

Keep in mind that was just one example how JudoScript is different
(albeit it does show the power of that particular copy command).
JudoScript's power is its collective strengths of all such features.
Let me pick a few:

  executeSQL {
    create table foo(.....);
    inser into foo (...) values (....);
  }

or

  preparedExecuteUpdate upd:
    insert into foo (...) values (?,?,?,?);
  with @1:int  = 1,
       @2:date = date(2003,1,8),
       @3      = 'abcd',
       @4      = 'efg'
  ;

or

  [sendMail example, in my other response]

or

  [HTML scraping example, in my other response]

or

  [thread programming example, in my other response]

or

  ... ... ...


> > This is programming, "scriptingly":
> > 
> >    do 'http://www.google.com' as sgml
> >    {
> >    <a>:   println '<a>   link: ', $_.href;
> >    <img>: println '<img> link: ', $_.src;
> >    }
> >
> > This is pure programming:
> > 
> >    for i from 1 to 10 {
> >      println i;
> >    }
> 
> Then python is "pure programming".

I tend not to say python is not a scripting language coz people have
been so used to that term. You first response made me struggle.




More information about the Python-list mailing list