From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Freja Nordsiek Newsgroups: gmane.lisp.guile.user Subject: Re: How to make GNU Guile more successful Date: Sun, 16 Jul 2017 10:39:20 +0000 Message-ID: <680205F4-7E1B-4A3D-B82D-FE08B846323E@gmail.com> References: <87lgtajpkc.fsf@web.de> <87h8ychh9h.fsf@elektro.pacujo.net> <96F78925-F832-40C0-B94A-92E64B34B0EA@gmail.com> <878tjohdva.fsf@elektro.pacujo.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500201609 11162 195.159.176.226 (16 Jul 2017 10:40:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2017 10:40:09 +0000 (UTC) Cc: "guile-user@gnu.org" To: Marko Rauhamaa Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jul 16 12:40:06 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWgy3-0002av-A5 for guile-user@m.gmane.org; Sun, 16 Jul 2017 12:40:03 +0200 Original-Received: from localhost ([::1]:44754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWgy8-0004fE-Qe for guile-user@m.gmane.org; Sun, 16 Jul 2017 06:40:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWgxZ-0004eJ-7q for guile-user@gnu.org; Sun, 16 Jul 2017 06:39:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWgxU-0002XN-B2 for guile-user@gnu.org; Sun, 16 Jul 2017 06:39:33 -0400 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:33087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWgxU-0002WT-35 for guile-user@gnu.org; Sun, 16 Jul 2017 06:39:28 -0400 Original-Received: by mail-wm0-x22d.google.com with SMTP id t70so16873709wmt.0 for ; Sun, 16 Jul 2017 03:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:in-reply-to:references:mime-version:content-transfer-encoding :subject:to:cc:from:message-id; bh=A5mPNSBOPZsSCS5GZnvaEmpZud2pfTjbtDeE75mN47I=; b=Ewv7TvrCo2KGjtcG8ThWPobGAslEKoreQmBCa7CumU9GTaitQAESfJ/5EKeB2lP9L4 /uZXILtZ/fQklzcPweWCleKraVIPhTFmJsSxQ7Y0ohiax7ECAAZtVaxP3PINHhH9E30b VitJPRDstNVBtmikkabrM+hels/+byQl+BDx2wa5J29fXSPcgKXo1/blycNcaSdQUn5z nWRhw/CQbgQF7FlZj9PnaW2GA6TvvkObGBEKrOmtUT6FhJWhexufCmpKtkwGOHycwLov RqaSBDYGFJwETPfyGVq6/CPhkro5VKYuzxtPhAmnujvTpFA8TrMaSf0jQE7Chk5hQI2Q qLng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=A5mPNSBOPZsSCS5GZnvaEmpZud2pfTjbtDeE75mN47I=; b=mmbXylsLkXL07ZsiA4xGIhaujdfS2W25S6TbfTWHY6Ikve1MnzemzwDrRdknadTD1+ 7uukUmIPW1jnK8Lz6iIPrpE4cXvAXYwp5vllw7JsWnOyNMnhlLsdFWZhHiJRj1WERHsh 7ELEG56ayy3yaiTRO660Y/CrqCaWbsJBOOv9rURbXUHkB/MFiM/OrpwIQKu6GLTLw+ja pEnbCgGVAJXdh8XmB64TgLL1FeTXA+9dcK+bpy06wMkvXrUaCBxZR1LHm4nGja/dBpex q+BNGon4L1f/9Ro9PH4kobxizSgn3uWMKazbrQWDx4CM6Uh9Qfk7f8lEI1JUu7mJxaEb XuhA== X-Gm-Message-State: AIVw112di6b7vcqvgN8OvrTeNawLapAB/m4g6oS6dtWTz8XJX3os58lL N9DzrK5AeMsFD/yT X-Received: by 10.28.139.204 with SMTP id n195mr1115954wmd.14.1500201566976; Sun, 16 Jul 2017 03:39:26 -0700 (PDT) Original-Received: from android-5415d01cc55ceda2.local (dslc-082-083-039-055.pools.arcor-ip.net. [82.83.39.55]) by smtp.gmail.com with ESMTPSA id t14sm1998597wra.44.2017.07.16.03.39.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Jul 2017 03:39:26 -0700 (PDT) In-Reply-To: <878tjohdva.fsf@elektro.pacujo.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13940 Archived-At: Not necessarily=2E Using bytevectors and SRFI-4 vectors works very well for= some kinds of data=2E Just, they aren't the best for other kinds (in princ= iple they can work with all data if one is one implements a heap or other c= ustom memory management inside one)=2E They can be made to work but are har= d for some types of data, and if you are working with pointers inside them = very easy to get a segfault (even python numpy, which has a lot of work don= e on it over many years, still has a fairly easy way to segfault it if one = uses object dtype)=2E Freja Nordsiek On July 16, 2017 12:31:37 PM GMT+02:00, Marko Rauhamaa wrote: >Freja Nordsiek : > >> I checked the implementation of bytecectors and SRFI-4 in Guile and >> they are definitely not scanned for pointers=2E But I would say hacking >> them is not a good general solution for this problem=2E They are good >> and natural data structures for large arrays of numerical data that >> are standard signed/unsigned integers of various fixed sizes and IEEE >> floating point numbers, or structures/unions of these types=2E Using >> them for things other than that or strings/byte-arrays could be error >> prone, messy, and performance poor=2E > >So no Scheme solution recommended then? > > >Marko