Re: From JoyceUlysses.txt -- words occurring exactly once

Liste des GroupesRevenir à cl lisp 
Sujet : Re: From JoyceUlysses.txt -- words occurring exactly once
De : enometh (at) *nospam* meer.net (Madhu)
Groupes : comp.lang.lisp
Date : 08. Jun 2024, 18:47:18
Autres entêtes
Organisation : Motzarella
Message-ID : <m3zfrv5qll.fsf@leonis4.robolove.meer.net>
References : 1 2 3
* Kaz Kylheku <20240530161942.627@kylheku.com> :
Wrote on Thu, 30 May 2024 23:20:08 -0000 (UTC):

On 2024-05-30, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
Given a text file of a novel (JoyceUlysses.txt) ...
could someone give me a pretty fast (and simple) program that'd give me
a list of all words occurring exactly once?
>
    tr ' .;:,?!' '\n' | sort | uniq -u
>
Yep, that's pretty much how Doug McIlroy famously shut down Knuth.

https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-2.pdf

(how do you cite this?)

Knuth didn't invent the "hash trie" data structure for this the article,
it was already there in TeX, in this article knuth credits Frank Liang's
phd thesis for the data structure.

This was one of the first things things I coded up at the time of the
article.  The fun was in designing how to best modify the structure
without sacrificing space

Phil Bagwell's paper "Ideal Hash Trees" described its invention
correctly as Hash Array Mapped Tries. However at some point, (probably
after the coming from clojure developers with "functional" pretensions?)
the "hash trie" was appropriated meaning something else,
something"immutable" and all that.

At least there isn't a wiki page for it.

Date Sujet#  Auteur
30 May 24 * From JoyceUlysses.txt -- words occurring exactly once8HenHanna
31 May 24 +- Re: From JoyceUlysses.txt -- words occurring exactly once1Jeff Barnett
31 May 24 +* Re: From JoyceUlysses.txt -- words occurring exactly once4Stefan Monnier
31 May 24 i`* Re: From JoyceUlysses.txt -- words occurring exactly once3Kaz Kylheku
8 Jun 24 i `* Re: From JoyceUlysses.txt -- words occurring exactly once2Madhu
12 Aug 24 i  `- Re: From JoyceUlysses.txt -- words occurring exactly once1steve g
31 May 24 +- Re: From JoyceUlysses.txt -- words occurring exactly once1Paul Rubin
31 May 24 `- Re: From JoyceUlysses.txt -- words occurring exactly once1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal