From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: What is the point of bytevectors? Date: Sat, 12 Sep 2020 12:48:50 -0400 Message-ID: References: <663bcc3f7ca042bfd727cbcecb0dccfcde43aec8.camel@divoplade.fr> 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="4059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: divoplade Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Sep 12 18:49:16 2020 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 1kH8iB-0000tj-LW for guile-user@m.gmane-mx.org; Sat, 12 Sep 2020 18:49:15 +0200 Original-Received: from localhost ([::1]:55628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH8iA-0006Qe-NC for guile-user@m.gmane-mx.org; Sat, 12 Sep 2020 12:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH8i1-0006QQ-QL for guile-user@gnu.org; Sat, 12 Sep 2020 12:49:05 -0400 Original-Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:41999) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH8hz-0002UR-My for guile-user@gnu.org; Sat, 12 Sep 2020 12:49:05 -0400 Original-Received: by mail-qk1-x731.google.com with SMTP id v123so12983632qkd.9 for ; Sat, 12 Sep 2020 09:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N/Pe1KzM3c2+LmPNp5Vl4SMPN6RUnF6+M4gobpinV4E=; b=qZ6tNse7nzpXGbSVVO9BybxWbWtzeqfhwfb1v+EJvZNhinEu63t+dfzdAbU23Z4y+m DNqBSvCuXlDwF2Avw6qFqUpr1tfikpBuCICWZswvXVSZzGwhmguuGvdCKfs51hO4oyxo pQW683I7RVQLpEGRVOf2KWV4njsULZ9Ya+z4/nXTAEJmEAmv0zkWCVj3t3ApPzDlDiM8 BB2B09NUpulPYyij6XQZclhLlKeneAywplnWovfQivxIzFnYxMEQYug/U3qGyWa09M6+ wAJ8hLKivHQKBXP2WUgpBPU7rxCiBKSDDJStnvW+nsQCwgOltByhYiuvjwnbcIa0tuBw E2gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N/Pe1KzM3c2+LmPNp5Vl4SMPN6RUnF6+M4gobpinV4E=; b=QYVMuhIuURcxKutZQlrO5hvuJEwRJP0uTsUG1LAKtgJ/a7d5db6MyMeDz6ifbCttcl ylI3e7+AS36S7vx5mtHsVsLZBypraS/Df+lCexCCTRzUB3q83tQwkX30H2hGtx3XFyQb j6cWYDy9DGs2sQhd/zMCaATgA4Anr9Xa6keuAwFymBXPBQ8Ce87tRONckoJwAi6Ji0O2 7ciO+Bk1QH79nbGgiovCIfZoT5iDGacRdQAxvfjC3xPHyf3+U6uodAPv+pp8r7MGUTZJ kUBolOjLwmqWITHKtNfKn5F0bAjYrO8P7iw4JSMccVqFmu8Hfu88ifqQNuN3/1tiPoBn EqgQ== X-Gm-Message-State: AOAM530JBSAahiqueP8/8WIdSFhJ1nreJGFjwmt3zX77A1SvO5x9uD0F 1xf0/KXUKVOP3x2QaG+8+hu8ey7mVIdh157X5tJBqYJuVTwPGO70 X-Google-Smtp-Source: ABdhPJyC5p+y9SvyXKOb0QwU0ESsKH/vHwKjApcYtvp5O6BkjT+QCeEngczU6bLlNHJD6dXSBJi3NgCPXwQKjtmpmjA= X-Received: by 2002:a37:a607:: with SMTP id p7mr6403473qke.118.1599929342217; Sat, 12 Sep 2020 09:49:02 -0700 (PDT) In-Reply-To: <663bcc3f7ca042bfd727cbcecb0dccfcde43aec8.camel@divoplade.fr> Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=cowan@ccil.org; helo=mail-qk1-x731.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.lisp.guile.user:16907 Archived-At: On Sat, Sep 12, 2020 at 3:51 AM divoplade wrote: > From the scheme side, however: > 1. The bytevector library needs to be imported; > If a single line is a serious overhead, then your program is tiny and you can do whatever you want: it will be obvious to whoever maintains the program next (including you). > 2. The function names have way more characters to type; > Use an autocompleting editor such as Emacs. > 3. The bytevector library is missing a lot of text functions (like > join, split, trim, pad, searching...). > That is indeed an issue. Fortunately SRFI 207, though not yet final, comes to your rescue. You can't get the spiffy syntax described at < https://srfi.schemers.org/srfi-207/srfi-207.html> unless you modify the Guile reader, but the procedures documented there can be found at < https://github.com/Zipheir/bytestrings>. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org It was impossible to inveigle Georg Wilhelm Friedrich Hegel Into offering the slightest apology For his Phenomenology. --W. H. Auden, from "People" (1953)