2023-10-07 UTC
gRegorLove_ and sp1ff joined the channel
gRegorLove_, mretka and gRegorLove__ joined the channel
# 16:15 aaronpk ok going to try the slack gateway update now since it's pretty quiet in here and i have some time
IWSlackGateway, [snarfed], [snarfed]1, [aaronpk], [aaronpk]1 and [aaronpk]2 joined the channel
IWSlackGateway and [aaronpk] joined the channel
IWSlackGateway joined the channel
[schmarty] joined the channel
# 16:49 Loqi aaronpk has 23 karma in this channel over the last year (108 in all channels)
# 16:50 Loqi aaronpk has 24 karma in this channel over the last year (109 in all channels)
[tantek] and [catgirlinspace] joined the channel
# 17:20 Loqi aaronpk has 25 karma in this channel over the last year (110 in all channels)
[aaronpk] joined the channel
IWSlackGateway joined the channel
[aaronpk] joined the channel
[snarfed] joined the channel
[catgirlinspace] joined the channel
# 17:30 aaronpk aha that was my suspicion... apparently your slack user ID is more than 9 characters :D
# 17:32 aaronpk i need a hash algorithm that results in exactly 10 chars using A-Za-z0-9
# 17:33 aaronpk or i cross my fingers that there will never be 2 slack users in here with the same 10-char subtring of the user ID that I use
# 17:36 aaronpk my anecdata was seeing that slack user IDs were 9-10 chars
IWSlackGateway and [aaronpk] joined the channel
# 17:38 sknebel [aaronpk]: really only a-z+numbers? otherwise I'd have said hash->urlsafe-base64->truncate
# 17:39 sknebel with hash really being any hash function to taste
# 17:41 aaronpk full charset is 0-9 A-Z a-z [ \ ] ^ _ ` { | }
~ - .
# 17:42 aaronpk i guess the question is, are the odds of a hash collision of a truncated hash better or worse than a slack user ID collision of the last 10 chars of a slack user ID
# 17:43 sknebel depends how slack IDs work, and of course we dont know that
# 17:43 aaronpk given that newer users seem to have longer ID, I assume they are somewhat sequential
# 17:46 sknebel aaronpk: and this only would cuase them to look like the same user to the network, right?
# 17:47 aaronpk yeah, the goal is to have a stable user ID for slack users for the IRC network
# 17:47 aaronpk prior to this change, the username was always "slackuser" for all users of the bridge
# 17:47 sknebel then I'd say its fine to just take the end, a collision causing issues seems quite unlikely then
# 17:47 sknebel I guess hash would protect against slack suddenly putting forbidden chars in the ID
# 17:48 aaronpk oh yeah good point, maybe that's a better plan then
# 17:48 aaronpk i wish i knew how to do the math on calculating hash collision probabilities of just a substring of the hash
# 17:51 aaronpk it's probably fine, i just want to make sure it's not going to be significantly worse
# 17:52 aaronpk 10 chars ends up being about 1/4 of the sha256 hash
# 17:52 aaronpk so does that mean the odds of a collision of the substring are 4x the odds of a collision of the full string?
# 17:56 sknebel assuming the hash function is proper, its purely dependent on how many bits you use. birthday problem
# 17:57 Loqi bit is an experiment to have a non-centalized TLD when domains can be bought with namecoin (cryptocurrency) instead of just via registrars https://indieweb.org/.bit
# 17:57 capjamesg Loqi, we need to improve your information theoretic literacy :D
# 18:01 sknebel that's how many users you need for a 50% chance there is a collision
# 18:02 sknebel one-percent chance should still be somewhere in the millions
# 18:07 Zegnat We will need an IndieWeb Eternal September before we need to worry about that one
IWSlackGateway joined the channel
# 18:12 aaronpk i would test in dev but it's a lot of work to spin up all the stuff needed to test with actual slack
[aaronpk], [aaronpk]1 and IWSlackGateway joined the channel
IWSlackGateway joined the channel
moodydot and [catgirlinspace] joined the channel
[snarfed] joined the channel
[tantek] joined the channel
# 19:46 Loqi Sorry, I couldn't find a page named "but" or similar
# 19:49 [tantek] aaronpk, late reply, however consider mapping usernames <= 10 chats 1:1 and for 11+ chars, map the first 7 chars literally then hash the remaining chars from position 8 on up or the username into the last 3 chars of the mapped username
# 20:11 [tantek] Thought it might be yeah. Anyway that's my brainstorm
tabi, tabi1 and aaronpk_web_test joined the channel
tabi2, tabi3, tabi4 and IWSlackGateway joined the channel
IWSlackGateway joined the channel
[aaronpk] joined the channel
IWSlackGateway and aaronpk_web_test joined the channel
# 21:58 aaronpk_web_test hi from web
[catgirlinspace], [tantek] and [schmarty] joined the channel