Skip to content
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

x/playground: GOSSAFUNC mode #16896

Open
typeless opened this issue Aug 27, 2016 · 7 comments

Comments

Projects
None yet
8 participants
@typeless
Copy link

commented Aug 27, 2016

Maybe with a button to switch it on.

It would be useful for posting issues regarding compiler outputs in discussions.

PS. This is not a bug or feature request regarding programs written in Go so I think it's fine to ignore answering the following questions.

Please answer these questions before submitting your issue. Thanks!

@bradfitz

This comment has been minimized.

Copy link
Member

commented Aug 27, 2016

That'd be kinda cool.

/Cc @josharian @adg @broady

@randall77

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2016

GOSSAFUNC generates way too much information. If you get to the point where you want to do this, just post the source instead and we can recreate the GOSSAFUNC output if needed.

Perhaps a better button might be go tool compile -S output.

@josharian

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2016

For some time I've been wanting a playground "secret menu"—maybe query params?—for things like compiler flags -S, -m, -m -m, -n, -l. This fits in naturally with that. I'd want the HTML, not the terminal output. Anyway: yes please!

@bradfitz

This comment has been minimized.

Copy link
Member

commented Aug 27, 2016

Konami Code.

@bradfitz bradfitz changed the title Let the output of GOSSAFUNC available on https://play.golang.org/ playground: GOSSAFUNC mode Aug 27, 2016

@josharian

This comment has been minimized.

Copy link
Contributor

commented Aug 27, 2016

I was more thinking In'n'Out.

@quentinmit quentinmit added this to the Unreleased milestone Sep 6, 2016

@ysmolsky ysmolsky changed the title playground: GOSSAFUNC mode x/playground: GOSSAFUNC mode May 12, 2018

@ysmolsky

This comment has been minimized.

Copy link
Member

commented Oct 29, 2018

Should it be "totally" secret (no cue in interface)? In that case I propose that we add some parameter "debug" or "gcflags" that can be passed in the url. There you could specify some allowed set of compiler flags (go build -gcflags). Let's say we start with -S, -m, -l. Also do not allow anything other than combination of those flags and spaces.

Should we include the secret switches into the calculated hash code for sharing the program? I think yes, we could do that to allow sharing it.

The output from the compiler could be displayed prior the output from the program. Ending with this magic phrase "Go build exited." I am not sure how it can be converted to HTML. I thought about just dumping out the textual output.

@dgryski

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.