Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

There can be no twisted thought without a twisted molecule. -- R. W. Gerard


devel / comp.lang.lisp / .Re: How do I construct this string?

SubjectAuthor
* .Re: How do I construct this string?Robert L.
`* Re: .Re: How do I construct this string?Zyni Moë
 `* Re: .Re: How do I construct this string?Jeff Barnett
  `* Re: .Re: How do I construct this string?Madhu
   `* Re: .Re: How do I construct this string?Jeff Barnett
    `- Re: .Re: How do I construct this string?Stefan Monnier

1
.Re: How do I construct this string?

<sv8u1p$u1c$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16926&group=comp.lang.lisp#16926

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!ueS+Bx7NK1oedeBCAvG/Jw.user.46.165.242.75.POSTED!not-for-mail
From: No_spamming@noWhere_7073.org (Robert L.)
Newsgroups: comp.lang.lisp
Subject: .Re: How do I construct this string?
Date: Thu, 24 Feb 2022 21:41:17 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <sv8u1p$u1c$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Info: gioia.aioe.org; logging-data="30764"; posting-host="ueS+Bx7NK1oedeBCAvG/Jw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: XanaNews/1.18.1.6
X-Notice: Filtered by postfilter v. 0.9.2
 by: Robert L. - Thu, 24 Feb 2022 21:41 UTC

Raymond Wiker wrote:

> (defun join (list delimiter)
> (with-output-to-string (ret)
> (loop for (elt . next) on list
> do (progn (write-string elt ret)
> (when next
> (write-string delimiter ret))))))

Let's make it shorter.

Gauche Scheme and Racket:

(use srfi-1) ;; pair-for-each for Gauche.
or
(require srfi/1) ;; pair-for-each for Racket.
(require srfi/26) ;; cut for Racket.

(define (join items delim)
(with-output-to-string
(cut
pair-for-each
(lambda (xs)
(display (car xs))
(and (pair? (cdr xs)) (display delim)))
items)))

(join '(2 3 4) '-)
===>
"2-3-4"

Re: .Re: How do I construct this string?

<sv91fh$c98$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16927&group=comp.lang.lisp#16927

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: no_email@invalid.invalid (Zyni Moë)
Newsgroups: comp.lang.lisp
Subject: Re: .Re: How do I construct this string?
Date: Thu, 24 Feb 2022 22:39:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <sv91fh$c98$1@dont-email.me>
References: <sv8u1p$u1c$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 24 Feb 2022 22:39:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="70efe572e52ed5fcdf30b84ed156fd7f";
logging-data="12584"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uA49BfWerXEFCCM6TeB1vM+vZtpjO7XU="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:ioDdd0WCXQLCFSLX9geE9xbLi+U=
sha1:nQFCHuLZupykq7PaHL89qkoLCxM=
 by: Zyni Moë - Thu, 24 Feb 2022 22:39 UTC

Robert L. <No_spamming@noWhere_7073.org> wrote:
> Raymond Wiker wrote:
>
>> (defun join (list delimiter)
>> (with-output-to-string (ret)
>> (loop for (elt . next) on list
>> do (progn (write-string elt ret)
>> (when next
>> (write-string delimiter ret))))))
>
> Let's make it shorter.
>
> Gauche Scheme and Racket:
>
> (use srfi-1) ;; pair-for-each for Gauche.
> or
> (require srfi/1) ;; pair-for-each for Racket.
> (require srfi/26) ;; cut for Racket.
>
> (define (join items delim)
> (with-output-to-string
> (cut
> pair-for-each
> (lambda (xs)
> (display (car xs))
> (and (pair? (cdr xs)) (display delim)))
> items)))
>
> (join '(2 3 4) '-)
> ===>
> "2-3-4"
>

So, more lines of non-portable code is 'shorter' than fewer lines of
portable code. Your brain is truly minute.

--
the small snake

Re: .Re: How do I construct this string?

<sv97ae$gso$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16928&group=comp.lang.lisp#16928

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.lang.lisp
Subject: Re: .Re: How do I construct this string?
Date: Thu, 24 Feb 2022 17:19:24 -0700
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <sv97ae$gso$1@dont-email.me>
References: <sv8u1p$u1c$1@gioia.aioe.org> <sv91fh$c98$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Date: Fri, 25 Feb 2022 00:19:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6fa4bb43bcf14fc24890862c8a211a64";
logging-data="17304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Jq1so+wZMP6IWl0QZJqtZjrY6KbejB7A="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Cancel-Lock: sha1:0HeZ9MdL5vgHGXSM1Dd58BVjbPY=
In-Reply-To: <sv91fh$c98$1@dont-email.me>
Content-Language: en-US
 by: Jeff Barnett - Fri, 25 Feb 2022 00:19 UTC

On 2/24/2022 3:39 PM, Zyni Moë wrote:
> Robert L. <No_spamming@noWhere_7073.org> wrote:
>> Raymond Wiker wrote:
>>
>>> (defun join (list delimiter)
>>> (with-output-to-string (ret)
>>> (loop for (elt . next) on list
>>> do (progn (write-string elt ret)
>>> (when next
>>> (write-string delimiter ret))))))
>>
>> Let's make it shorter.
>>
>> Gauche Scheme and Racket:
>>
>> (use srfi-1) ;; pair-for-each for Gauche.
>> or
>> (require srfi/1) ;; pair-for-each for Racket.
>> (require srfi/26) ;; cut for Racket.
>>
>> (define (join items delim)
>> (with-output-to-string
>> (cut
>> pair-for-each
>> (lambda (xs)
>> (display (car xs))
>> (and (pair? (cdr xs)) (display delim)))
>> items)))
>>
>> (join '(2 3 4) '-)
>> ===>
>> "2-3-4"
>>
>
> So, more lines of non-portable code is 'shorter' than fewer lines of
> portable code. Your brain is truly minute.
That is true. However, my theory is that s/he only shows up here after
being fired for acting similarly towards workmates and superiors. He
will eventually get another job but, as I'm sure you've noticed, the
sessions here get longer and his work spans get shorter. I think s/he
has run out of references and reputation and odor are better known
through out. At this rate, we are stuck with it and will be until some
therapeutic measures intervene.
--
Jeff Barnett

Re: .Re: How do I construct this string?

<m3czjbr4d8.fsf@leonis4.robolove.meer.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16929&group=comp.lang.lisp#16929

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: enometh@meer.net (Madhu)
Newsgroups: comp.lang.lisp
Subject: Re: .Re: How do I construct this string?
Date: Fri, 25 Feb 2022 09:20:59 +0530
Organization: Motzarella
Lines: 7
Message-ID: <m3czjbr4d8.fsf@leonis4.robolove.meer.net>
References: <sv8u1p$u1c$1@gioia.aioe.org> <sv91fh$c98$1@dont-email.me>
<sv97ae$gso$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="475d719f5bd5926dd8e3e61093788c63";
logging-data="18569"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qGjybEDCPF5uAROER/2aSlDAx674boQE="
Cancel-Lock: sha1:sFd/61v9as3epkBMkGxOwt3xMjs=
sha1:Wg+Tldgb/R6vZpyovgyVhmDstq8=
 by: Madhu - Fri, 25 Feb 2022 03:50 UTC

I tend to see it as a statement on the afterlife. just when you think
the newsgroup is dead and quiet and there is nothing more, you see a
steady influx of these messages. just when you think death is final
quiescence you get to see the a steady flow of torments in the lake of
fire

Re: .Re: How do I construct this string?

<sv9oct$bct$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16930&group=comp.lang.lisp#16930

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.lang.lisp
Subject: Re: .Re: How do I construct this string?
Date: Thu, 24 Feb 2022 22:10:50 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <sv9oct$bct$1@dont-email.me>
References: <sv8u1p$u1c$1@gioia.aioe.org> <sv91fh$c98$1@dont-email.me>
<sv97ae$gso$1@dont-email.me> <m3czjbr4d8.fsf@leonis4.robolove.meer.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 25 Feb 2022 05:10:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6fa4bb43bcf14fc24890862c8a211a64";
logging-data="11677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OohXnsBWT+1DeNx/9jrV1uxtv6oDgfTY="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Cancel-Lock: sha1:BLIqFouD0Ws2stGdJc5azs72/CY=
In-Reply-To: <m3czjbr4d8.fsf@leonis4.robolove.meer.net>
Content-Language: en-US
 by: Jeff Barnett - Fri, 25 Feb 2022 05:10 UTC

On 2/24/2022 8:50 PM, Madhu wrote:
>
> I tend to see it as a statement on the afterlife. just when you think
> the newsgroup is dead and quiet and there is nothing more, you see a
> steady influx of these messages. just when you think death is final
> quiescence you get to see the a steady flow of torments in the lake of
> fire

Nothing so poetic. Just the smoke of an injured psyche moaning in
public. The smoke is all that's left.
--
Jeff Barnett

Re: .Re: How do I construct this string?

<jwv8rtyzu7s.fsf-monnier+comp.lang.lisp@gnu.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16936&group=comp.lang.lisp#16936

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: monnier@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.lang.lisp
Subject: Re: .Re: How do I construct this string?
Date: Fri, 25 Feb 2022 13:19:09 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <jwv8rtyzu7s.fsf-monnier+comp.lang.lisp@gnu.org>
References: <sv8u1p$u1c$1@gioia.aioe.org> <sv91fh$c98$1@dont-email.me>
<sv97ae$gso$1@dont-email.me>
<m3czjbr4d8.fsf@leonis4.robolove.meer.net>
<sv9oct$bct$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a0880578c5fb9f27b4a9117c955809ca";
logging-data="5139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SEYskdXCYArJvj9+FvINa"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cancel-Lock: sha1:Usj1j6Nmo3tE25NNpw+83nl0dbQ=
sha1:rSwWqFPiEQBL5NsYEAGOKheVRNs=
 by: Stefan Monnier - Fri, 25 Feb 2022 18:19 UTC

Jeff Barnett [2022-02-24 22:10:50] wrote:
> On 2/24/2022 8:50 PM, Madhu wrote:
>> I tend to see it as a statement on the afterlife. just when you think
>> the newsgroup is dead and quiet and there is nothing more, you see a
>> steady influx of these messages. just when you think death is final
>> quiescence you get to see the a steady flow of torments in the lake of
>> fire
> Nothing so poetic. Just the smoke of an injured psyche moaning in
> public. The smoke is all that's left.

And to be fair, these posts are incomparably more valuable and
on-topic than the infamous allcap ones.

Stefan


devel / comp.lang.lisp / .Re: How do I construct this string?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor