From owner-freebsd-questions@FreeBSD.ORG Thu Nov 6 23:10:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF332106567E for ; Thu, 6 Nov 2008 23:10:45 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 584198FC18 for ; Thu, 6 Nov 2008 23:10:45 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id 0772C35FA3; Fri, 7 Nov 2008 00:07:23 +0100 (CET) Date: Fri, 7 Nov 2008 00:12:01 +0100 From: cpghost To: Wojciech Puchar Message-ID: <20081106231201.GA54707@phenom.cordula.ws> References: <49131701.9020208@extracktor.com> <20081106172818.GA39709@slackbox.xs4all.nl> <20081106220335.Q28070@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081106220335.Q28070@wojtek.tensor.gdynia.pl> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: what is your programming language on freebsd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 23:10:45 -0000 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/