5 ms·
I've never used Go before, so I went to the project's home page. There's an editing window on the home page with a sample program showing, and a few other progr
by japhyr 11y ago
I've never used Go before, so I went to the project's home page. There's an editing window on the home page with a sample program showing, and a few other programs available in a drop down list. I couldn't help but start playing with the language.
I wonder how much the simple presence of an editing window on a language's home page contributes to overall adoption of the language. It sure lowers the bar to "I'll just write a few lines of code and see how this language feels."
- ionforce 11y agoDoes anyone know how it works? Like does it make requests to a service or is it running in the browser, JS style?
- rubenv 11y agoIt's the same stuff that powers the playground: http://play.golang.org/ http://play.golang.org/ More info here: http://blog.golang.org/playground http://blog.golang.org/playground
- japhyr 11y agoThere's a section called A Tour of Go [0] which has a series of code samples with explanations. The last part of the introduction to the tour says a little about what they call the Go playground [1]: "This tour is built atop the Go Playground, a web service that runs on golang.org's servers. The service receives a Go program, compiles, links, and runs the program inside a sandbox, then returns the output." [0] - https://tour.golang.org/welcome/1 https://tour.golang.org/welcome/1 [1] - https://tour.golang.org/welcome/4 https://tour.golang.org/welcome/4
- citruspi 11y agoIt makes requests to a backend service. You can read more about the implementation of the Go Playground on the blog[0]. [0]: https://blog.golang.org/playground https://blog.golang.org/playground
- brobinson 11y agoRust has a similar feature on its homepage: https://www.rust-lang.org https://www.rust-lang.org Let's hope this becomes a trend!