what is your programming language on freebsd?
cpghost at cordula.ws
Thu Nov 6 15:10:45 PST 2008
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
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.
Cordula's Web. http://www.cordula.ws/
More information about the freebsd-questions