From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sascha Ziemann Newsgroups: gmane.lisp.guile.user Subject: Re: bytevector-string-ref Date: Wed, 21 Dec 2022 16:49:09 +0100 Message-ID: References: <9761cf20-07b5-8c01-35a2-f9cb250e4f34@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: tomas@tuxteam.de Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 21 16:50:04 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p81M4-0007QY-M3 for guile-user@m.gmane-mx.org; Wed, 21 Dec 2022 16:50:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p81Lc-0005YB-H2; Wed, 21 Dec 2022 10:49:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p81LW-0005Xt-BE for guile-user@gnu.org; Wed, 21 Dec 2022 10:49:30 -0500 Original-Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p81LU-0003fD-Ql for guile-user@gnu.org; Wed, 21 Dec 2022 10:49:30 -0500 Original-Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-1322d768ba7so19610042fac.5 for ; Wed, 21 Dec 2022 07:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7QZxQzZMR4SfD7gP22AltcFG6EQs1UPbOHiP/npZVxo=; b=kfNtGov8RqgA7moYrkNk56xhM/xaYs09hlQhmOcuflmVy3L/WLpdbMPFypRHsApaGn l1QE0FLkvkvVbW+JftGD91YOetI6uHZJ16LQNz0lgVUuTGjTPMi/paSlS0DEmBZHLLfw SYIRlBiWg/4Ev3FJWq4NGlqnKQ6LrYAyTUn+dEf9DGRUo+U1u0yMEjuF/SdsGBdBmPK+ +9pNelNVEUvfxXERgvO02TYjkBkrOa73lODZmI0V7hOr0KCkD3Ffrq3PzVhxK9QNkdgx uy2dcnoDeNGkAiBFicd94KkhLrN6Ym0D6wRJ6+IQTsL+NSRgX9hgOmCgpBU9dpwaEFmM 5SBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7QZxQzZMR4SfD7gP22AltcFG6EQs1UPbOHiP/npZVxo=; b=S11axDifPVmnR/LBcoe9VrOcq2xq/VuR1B3Ans91kl2RGvvhzKHn2P3Pi70brMpZSg EBlWyc7EJXR1MNOjBko0ZUVMv+4agKxzT+7Jm//04GXFbtSRtVw0PIrNtiQxmousgAMV kkM+81IkLKkL1l53jQW4ugjwvnWUlvvxcCzWbewxUDkPxxPMIjJQJpqbk7Q4hZfskp4z Ay17gK8Tf8zg2/+ZSJr1tOFNgSq6XOz13FZ/Uh0h5XdUOmSvlDNUN0BKksRTAxXpHlIn 4kSGp+F+0FxHnFOjbbsT2+JP25FH4kl71M5wOitcOFkt22yO+SUaDDqhr8RGMubHpwax E5Rw== X-Gm-Message-State: AFqh2kqriuN6SwCEHqQQqcgMNaQ4IHOL3maSNd679L5Ik0+nbDFsPH72 7sRsE3JP9L/YkynCQ+2BnJ1YdqFmH5HUF5Wjv1r9ocPgo7k= X-Google-Smtp-Source: AMrXdXtxUywERF5TrRF7GGLrCS1ahAX2M/nAin33A1R7RDWvoZS4rWYgq1k6GH3JW+7RCz+Uvsea0QXhYCNiT/Ia4xw= X-Received: by 2002:a05:6870:ac21:b0:144:910f:43ea with SMTP id kw33-20020a056870ac2100b00144910f43eamr132967oab.140.1671637767380; Wed, 21 Dec 2022 07:49:27 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=ceving@gmail.com; helo=mail-oa1-x2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18793 Archived-At: > Is that related to "shared arrays"? This seems to be even more general (the > affine part being the offset of the slice). Thanks for the hint. I was not aware of them. But I am struggling to use them. This does not work: (define str "Hello, World!") (define bv (string->utf8 str)) (define sa (make-shared-array bv (lambda (i) (list (+ i 7))) '(0 4))) (utf8->string sa) Anything else I can try?