From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ken Anderson Newsgroups: gmane.lisp.guile.user Subject: Re: Low level things in C or Scheme Date: Tue, 29 Apr 2003 16:24:52 -0400 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <5.2.0.9.2.20030429161523.028f2588@zima.bbn.com> 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 1051648090 21543 80.91.224.249 (29 Apr 2003 20:28:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 20:28:10 +0000 (UTC) Cc: jscheme-user@lists.sourceforge.net Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 29 22:28:04 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 19Abhr-0005aW-00 for ; Tue, 29 Apr 2003 22:28:04 +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 19Abgr-00084o-00 for guile-user@m.gmane.org; Tue, 29 Apr 2003 16:27:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Abg8-0006gW-00 for guile-user@gnu.org; Tue, 29 Apr 2003 16:26:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Abfs-0005x6-00 for guile-user@gnu.org; Tue, 29 Apr 2003 16:26:03 -0400 Original-Received: from zima.bbn.com ([128.89.72.16]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Abfp-0004YF-00 for guile-user@gnu.org; Tue, 29 Apr 2003 16:25:57 -0400 Original-Received: from ale.bbn.com (ale [128.89.72.125]) by zima.bbn.com (8.11.4/8.11.4) with ESMTP id h3TKOq902695; Tue, 29 Apr 2003 16:24:52 -0400 (EDT) X-Sender: kanderso@zima.bbn.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: djurfeldt@nada.kth.se In-Reply-To: Original-cc: guile-user@gnu.org 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:1872 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1872 We've had similar experience with JScheme, a Scheme in Java. Two projects i know about are 60% and 80% Scheme. In the second case we prototyped a key component in Scheme and eventually rewrote the guts of it in Java, though we still use Scheme data structures such as pairs inside. All the external control is done in Scheme. At 09:34 PM 4/29/2003 +0200, Mikael Djurfeldt wrote: >Thamer Al-Harbash writes: > >> 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've been through something similar. I've written a neuron simulator >which I've used in my research for several years. > >Originally, a lot of things was done with C++. Guile was only used as >a scripting language, gluing pieces together. Then, during the years, >I tended to do more and more on the Scheme level. > >Now, I write almost everything in Scheme. > >> I have not noticed any significant penalty in performance. > >For me, there would be a penalty if the inner loops were on the Scheme >level. Now, however, I do most computations using my Matlab-like >GOOPS-based matrix library >(http://kvast.blakulla.net/mdj/matrix-1.2.0.tar.gz). So, even though >the algorithms are written in Guile Scheme, the overhead gets drowned >by the heavy crunching vector and matrix loops on the C level in the >library. Sounds nice. Do the xlisp-stat guys know about this? >(BTW, if any of the people who have written to me regarding this >library and possible collaboration with other projects, I have to >apologize for not getting back to you quickly. I will do that soon.) > >Best regards, >Mikael D. > > >_______________________________________________ >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