Date: Sun, 7 Oct 2007 19:54:57 +0200 From: cpghost <cpghost@cordula.ws> To: Roland Smith <rsmith@xs4all.nl> Cc: James Jeffery <cascadingstylez@googlemail.com>, freebsd-questions@freebsd.org Subject: Re: C++ Compiler On FreeBSD Message-ID: <20071007195457.5fa86514@epia-2.farid-hajji.net> In-Reply-To: <20071007150830.GC84686@slackbox.xs4all.nl> References: <972994690710061253q483e26ber68f4716d3202d1fa@mail.gmail.com> <20071006201356.GB55336@slackbox.xs4all.nl> <20071006163312.GB61195@demeter.hydra> <20071007150830.GC84686@slackbox.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Oct 2007 17:08:30 +0200 Roland Smith <rsmith@xs4all.nl> wrote: > My preference for doing things is; > > 1) Can it be done with a shell-script? (esp. one-time hacks) > 2) Else use Perl, Octave, Ruby, but > 3) If speed is key, use C. :-) Yup, exactly. In Python, that's what extension modules in C and C++ are for (ditto for Perl, Ruby, ...). You gain raw speed for CPU bottlenecks, though that's just a nice side effect. More importantly, you can tap into existing C/C++ libraries by wrapping their interfaces into nice extension modules. And if you're too lazy do do the wrapping against Python, Ruby, Perl... APIs yourself, just use something like SWIG. It works like a charm. :) Anyway, having a working knowledge of C and C++ is always a very good idea! Go for it! It'll pay off, whatever your main programming language. -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071007195457.5fa86514>