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: Thu, 22 Dec 2022 09:58:05 +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="39448"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Dec 22 09:58:50 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 1p8HPe-000A9X-Ed for guile-user@m.gmane-mx.org; Thu, 22 Dec 2022 09:58:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8HPG-0002GB-EV; Thu, 22 Dec 2022 03:58:26 -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 1p8HPE-0002Fa-5C for guile-user@gnu.org; Thu, 22 Dec 2022 03:58:24 -0500 Original-Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8HPC-00056K-GB for guile-user@gnu.org; Thu, 22 Dec 2022 03:58:23 -0500 Original-Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1443a16b71cso1766057fac.13 for ; Thu, 22 Dec 2022 00:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Pl5vGveRdJw7LWVokuILGqpqkzLT+2lCzu+yf8tfnyQ=; b=RyCJyzRrUmb+MN/GbHUWiFXhgE6h4ba5TMWN3aR6Zc8VDc3fN6N4pSwWB5H5CDJMSE u6bUyK1AdjfEYONOLjX83vHa6SIIORUWac/sb+Ww/OFzCVpBIezx1Egj6lrxFARqd9z6 ejBAHb8Nn4ukBv86atiG1z5MFabtB75ZE7CSyMpTzMwBH1y45F//IolABZllrZG9nRMR eNvW2mLTrGc/bUDcxwM8p01iUhcyDOZF0J+EDXH7mZhvTJUDGUNKBK1iaV2a66hF+AS/ ay9USaFleXWPJcajL+5tXoLf42iQiG6iu3EIndg4jf+hD1frPGQkYqcNHCGcFqZ3aPjR FKNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=Pl5vGveRdJw7LWVokuILGqpqkzLT+2lCzu+yf8tfnyQ=; b=rKEoQz334Sg5oQJEiEAgsiFsSlXCVVzLMTZBNNYXjKiahfzlW2xPC+r/wFWeN2vtmp qguFAb+f1/2iJH4eA6Yuv2e6UYykDEnC1ONCnk69wXcAg5YMIPYX0PE5jLKzbuBunCQS xFxxDvjgAl32R928z+BEN1TAgl41voYZ8vFArusc1wZEeHJb+Unu24CEIMPysHb4yILV NxNQrw9wn1t1kD8mPTz8+ECQib2jOenItj52KntjvkzKCYGWNFj/XNDh0bEde9ALSOYP /0FAzbur5RfyMpN+FzBmGpFJXPLu3dAwhSRNEtu2rp3mytdJR4YA6LNFkl2aFI7a6S9Q KRHw== X-Gm-Message-State: AFqh2kqBnzhGS17HW0QaHMZA5iGyWfJ2zFHqNEYC2FElwYpOzWahrnis xx8lVCJk8ieay6HskS/uWIqXqdbp3iPKP7c11eJg7mmP1mI= X-Google-Smtp-Source: AMrXdXtnzFV4eYA0ncfEv0NxOnhMV5rjAuSSkKxPFTfOITqkf6/VpqNLO6FKEokaHnNqziI7EnoI7IqcNhWpEIkDjv0= X-Received: by 2002:a05:6870:ac21:b0:144:910f:43ea with SMTP id kw33-20020a056870ac2100b00144910f43eamr298522oab.140.1671699500979; Thu, 22 Dec 2022 00:58:20 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=ceving@gmail.com; helo=mail-oa1-x34.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:18795 Archived-At: > > (define str "Hello, World!") > > (define bv (string->utf8 str)) > > (define sa (make-shared-array bv (lambda (i) (list (+ i 7))) '(0 4))) > > I think this should be > > (define sa (make-shared-array bv (lambda (i) (list (+ i 7))) 4)) This seems to be the same (equal?): (make-shared-array bv (lambda (i) (list (+ i 7))) '(0 4)) (make-shared-array bv (lambda (i) (list (+ i 7))) 5) And it does not work either: In procedure utf8->string: Wrong type argument in position 1 (expecting bytevector): #1vu8(87 111 114 108) #1vu8() and #vu8() seem to be diverse. Btw what is the difference?