F22 Self Contained Change: Disabled Repositories Support

Matěj Cepl mcepl at cepl.eu
Fri Mar 20 16:16:08 UTC 2015


On 2015-03-20, 14:28 GMT, Richard Hughes wrote:
> Now imagine you're trying to write a command-not-found implementation
> that uses python to load yum. The Yum codebase is pretty huge, and by
> the time the 50ms  "user needs results now" timer expires we're not
> even at "loading metadata" let alone returning results.

Use right tool for the right job. Premise that this obviously 
rather time-sensitive application cannot be written in Python 
(which might be true) doesn’t lead to conclusion that no system 
application should be written in it.

If you mean that libsolv and libcomps should be written in C, 
and that for this (rather specialized and not absolutely 
necessary) weird application core of yum being written in Python 
was too slow, I would agree.

> Python is awesome for prototyping and for little scripts. It's just
> not awesome at everything.

Not it is not awesome for everything, but something tiny like 
for example Google Website, or some other tiny little scripts 
https://www.python.org/about/success/ it does pretty well.

Matěj



More information about the devel mailing list