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
Open

x/playground: GOSSAFUNC mode #16896

typeless opened this issue Aug 27, 2016 · 7 comments
Labels
NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@typeless
Copy link

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
Copy link
Contributor

bradfitz commented Aug 27, 2016

That'd be kinda cool.

/Cc @josharian @adg @broady

@randall77
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

I was more thinking In'n'Out.

@quentinmit quentinmit added this to the Unreleased milestone Sep 6, 2016
@ysmolski ysmolski changed the title playground: GOSSAFUNC mode x/playground: GOSSAFUNC mode May 12, 2018
@ALTree ALTree added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Sep 22, 2018
@ysmolski
Copy link
Member

ysmolski 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
Copy link
Contributor

dgryski commented Oct 29, 2018

Also https://go.godbolt.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

8 participants