Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The truth of a proposition has nothing to do with its credibility. And vice versa.


devel / comp.lang.lisp / Re: How to implement property list

SubjectAuthor
o Re: How to implement property liststeve

1
Re: How to implement property list

<844kd02x56.fsf@gmail.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 11 Jul 2021 19:28:37 -0500
From: sgonedes1977@gmail.com (steve)
Newsgroups: comp.lang.lisp
Subject: Re: How to implement property list
References: <5f58894e$0$10271$e4fe514c@news.xs4all.nl>
Date: Sun, 11 Jul 2021 20:28:37 -0400
Message-ID: <844kd02x56.fsf@gmail.com>
Organization: Loft - a Gnu/Linux system
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:e9Nkgo4N7JTu5rTE4A4XEtILVLY=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 27
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-MvtpHnt737wXlsP0dXFbIwkt4tTDjdsFza6OZxbazbOf219EGCTPGxdTz2xMxgSSf/3kpOu6pRGCaa4!cCNd0mj39ns9qfgk4eGCKYngHrZ4t1il/tVfQ8hs8GrBmDPldw==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1971
 by: steve - Mon, 12 Jul 2021 00:28 UTC

albert@cherry.(none) (albert) writes:

> I finally understand that property lists are much more
> essential to lisp than I thought. Also it seems that
> different properties may not at all be related even if they
> happen to apply to the same symbol.
>
> A naive approach for implementation is :
> - assuming a symbol has a token (probably a memory address or an index)
> - assuming a property has a name.
>
> 1 Establish for each property a hash table of an appropriate length p.
> 2 Use the symbol's token as a hash, probably just index%p .

I would use an alist. the symbols are eq, the property lists should be
small, this is a very fast lookup. the problem is with packages. symbols
get around.

lisp is very fast with list, I use acons ((sym1 (values....))
(sym2 (values... )))

.

> Would this simplistic approach work?

I would go simpler ..


devel / comp.lang.lisp / Re: How to implement property list

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor