From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: bytevector seems to be missing in Guile Date: Sat, 7 Jan 2023 22:56:48 +0100 Message-ID: References: <2dba29d6-8976-fa93-80df-37f32977d486@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17380"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jan 07 22:57:34 2023 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 1pEHC2-0004LH-C2 for guile-user@m.gmane-mx.org; Sat, 07 Jan 2023 22:57:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEHBQ-0006lZ-5J; Sat, 07 Jan 2023 16:56:56 -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 1pEHBO-0006kn-FV for guile-user@gnu.org; Sat, 07 Jan 2023 16:56:54 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEHBM-00074d-R4 for guile-user@gnu.org; Sat, 07 Jan 2023 16:56:54 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id s5so7016810edc.12 for ; Sat, 07 Jan 2023 13:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XMn9V7iC5WF2ekCO0opb4f0HlAJQdv74Mu1EMS7d1IE=; b=noCyaOWIW5UAqhpw7cOm6YglsYYontjKCXmeS0mZ8U66DYB2zz+cSoZZoNBOKRqE6J cH12RpTFvxR0gqWnmo9AAnGagsgqTI4l3jAQ0u4scSOy4d/1L/QjB07mGWBVpMaD2R/v wn74A09ygTCSjwcG2rfOZnC3yJQTEZ5GdzSaYZuoVz+JoOAKnkAwOKBBV7bJ/bCiMWYP ltatBa1i2IElN6DCDaYrFo3C3F/Wn/xlmMPrhVJlqvkd0Msu0pgL8ENKd1znBCLnUL8D MKSbA+ocApZiGEhR/yONrxg2MLmitYlH8APpjDN6Hd9HOSWi5Fxm7AJby5zlX/iGYeBx yt8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XMn9V7iC5WF2ekCO0opb4f0HlAJQdv74Mu1EMS7d1IE=; b=mQPfwqiwVawNVseGcu3qAhg2OiuAqGuXGl/nCaY0ymHynGiG00zHvEBUvpHEQc6yVI 6ZvX5QU9dpnDpDXu88PPFNO0RIPc/LaQ3ZM9tNiJNRNLrq259kj94EuKUP3WQEJZc5oP BXBbpaLNDFU+v0qQaqcJ+gVcOqvWkQvud4cgywJ/AV1Auen0dcDTb2nu7vzqGBix+Fb9 p/p1e9SfOOmyZvWh+x6jXQG34fY4vPIB/ZaikzyHUjOPvognxl+f1zc9OhYpbacGz7Sz vsjcu6zN3SkAMPY2DxtjaHx6R2zh/bkbyHOohwejx8kwVGusY+0bCDKpFcHlJlMrl+Ck UHmA== X-Gm-Message-State: AFqh2kq6p9nKiRTICttAPrYwRgicykXAe9oQWG9wwCKNatR5bQ8unw5S 3vdaM5uhSs/V7cx46jr1z0NUugdmvXM= X-Google-Smtp-Source: AMrXdXv/b0lX//AYMSn2SBmyUbn1ohx5kLk81PMjYRmzsrboFYwEfKzLszPEeGLJCMJ7IlzwT88voA== X-Received: by 2002:a05:6402:22b2:b0:467:7c73:4805 with SMTP id cx18-20020a05640222b200b004677c734805mr26555741edb.5.1673128610990; Sat, 07 Jan 2023 13:56:50 -0800 (PST) Original-Received: from [192.168.178.20] (ip-109-090-125-150.um36.pools.vodafone-ip.de. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id a8-20020a50ff08000000b0048f81162130sm1878615edu.75.2023.01.07.13.56.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Jan 2023 13:56:50 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=taylan.kammer@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -51 X-Spam_score: -5.2 X-Spam_bar: ----- X-Spam_report: (-5.2 / 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, NICE_REPLY_A=-3.114, 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:18848 Archived-At: On 07.01.2023 22:12, Wolf wrote: > On 2023-01-07 12:07:31 -0800, Matt Wette wrote: >> On 1/7/23 8:34 AM, Sascha Ziemann wrote: >>> Is the procedure "bytevector" missing in Guile? >>> >>> I tried this: >>> guile --r7rs -c '(write (bytevector 1 2 3))' >>> >>> R7RS defines it on page 49. >>> >> >> maybe you need (import (rnrs bytevectors)) > > I'm far from expert, but it looks to me like (bytevector) in particular is not > provided by guile. > > I think the way in guile is > > #vu8(1 2 3) > > Or you could make it from list of integers: > > (use-modules (rnrs bytevectors)) > (u8-list->bytevector '(1 2 3)) > > W. > IIRC you should be able to import (scheme bytevectors), which is R7RS. The (rnrs bytevectors) module is R6RS. -- Taylan