Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Show me a good loser, and I'll show you a loser." -- Vince Lombardi, football coach


devel / comp.lang.lisp / Little gem found in 1989 Cfront sources.

SubjectAuthor
* Little gem found in 1989 Cfront sources.Kaz Kylheku
`* Re: Little gem found in 1989 Cfront sources.Paul Rubin
 `* Re: Little gem found in 1989 Cfront sources.Jeff Barnett
  `- Re: Little gem found in 1989 Cfront sources.Paul Rubin

1
Little gem found in 1989 Cfront sources.

<20240213190300.616@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-6894@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.lisp
Subject: Little gem found in 1989 Cfront sources.
Date: Wed, 14 Feb 2024 03:06:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <20240213190300.616@kylheku.com>
Injection-Date: Wed, 14 Feb 2024 03:06:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="07142d698acb3914d36aeb553ec76b6b";
logging-data="2616739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pTNShLFc61F+T8MMRuDeW5uuJSTK3AC8="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:RJF/bNcB3nvhxcPR9A7I5EMP9Zk=
 by: Kaz Kylheku - Wed, 14 Feb 2024 03:06 UTC

In a file "template.h" which is part of the implementation an early version of
C++ templates (calling them the "parametrized type facility"), this is found:

// A Lisp style cons cell to help build lists. The parametrized type facility,
// should obviate the need for this type-unsafe nonsense.
class cons {
public:
void *car ;
cons *cdr ;
cons (void *pcar, cons *pcdr) { car = pcar ; cdr = pcdr ; } ;
} ;

Could 2024 could be the year when it finally obviates, once and for all?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Little gem found in 1989 Cfront sources.

<87msry1q59.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no.email@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.lisp
Subject: Re: Little gem found in 1989 Cfront sources.
Date: Sat, 17 Feb 2024 18:07:30 -0800
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <87msry1q59.fsf@nightsong.com>
References: <20240213190300.616@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="2fbee482f227449f1821bc088ad786ea";
logging-data="756643"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184Q3sfjkRa3BWJ5bVkTT9q"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:mySfQRrEHzx+uKUKOB2t0yUQPUw=
sha1:mYIWy4UG24zAUp/TShuyBsdozuo=
 by: Paul Rubin - Sun, 18 Feb 2024 02:07 UTC

Kaz Kylheku <433-929-6894@kylheku.com> writes:
> Could 2024 could be the year when it finally obviates, once and for all?

Is something happening with C++ templates that would change how that
cons works? STL already has List<T> and that is similar to how lists in
Haskell and Ocaml work. You usually wouldn't have a list of objects of
arbitrary varying type, though you have a limited set that you represent
as a sum type or a GADT.

Re: Little gem found in 1989 Cfront sources.

<uqs73u$tnv4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.lang.lisp
Subject: Re: Little gem found in 1989 Cfront sources.
Date: Sat, 17 Feb 2024 23:12:12 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uqs73u$tnv4$1@dont-email.me>
References: <20240213190300.616@kylheku.com> <87msry1q59.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Feb 2024 06:12:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8f1572d485151035b4f9027a8e4e1ada";
logging-data="974820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RvwLXPkqmZiQ/iiBHpEftyq9Srk8BxWI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iNFX4S0xWGN8M5TFDKDgpiLfkYg=
Content-Language: en-US
In-Reply-To: <87msry1q59.fsf@nightsong.com>
 by: Jeff Barnett - Sun, 18 Feb 2024 06:12 UTC

On 2/17/2024 7:07 PM, Paul Rubin wrote:
> Kaz Kylheku <433-929-6894@kylheku.com> writes:
>> Could 2024 could be the year when it finally obviates, once and for all?
>
> Is something happening with C++ templates that would change how that
> cons works? STL already has List<T> and that is similar to how lists in
> Haskell and Ocaml work. You usually wouldn't have a list of objects of
> arbitrary varying type, though you have a limited set that you represent
> as a sum type or a GADT.

PLIST are very popular and much used in LISP. Even elements are of any
type where EQ is useful but odd numbered elements are arbitrary. I know
I'm picking a nit but, what the hell, it's late Saturday and TV sucks.
--
Jeff Barnett

Re: Little gem found in 1989 Cfront sources.

<87il2h1qro.fsf@nightsong.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no.email@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.lisp
Subject: Re: Little gem found in 1989 Cfront sources.
Date: Wed, 21 Feb 2024 12:55:23 -0800
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <87il2h1qro.fsf@nightsong.com>
References: <20240213190300.616@kylheku.com> <87msry1q59.fsf@nightsong.com>
<uqs73u$tnv4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1359c85394d83a6e70091a134ae1ddf7";
logging-data="3537565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gpf9EhNaNmDbp2xVHZx67"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:rLbcgECRivB5lh7IpzLinQalhPM=
sha1:ypeeoQS3WNThFXExFJHBhPJMYNg=
 by: Paul Rubin - Wed, 21 Feb 2024 20:55 UTC

Jeff Barnett <jbb@notatt.com> writes:
>> Haskell and Ocaml work. You usually wouldn't have a list of objects of
>> arbitrary varying type,
> PLIST are very popular and much used in LISP.

Sure, yeah, lists of mixed-type objects are not that unusual in Lisp. I
had meant in Haskell or Ocaml.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor