TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: UUIDs that are Shakespearean, grammatically correct sentences

154 点作者 debdut将近 5 年前

17 条评论

orf将近 5 年前
I built something like this for Python[1]. To get UUID-like uniqueness requires often way too many words, even if the Shakespearean-style might make this easier to remember (but also increadibly difficult for non-native speakers to understand).<p>For human-id I just went with groups of the 100 most common adjetives, nouns and verbs combined together in roughly the order they would appear in a sentence.<p>The output is nonsenese, of course, but I hope the combination of words understandable to anyone with a basic knowlegde of English might help.<p>1. <a href="https:&#x2F;&#x2F;github.com&#x2F;orf&#x2F;human_id" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orf&#x2F;human_id</a>
评论 #23899350 未加载
评论 #23896155 未加载
cube00将近 5 年前
Interesting project however clearly I am uncultured swine if these are considered &quot;easy to remember&quot;, I wonder if it would work with something more lowbrow. Simpsons anymore?
评论 #23899244 未加载
评论 #23895904 未加载
reallydontask将近 5 年前
What is the use case for having to remember UUIDs?<p>I can see how it might speed up writing say, SQL queries if you don&#x27;t have to look up the UUID but not sure that this warrants the effort of committing this to memory.
评论 #23899899 未加载
评论 #23897900 未加载
评论 #23896302 未加载
geostyx将近 5 年前
Added this to my UUID as a Service API! [0] Just add ?readable to any endpoint! Eg. <a href="https:&#x2F;&#x2F;uuid.rocks&#x2F;json?readable" rel="nofollow">https:&#x2F;&#x2F;uuid.rocks&#x2F;json?readable</a><p>[0] <a href="https:&#x2F;&#x2F;uuid.rocks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;uuid.rocks&#x2F;</a>
评论 #23897069 未加载
评论 #23896642 未加载
评论 #23897082 未加载
throwanem将近 5 年前
You can get away with calling it &quot;Shakespearean&quot; when UUIDs map to rhyming couplets in iambic pentameter.
评论 #23901155 未加载
bawolff将近 5 年前
&gt;&quot;Drucill Hubert Lewse the Comer of Avera rejoices Fiann Craggy Florie and 5 hard trouts&quot;<p>This is considered shakespearean? Cool idea, but i think the implementation needs some work.
ponker将近 5 年前
You&#x27;re going to have to copy and paste these anyway (no chance in hell of remembering them) so don&#x27;t see what they get you over an UUID.
评论 #23895817 未加载
评论 #23895787 未加载
gertrunde将近 5 年前
There&#x27;s also RFC1751 [<a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc1751" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc1751</a>].<p>A slightly different take on the same sort of problem.
swiftcoder将近 5 年前
&gt; it&#x27;s impossible to remember 32 random characters in UUID<p>Is it, though?<p>Plenty of folks memorise 16-digit credit card numbers - I&#x27;ve known retail employees who can recite those back after reading them just once.<p>Back when I was a sysadmin, I taught myself to type 25-digit Windows product keys from memory.<p>32 digits doesn&#x27;t seem an unreasonable stretch, given time and practice.
评论 #23899335 未加载
评论 #23899118 未加载
评论 #23900896 未加载
评论 #23899846 未加载
评论 #23903298 未加载
dutchmartin将近 5 年前
Interesting project. Getting a reading in radio spelling is easy to do. But getting correct sentences out of a random predefined length string is way harder.
SwiftyBug将近 5 年前
What does it mean for a sentence to be &quot;Shakespearean correct&quot;? Do the generated strings necessarily contain 10 syllables?
kej将近 5 年前
This is a fun project, but for practical purposes I think the PGP Word List [1] would be more useful. It encodes any bytes (UUID or otherwise) as common words from a list chosen for distinct sounds.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;PGP_word_list" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;PGP_word_list</a>
aitchnyu将近 5 年前
I&#x27;ve been ideating about a base-48 (KJNTPBMYRVSH vs AIOU) version of decimal ids. Ids like &quot;sunihuvi&quot; or &quot;panimaso&quot; which are (hopefully) memorable and easy to pronounce with any accent. 5 letters can encode till 254803968.<p>Algorithm wizards, can I get error correction if I dedicate a character for that?
PaulRobinson将近 5 年前
Why would you want this?<p>The entire point of UUIDs is I can quickly generate them knowing that they will be universally unique, I don’t need to check for their existence anywhere.<p>This dramatically increases the likelihood of collision to the point I can almost certainly guarantee that they won’t be unique in any non-trivial context.
评论 #23895931 未加载
评论 #23895746 未加载
评论 #23895872 未加载
kieckerjan将近 5 年前
If I had the stamina to learn Shakespeare by heart I would start with the Bard himself, thank you. :-)
Kevin605将近 5 年前
Interesting project!<p>However, an online demo will be nice to have.
评论 #23895936 未加载
traceroute66将近 5 年前
Yawn, why re-invent the wheel ?<p>UUID = --&gt; universally unique &lt;-- identifier<p>Why reduce the entropy just to make it look pretty ?<p>As for the people who say oh, but I can&#x27;t remember&#x2F;recognise &quot;e0e93156-c68b-493d-bf31-19048db7dd9e&quot;...<p>Well sure, but git invented that wheel before you. Just use the last 11 characters for local discussions&#x2F;notes&#x2F;whatever.<p>Finally, what about people who are non-native&#x2F;fluent in English ?<p>&quot;e0e93156-c68b-493d-bf31-19048db7dd9e&quot; flows accross borders and languages<p>&quot;Romeo Romeo Where For Art Thou Romeo&quot; could easily be meaningless gibberish for a non-native&#x2F;fluent English speaker, and also opens up totally un-necessary issues of pronunciation and spelling.<p>There is also the possibility certain words might mean something different in another language. Such as the famous Colgate in Spanish which means &quot;go hang yourself&quot; !
评论 #23896152 未加载
评论 #23895920 未加载
评论 #23895987 未加载