Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Nuclear war would really set back cable." -- Ted Turner


devel / comp.lang.lisp / Re: defining self-evaluating objects

SubjectAuthor
* Re: defining self-evaluating objectsTom Russ
+- Re: defining self-evaluating objectsTom Russ
`- Re: defining self-evaluating objectsJames Cloos

1
Re: defining self-evaluating objects

<3a49a944-1114-4ffc-8127-e37fbff684d3n@googlegroups.com>

  copy mid

https://news.novabbs.com/devel/article-flat.php?id=9970&group=comp.lang.lisp#9970

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:a05:620a:1118:b0:74a:c178:6b3 with SMTP id o24-20020a05620a111800b0074ac17806b3mr63645qkk.8.1681348534277;
Wed, 12 Apr 2023 18:15:34 -0700 (PDT)
X-Received: by 2002:a05:6214:a85:b0:5ee:e59a:6a1e with SMTP id
ev5-20020a0562140a8500b005eee59a6a1emr97825qvb.4.1681348533927; Wed, 12 Apr
2023 18:15:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Wed, 12 Apr 2023 18:15:33 -0700 (PDT)
In-Reply-To: <m3y1mxhx40.fsf@carbon.jhcloos.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:8000:7603:1703:3c3c:8c4c:e5f9:b4fc;
posting-account=05zmAwoAAAAJZM-3jv1hCWLHGZQceqwA
NNTP-Posting-Host: 2603:8000:7603:1703:3c3c:8c4c:e5f9:b4fc
References: <m3y1mxhx40.fsf@carbon.jhcloos.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3a49a944-1114-4ffc-8127-e37fbff684d3n@googlegroups.com>
Subject: Re: defining self-evaluating objects
From: tar...@google.com (Tom Russ)
Injection-Date: Thu, 13 Apr 2023 01:15:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Tom Russ - Thu, 13 Apr 2023 01:15 UTC

On Wednesday, April 12, 2023 at 9:41:10 AM UTC-7, James Cloos wrote:
> does cl support defining new self-evaluating objects
> (other than keywords)?
>
> if so, how?

What sort of "defining" did you have in mind.
One simple answer (for symbols) would be:
(defconstant foo 'foo)

There may be other things you could do via reader macros.
One example of that is https://github.com/lispm/measures [*], which defined
numbers with dimensions and optional reader macros so that something like
35km or 18m/s2 would evaluate to equivalent objects, although not in an EQ sense.

[* Software by Rainer Joswig that I extended while at ISI]

Re: defining self-evaluating objects

<400cd584-1cce-4c23-900c-e67e79e05398n@googlegroups.com>

  copy mid

https://news.novabbs.com/devel/article-flat.php?id=9971&group=comp.lang.lisp#9971

  copy link   Newsgroups: comp.lang.lisp
X-Received: by 2002:a05:622a:1ba6:b0:3e3:9479:85b9 with SMTP id bp38-20020a05622a1ba600b003e3947985b9mr160871qtb.12.1681348707404;
Wed, 12 Apr 2023 18:18:27 -0700 (PDT)
X-Received: by 2002:a0c:ef0f:0:b0:5ac:b3fa:e6bd with SMTP id
t15-20020a0cef0f000000b005acb3fae6bdmr1140371qvr.2.1681348707047; Wed, 12 Apr
2023 18:18:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.lisp
Date: Wed, 12 Apr 2023 18:18:26 -0700 (PDT)
In-Reply-To: <3a49a944-1114-4ffc-8127-e37fbff684d3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:8000:7603:1703:3c3c:8c4c:e5f9:b4fc;
posting-account=05zmAwoAAAAJZM-3jv1hCWLHGZQceqwA
NNTP-Posting-Host: 2603:8000:7603:1703:3c3c:8c4c:e5f9:b4fc
References: <m3y1mxhx40.fsf@carbon.jhcloos.org> <3a49a944-1114-4ffc-8127-e37fbff684d3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <400cd584-1cce-4c23-900c-e67e79e05398n@googlegroups.com>
Subject: Re: defining self-evaluating objects
From: tar...@google.com (Tom Russ)
Injection-Date: Thu, 13 Apr 2023 01:18:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2258
 by: Tom Russ - Thu, 13 Apr 2023 01:18 UTC

On Wednesday, April 12, 2023 at 6:15:36 PM UTC-7, Tom Russ wrote:
> On Wednesday, April 12, 2023 at 9:41:10 AM UTC-7, James Cloos wrote:
> > does cl support defining new self-evaluating objects
> > (other than keywords)?
> >
> > if so, how?
> What sort of "defining" did you have in mind.
> One simple answer (for symbols) would be:
> (defconstant foo 'foo)
>
> There may be other things you could do via reader macros.
> One example of that is https://github.com/lispm/measures [*], which defined
> numbers with dimensions and optional reader macros so that something like
> 35km or 18m/s2 would evaluate to equivalent objects, although not in an EQ sense.

A clarification, I meant that two instances of 35km and 35km would be equivalent
objects. And likewise for 18m/s2 and 18m/s2. As expected, 35km and 18m/s2 are
not equivalent.

>
>
>
> [* Software by Rainer Joswig that I extended while at ISI]

Re: defining self-evaluating objects

<m3sfd3h61u.fsf@carbon.jhcloos.org>

  copy mid

https://news.novabbs.com/devel/article-flat.php?id=9975&group=comp.lang.lisp#9975

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clo...@jhcloos.com (James Cloos)
Newsgroups: comp.lang.lisp
Subject: Re: defining self-evaluating objects
Date: Thu, 13 Apr 2023 16:37:49 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <m3sfd3h61u.fsf@carbon.jhcloos.org>
References: <m3y1mxhx40.fsf@carbon.jhcloos.org>
<3a49a944-1114-4ffc-8127-e37fbff684d3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="30a64c522c87fb87640eb5cf13a46f0f";
logging-data="1193874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JB5pEpcFNKgVtpIMmpcKf"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:lS2CT2KOUNl0OABAyBGiAO+SlQQ=
sha1:eYlTb6Wet/1ieFM9W+bBMNHHiyQ=
OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc
Copyright: Copyright 2023 James Cloos
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3
AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu
QmCC
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6
 by: James Cloos - Thu, 13 Apr 2023 20:37 UTC

>>>>> "TR" == Tom Russ <taruss@google.com> writes:

TR> One simple answer (for symbols) would be:
TR> (defconstant foo 'foo)

now i'm feeling stupid. ☺

that accomplished exactly what i was thiking of.

thanks.

-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6


devel / comp.lang.lisp / Re: defining self-evaluating objects

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor