[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Pert-bindings
From: Roberto Alsina <ralsina () unl ! edu ! ar>
Date: 1999-02-14 4:57:57
[Download RAW message or body]
On Sun, 14 Feb 1999, Sirtaj Singh Kang wrote:
>
> On Sat, 13 Feb 1999, Cristian Tibirna wrote:
>
> > Hi
> >
> > Could you explain the net advantages of language bindings? PLEASE note
> > that I'm really naive in this field and I'd really like to understand why
> > people need bindings for exotic languages into a graphics widget set.
> >
> > I understand the need of a scripting language to automate tasks in an
> > *installed* desk env. But for buildin the desk env?
>
> C++ is a big step up from C in programming level in many ways, but is
> still left behind by most scripting languages. For example, here is a
> simplified but effective way to look up which rpms you have in your system
> in perl:
>
> open( INST, "rpm -qa|") || die "can't read rpm list";
>
> while( <INST> ) {
> next unless /^([^\d]+)-(\d.*)-(\d+)$/;
>
> $version{ $1 } = $2;
> $release{ $1 } = $3;
> }
>
> # display version and release of installed tetex
>
> print "tetex is version ", $version{ 'tetex' },
> " release ", $release{ 'tetex' }, "\n";
>
> # all installed rpms (sorted)
>
> print join ( " ", sort keys %version ),"\n";
>
>
> Now how many lines would that take in C++? :)
<perl-disliker-mode>
If I understood what it does, I would tell you ;-)
</perl-disliker-mode>
> Combined with a decent GUI
> toolkit, creating small and useful graphical apps is a snap.
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) ralsina@unl.edu.ar
(_Y_.)' ._ ) `._`. " -.-' Centro de Telematica
_..`-'_..-_/ /-'_.' Universidad Nacional del Litoral
(l)-'' ((i).' ((!.' Santa Fe - Argentina
KDE Developer (MFCH)
Life isn't short. It's just that death is longer.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic