Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2008 00:12:01 +0100
From:      cpghost <cpghost@cordula.ws>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what is your programming language on freebsd?
Message-ID:  <20081106231201.GA54707@phenom.cordula.ws>
In-Reply-To: <20081106220335.Q28070@wojtek.tensor.gdynia.pl>
References:  <49131701.9020208@extracktor.com> <20081106172818.GA39709@slackbox.xs4all.nl> <20081106220335.Q28070@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 06, 2008 at 10:06:15PM +0100, Wojciech Puchar wrote:
> >> 2. Is FreeBSD more optimised in performance for any particular language?
> >
> > No. Performance of scripting languages is usually not a big problem
> > anymore because of the increased speed of new computers. And it depends
> 
> scripting language are not made to be fast running, but to "mix" many 
> other programs to get result fast and easy.

Most scripting languages can be used in hybrid environments, and will
be pretty fast if they call compiled functions for CPU-intensive
tasks.

As an example: in Python, you can call compiled functions in dynamic
libraries directly with the ctypes module; no need to recompile
anything directly. Alternatively or in addition to this, just write
your own extension module in C/Python either manually, or with code
generators like SWIG to optimize CPU bottlenecks or call into / link
against other compiled code.

Hybrid systems are usually very fast to set up, yet don't
significantly sacrifice speed. Ever used numpy, scipy etc. with
optimized C and FORTRAN libraries (ATLAS, FFTW3 etc.) in Python for
big numeric computations? Works like a charm and is pretty fast too.

-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?20081106231201.GA54707>