Timeline for How are we supposed to post godbolt links now that URL shortening is blocked?
Current License: CC BY-SA 3.0
33 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 10, 2021 at 12:49 | vote | accept | Peter Cordes | ||
May 23, 2017 at 12:38 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Mar 20, 2017 at 9:15 | history | edited | CommunityBot |
replaced http://meta.stackoverflow.com/ with https://meta.stackoverflow.com/
|
|
Mar 27, 2016 at 1:33 | answer | added | Matt Godbolt | timeline score: 19 | |
Mar 26, 2016 at 5:59 | history | edited | Peter Cordes | CC BY-SA 3.0 |
rework intro paragraph now that comments are being discussed here
|
Mar 26, 2016 at 5:40 | comment | added | Peter Cordes | @TigerhawkT3: That's not ideal long-term, since the shortened link can go bad while the full URL is still useful. (And even when it's not a rickroll or malware, it's useful to get the real URL as a mouseover). Short-term, sure, it's another good workaround. | |
Mar 26, 2016 at 5:31 | comment | added | TigerhawkT3 | Maybe the use of shortened links could be a rep privilege? | |
Mar 25, 2016 at 0:31 | comment | added | Shog9 | The big problem on that question was that there was no code in the question. Should probably add godbolt to the same check we use for jsfiddle and kin, disallowing links to them unless there's a code block in the question. | |
Mar 24, 2016 at 20:55 | comment | added | Peter Cordes | @Chris: That question had it in a code block, not formatted as a link. It was a terrible sketchy-looking question until the edit. But interesting point; I wonder if some people would mouseover and be scared to visit it. | |
Mar 24, 2016 at 16:42 | comment | added | Krease | Related: some commenters think godbolt url looks "sketchy" | |
Mar 24, 2016 at 16:35 | answer | added | Ajedi32 | timeline score: 14 | |
Mar 23, 2016 at 16:34 | comment | added | Shog9 | Aside: yet another irritation caused by the use of shorteners is that I can't really get objective data on how often this service is used! | |
Mar 23, 2016 at 16:21 | answer | added | Shog9 | timeline score: 48 | |
Mar 23, 2016 at 14:20 | comment | added | jfs | related: discourage url shorteners in comments: don't add link's href size to the total comment size | |
Mar 23, 2016 at 12:55 | comment | added | Shafik Yaghmour | @BoltClock I understand the underlying rationale but it is not like the SO team did not know this would be an issue. I am disappointed that it seems like no reach out was done to see if there were work-around possible before just blocking. I also wish some more consideration would be put into making this a privilege, it would not be a total solution but would probably ease the pain a lot. | |
Mar 23, 2016 at 12:45 | comment | added | Matt Godbolt | Hi there, happy to add whatever needed to make this easy. For manageability and privacy reasons I decided not to store state on godbolt.org; so having a canonical URL with all options "in" it seemed more sensible. Then of course they got very long and unwieldy. I've toyed with using GitHub gists as the "backing store", but that's more work and it's not clear the godbolt.org URLs would be that much better; nor that they wouldn't also be blocked. | |
Mar 23, 2016 at 9:16 | answer | added | Curious Sam | timeline score: 1 | |
Mar 23, 2016 at 8:59 | answer | added | Frédéric | timeline score: 28 | |
Mar 23, 2016 at 8:35 | answer | added | ThiefMasterMod | timeline score: 2 | |
Mar 23, 2016 at 6:49 | answer | added | Peter Cordes | timeline score: 7 | |
Mar 23, 2016 at 6:19 | history | edited | Peter Cordes | CC BY-SA 3.0 |
added 25 characters in body
|
Mar 23, 2016 at 5:55 | comment | added | Peter Cordes | @BoltClock: There's no way a URL can be a reasonable length and still contain the full information content of a godbolt link, because the upper limit on Kolmogorov complexity of entered code is higher than 600B. Picking a reasonable actual compression scheme (rather than theoretically-optimal unobtainium) and Base64 encoding that is probably not enough. (and might be what godbolt already does). BTW, you almost certainly see a lot more just-posted stuff than I do. I usually look at x86/assembly/sse/... by refreshing my page, and usually the newest is already a few mins old, often an hour. | |
Mar 23, 2016 at 5:46 | comment | added | Peter Cordes |
@BoltClock: the most obvious way for godbolt to implement it would be to redirect URLs like http://godbolt.org/shortened/XYZABC to http://goo.gl/XYZABC . Then godbolt doesn't have to worry about backing up the shortening map, and can still leave that to google. However, this doesn't help anyone, because spammers will just start using godbolt! The way godbolt currently works, it doesn't have to save user state at all. Using URLs that don't contain the full information content of the code and options would require storing it persistently, which is a major change.
|
|
Mar 23, 2016 at 5:39 | history | edited | Peter Cordes | CC BY-SA 3.0 |
link M.M.'s question about this in comments
|
Mar 23, 2016 at 5:39 | comment | added | BoltClock Mod | I am not sure what can be done about this. It's a very legitimate problem since we can't make these third-party services generate URLs of "reasonable length" instead of shortlinks just to comply with our policies. (It would be super nice if the developer of godbolt implemented that, but he doesn't have to just for our sake.) But the malicious use of shortlinks is so rampant that, save for evaluating every single shortlink before processing answers/comments (which would be unnecessarily expensive), we can't exactly start allowing them back in again. | |
Mar 23, 2016 at 5:34 | comment | added | Peter Cordes | @JeffreyBosboom: All my answers do include the code and asm output I'm discussing (e.g. just the inner loop, when the asm for the whole function is bloated). It would be irresponsible to do otherwise. The godbolt link is there to let readers play with compile options / different compiler versions, and to demonstrate that it actually compiles. Sometimes I leave other example functions in the godbolt link, as an aside for readers interested enough to follow the link, but SO answers should never depend on the continued functioning of godbolt.org. | |
Mar 23, 2016 at 5:28 | comment | added | Peter Cordes | @JeffreyBosboom: shortened URLs aren't allowed in comments?????? For the love of science, that's a huge problem. I leave godbolt links in comments all the time. | |
Mar 23, 2016 at 5:28 | comment | added | BoltClock Mod | That's interesting that you can safely assume where a goo.gl link will take you. I suppose it depends on the tags you participate in. Every single goo.gl link I've come across on SO has either led to a spam site or a rickroll. | |
Mar 23, 2016 at 5:27 | comment | added | Jeffrey Bosboom | What would be the length impact of including the code and assembly output in the post instead of the link? (Yes, that would force an interested user to copy it themselves if they wanted to play with it.) | |
Mar 23, 2016 at 5:26 | comment | added | Peter Cordes |
@BoltClock: Hmm, when I see a goo.gl link on SO, I assume it's to godbolt (from other context). In my answers / comments, I usual say it's a godbolt link, or that it's to "how the code compiles". But I think I understand more clearly the concern that the extra level of indirection disguises the link, so it could be anything (malicious, something the reader has already read, a Rickroll, ...). Ideally godbolt.org would have its own URL-shortening, so the links would still be godbolt links, but then he'd need a persistent database with backups to avoid losing all that state.
|
|
Mar 23, 2016 at 5:23 | comment | added | Jeffrey Bosboom | We had another post about this, focusing on comments which are much more constrained than answers. | |
Mar 23, 2016 at 5:17 | comment | added | BoltClock Mod | Ah, I knew this would come up. See also: meta.stackoverflow.com/questions/295084/… | |
Mar 23, 2016 at 5:15 | history | asked | Peter Cordes | CC BY-SA 3.0 |