From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Peter S. Christopher" Newsgroups: gmane.lisp.guile.user Subject: Re: Floating Point? Date: Tue, 9 Sep 2003 09:34:58 -0500 (CDT) Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20030909092613.GE29118@ws24047.math.univ-rennes1.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1063143515 1579 80.91.224.253 (9 Sep 2003 21:38:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2003 21:38:35 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 09 17:07:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wk5B-0005V3-00 for ; Tue, 09 Sep 2003 17:07:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wk3L-0005Om-Ps for guile-user@m.gmane.org; Tue, 09 Sep 2003 11:05:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19wjb0-0004Cy-VL for guile-user@gnu.org; Tue, 09 Sep 2003 10:35:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19wjas-0003z0-7i for guile-user@gnu.org; Tue, 09 Sep 2003 10:35:46 -0400 Original-Received: from [128.135.12.12] (helo=midway.uchicago.edu) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wjaW-0003eP-UZ for guile-user@gnu.org; Tue, 09 Sep 2003 10:35:24 -0400 Original-Received: from harper.uchicago.edu (harper.uchicago.edu [128.135.12.7]) by midway.uchicago.edu (8.12.9/8.12.9) with ESMTP id h89EZM1V007817 for ; Tue, 9 Sep 2003 09:35:22 -0500 (CDT) Original-Received: from localhost (peterc@localhost) by harper.uchicago.edu (8.12.9/8.12.9) with ESMTP id h89EYxR5019166 for ; Tue, 9 Sep 2003 09:34:59 -0500 (CDT) X-Authentication-Warning: harper.uchicago.edu: peterc owned process doing -bs X-Sender: peterc@harper.uchicago.edu Original-To: guile-user@gnu.org In-Reply-To: <20030909092613.GE29118@ws24047.math.univ-rennes1.fr> X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2248 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2248 As I mentioned in my last e-mail, I tried the python-approach and it does give some nice performance enhancements. My problem with it is that it's fairly awkward even for some relatively easy algorithms. I think (unless anyone has any ideas;-}) it is as good as we'll get unless/until GUILE becomes a compiled language. (In this later case, one could imagine embedding special forms that allow fast array loops and other fancy enhancments). Pete On Tue, 9 Sep 2003, David Allouche wrote: > On Tue, Sep 09, 2003 at 09:52:26AM +0200, tomas@fabula.de wrote: > > No. Arbitrary precision is for integers (it's impossible to do general > > arbitrary precision for reals). Floats in Guile are just machine floats > > (properly wrapped as SCMs, which might make them a tad `slower', though). > > > > If I see right, they are just machine doubles, referenced indirectly > > through the SCM object (thus the unwrapping costs you a dereference). > > Just an idea... > > Python had a similar problem: the language overhead dominated > computing time in number crunching applications. This problem was > solved by the implementation of a fast (written in C) matrix crunching > library. The basic idea is "to add 1000 FP numbers, add two matrices > and let the looping be done in C instead of in Scheme". Of course, the > usual collection of algebra is also a nice bonus. > > Now, Python, though well known as a generally slow language is > successfully used in many demanding number-crunching applications. > > -- > David Allouche | GNU TeXmacs -- Writing is a pleasure > Free software engineer | http://www.texmacs.org > http://ddaa.net | http://savannah.gnu.org/projects/texmacs > david@allouche.net | allouche@texmacs.org > TeXmacs is NOT a LaTeX front-end and is unrelated to emacs. > > > _______________________________________________ > Guile-user mailing list > Guile-user@gnu.org > http://mail.gnu.org/mailman/listinfo/guile-user > _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user