-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji hash #26
Comments
See comment in #6. I am actually not sure if emojis are better than sg like ssh randomart:
|
Emojis are clearly better!! |
With emojis you'll have a lot of collisions, because their space is small. Anyway, whatever the hash function is, I think the crucial part is figuring out what to hash, e.g. you probably don't want to has installation dates, etc. |
I was thinking of like 5 emoji, and 2823 ^ 5 is quite large 😉 |
OK, we still need to think about what to hash. Also, it probably makes sense to hash the session info and the package info separately, so that we can at least see which one is different. So maybe we can have 2 and 3 (or 1 and 4?) emojis for both. |
I added this, and it is cool and useful, but it does have the usual cons wrt emojis. Font might not have them, display width could be wrong, etc. It is using 2280 hand-picked emojis now that looked good in RStudio. Some of them have very long names, that's not ideal, either, because of platforms without emoji support we show that names. It looks like this: ❯ session_info()
─ Session info 📜 🌈 🧚 ──────────────────────────────────────────────────────────────
setting value
version R version 4.1.1 (2021-08-10)
os macOS Mojave 10.14.6
system x86_64, darwin17.0
ui X11
language (EN)
collate en_US.UTF-8
... and without emojis like this: ❯ session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────
hash: scroll, rainbow, fairy
setting value
version R version 4.1.1 (2021-08-10)
os macOS Mojave 10.14.6
system x86_64, darwin17.0
ui X11
language (EN)
collate en_US.UTF-8 An alternative would be to use the adjective-animals data for hashing:
|
To quickly compare whether or not two session infos are the same, it would be useful to generate an emoji hash (i.e. hash package names and versions, then display by indexing into emoji)
e.g. https://www.npmjs.com/package/hash-emoji
The text was updated successfully, but these errors were encountered: