• [^] # Re: Interdit

    Posté par (site web personnel, Mastodon) . En réponse au lien Picol, un interpréteur Tcl sur près de 500 lignes de code en C. Évalué à 3.

    C’est beaucoup... Mais relativement nain par rapport à la plupart des projets modernes... Encore plus remarquable surtout quand on regarde tout ce que fait le langage et la taille de l’implémentation officielle : le dernier tarbal fait 11,4 MiO et il y a des adaptations par plateformes...

    $ # quatre plateformes...
    $ ls
    README.md doc libtommath manifest.uuid tests-perf win
    changes.md generic license.terms pkgs tools
    compat library macosx tests unix
    $ find . -name '*.ac' 
    ./compat/zlib/contrib/minizip/configure.ac
    ./win/configure.ac
    ./unix/configure.ac
    ./pkgs/thread3.0.4/configure.ac
    ./pkgs/tdbcodbc1.1.13/configure.ac
    ./pkgs/itcl4.3.5/configure.ac
    ./pkgs/tdbcmysql1.1.13/configure.ac
    ./pkgs/tdbcpostgres1.1.13/configure.ac
    ./pkgs/tdbc1.1.13/configure.ac
    ./pkgs/tdbcsqlite3-1.1.13/configure.ac
    ./pkgs/sqlite3.51.0/configure.ac
    ./macosx/configure.ac
    $ # nombre de fichiers
    $ find . -name '*.[hc]' | wc -l
     521
    $ # nombre de lignes
    $ find . -name '*.[hc]' -exec wc -l {} \; | awk '{s+=1ドル}END{print s}'
    786642
    $ # ratio de la performance
    $ echo $((786642/500))
    1573

    "It is seldom that liberty of any kind is lost all at once." ― David Hume