From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.user Subject: Re: Low level things in C or Scheme [was Stupid module and pregexp questions] Date: Wed, 30 Apr 2003 08:39:26 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20030430063926.GB22895@www> References: <20030428175342.GA15667@www> <9c0db84ca1f62a523f9acef422573520@bouncing.localnet> <20030429081243.GA18455@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051681796 10118 80.91.224.249 (30 Apr 2003 05:49:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2003 05:49:56 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Apr 30 07:49:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AkTa-0002d2-00 for ; Wed, 30 Apr 2003 07:49:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AkQs-0001AI-08 for guile-user@m.gmane.org; Wed, 30 Apr 2003 01:47:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AkQX-00019i-00 for guile-user@gnu.org; Wed, 30 Apr 2003 01:46:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AkQW-00019T-00 for guile-user@gnu.org; Wed, 30 Apr 2003 01:46:45 -0400 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AkQW-000193-00 for guile-user@gnu.org; Wed, 30 Apr 2003 01:46:44 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id 856081457F; Wed, 30 Apr 2003 08:39:26 +0200 (CEST) Original-To: Thamer Al-Harbash Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1878 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1878 On Tue, Apr 29, 2003 at 01:35:21PM -0400, Thamer Al-Harbash wrote: > On Tue, 29 Apr 2003 tomas@fabula.de wrote: > > > Of course, if we can have our cake and eat it, I'm all for it, but I'm > > comfortable with the idea of a layered system where you do the low-level > > things in one language and the high-level things in another. It correlates > > quite well with the layering of software and thus feels (to me) very > > natural. > > It's funny you should talk about layering. I've recently started > writing a project at work (or re-writing for the Nth time thanks > to changes being requested), and I chose doing the high level > work in guile just so I could say "ok done," and get back to more > important things. > > The funny thing is, thanks to guile's seamless use of arbitrarily > big numbers (its numerical tower), I don't know if I *want* to do > my number crunching in C anymore. This project is slowly becoming > 100% scheme as I remove the final bits of C from it. > > I have not noticed any significant penalty in performance. That's good news -- and as MJ Ray and me discussed off list, writing everything in Scheme makes the application much more hackable (remember the hacktivation energy?). I would just argue for considering well-defined ``library'' stuff, like bignums, regexps, matrix algebra, what not, for implementation in a ``lower layer''. And then to design a good interface (since it'll be more static, much care has to go into that). And then to reconsider. And then may be to do it. Performance -- well, only if you are forced to :-) Regards -- tomas _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user