which scripting languages to use with distro development
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd just like to pt out (re post #12) that, whilst bash (any shell really) is an interpreted lang ie every cmd has to be re-parsed each time it's used, even in a loop, Perl is actually compiled-on-the-fly at program startup http://www.perl.com/doc/FMTEYEWTK/comp-vs-interp.html.
Net upshot is it's MUCH faster than eg bash.
Also, as sundialsvcs says, it's got a huge library of pre-built modules.
The Perl guys also keep a lot of backward compatibility.
If I would make a distro, I'd go for Bash + Perl + C/C++ (C/C++ over Perl, Perl over Bash)
And sometimes I might choose Ruby instead of Perl. Depends..
Last edited by konsolebox; 07-06-2011 at 03:39 PM.
The amount of time required to "compile source code" before execution (which might not even apply in some cases, e.g. Python's ".pyc" files) is truly inconsequential. It pure-and-simply does not matter at all.
Perl .. Python .. Ruby .. there are lots of choices, and lots of libraries. (Although I recently worked with a project, at a very, very household-name company, that found out the hard way that Ruby's packages in some cases were not nearly as battle-tested as Perl's. So it goes ... "your mileage may vary(TM).")
The bottom line is, these are all readily-available, very mature, programming systems that are at your fingertips. Thanks to the magic of the "#!" ("shebang") line, you can use any or all of them to construct your commands and other programs, and no one will ever know. Thanks to their extensive and well tested libraries, you can construct your new solutions very quickly indeed ... leveraging, instead of replicating, what has already been done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.