{"action":"created","issue":{"url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/120","repository_url":"https://api.github.com/repos/mattgodbolt/gcc-explorer","labels_url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/120/comments","events_url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/120/events","html_url":"https://github.com/mattgodbolt/gcc-explorer/issues/120","id":147107987,"number":120,"title":"Compressed full link option","user":{"login":"phuclv90","id":9285512,"avatar_url":"https://avatars.githubusercontent.com/u/9285512?v=3","gravatar_id":"","url":"https://api.github.com/users/phuclv90","html_url":"https://github.com/phuclv90","followers_url":"https://api.github.com/users/phuclv90/followers","following_url":"https://api.github.com/users/phuclv90/following{/other_user}","gists_url":"https://api.github.com/users/phuclv90/gists{/gist_id}","starred_url":"https://api.github.com/users/phuclv90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuclv90/subscriptions","organizations_url":"https://api.github.com/users/phuclv90/orgs","repos_url":"https://api.github.com/users/phuclv90/repos","events_url":"https://api.github.com/users/phuclv90/events{/privacy}","received_events_url":"https://api.github.com/users/phuclv90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-09T08:30:35Z","updated_at":"2016-04-10T15:01:58Z","closed_at":null,"body":"Sometimes a full link is slightly too long for a post and may contain disallowed characters (like parentheses when use in markdown) whereas a short link may be not the thing desired because it can rot anytime. In this case a compressed full link works great.\r\n\r\nThe full options in the link would be compressed with some algorithm and then the output is encoded in base64 (or [base85](https://github.com/noseglid/base85) which produces shorter result). A new button (e.g. _\"compressed full link\"_) will be put between full link and short link, or a drop down for the user to choose between compressed and non-compressed forms. If the result is longer than the full link then just output the full link."},"comment":{"url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/comments/207996604","html_url":"https://github.com/mattgodbolt/gcc-explorer/issues/120#issuecomment-207996604","issue_url":"https://api.github.com/repos/mattgodbolt/gcc-explorer/issues/120","id":207996604,"user":{"login":"mattgodbolt","id":633973,"avatar_url":"https://avatars.githubusercontent.com/u/633973?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgodbolt","html_url":"https://github.com/mattgodbolt","followers_url":"https://api.github.com/users/mattgodbolt/followers","following_url":"https://api.github.com/users/mattgodbolt/following{/other_user}","gists_url":"https://api.github.com/users/mattgodbolt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgodbolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgodbolt/subscriptions","organizations_url":"https://api.github.com/users/mattgodbolt/orgs","repos_url":"https://api.github.com/users/mattgodbolt/repos","events_url":"https://api.github.com/users/mattgodbolt/events{/privacy}","received_events_url":"https://api.github.com/users/mattgodbolt/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T15:01:58Z","updated_at":"2016-04-10T15:01:58Z","body":"Hi, thanks for the thoughts.\r\n\r\nAre you thinking of the whole thing being compressed? e.g. a link looking like godbolt.org/f/BASE85ENCODEDTHING where if one un-base85--encoded one would get a compresesd json structure? That could work, I think.\r\n\r\nThat said; if you're worried about parentheses in markdown, base85 isn't safe: it will generate all manner of brackets and quotes and things. Unless I'm mistaken, base64 is the most succinct, URL-safe encoding.\r\n\r\nI've not seen any indications from Google that they'll start deleting old goo.gl links (indeed: https://support.google.com/faqs/answer/190768?hl=en&rd=1 suggests it'll never go away). Do you have any thoughts on why a compressed, non-human-readable base-64 encoded link is better than a short URL? I like to use the short ones when they remain human-readable (so it's clearer what you're clicking on is actually a source fragment)."}}