Go Playground Time

4,153 views
Skip to first unread message

Oleku Konko

unread,
Nov 14, 2013, 5:13:55 PM11/14/13
to golan...@googlegroups.com
Hello,

The Go Playground server time is wrong


Current Time shows 

2009-11-10 23:00:00 +0000 UTC
1257894000
1257894000000
1257894000000000000
2009-11-10 23:00:00 +0000 UTC
2009-11-10 23:00:00 +0000 UTC


We are in 2013 ..... 



luz...@gmail.com

unread,
Nov 14, 2013, 5:17:38 PM11/14/13
to golan...@googlegroups.com
http://tour.golang.org/#3

"In the playground the time begins at 2009-11-10 23:00:00 UTC (determining the sigificance of this date is an exercise for the reader). This makes it easier to cache programs by giving them deterministic output."

Dave Cheney

unread,
Nov 14, 2013, 5:17:38 PM11/14/13
to Oleku Konko, golan...@googlegroups.com
The time in the playground is fixed. This aides, amongst other things, caching of results. 

It's also fixed at an important value. 
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alexei Sholik

unread,
Nov 14, 2013, 5:39:27 PM11/14/13
to Dave Cheney, Oleku Konko, golan...@googlegroups.com
What's the caching of results used for?
--
Best regards
Alexei Sholik

Rob Pike

unread,
Nov 14, 2013, 5:54:11 PM11/14/13
to Alexei Sholik, Dave Cheney, Oleku Konko, golan...@googlegroups.com
Caching.

Andrew Gerrand

unread,
Nov 14, 2013, 11:04:45 PM11/14/13
to alco, golang-nuts, Dave Cheney, Oleku Konko

To avoid executing the same program multiple times. If someone posts a popular snippet (http://play.golang.org/p/Ko42TepMsN) there's no reason to execute it every time someone clicks 'Run'.

Andrew

minux

unread,
Nov 15, 2013, 12:00:14 AM11/15/13
to Andrew Gerrand, alco, golang-nuts, Dave Cheney, Oleku Konko
On Thu, Nov 14, 2013 at 11:04 PM, Andrew Gerrand <a...@google.com> wrote:

To avoid executing the same program multiple times. If someone posts a popular snippet (http://play.golang.org/p/Ko42TepMsN) there's no reason to execute it every time someone clicks 'Run'.

Is that a winning entry from this year's International Obfuscated Go Code Contest (IOGCC)?
Which wins the "Best of Show" prize?

andrey mirtchovski

unread,
Nov 15, 2013, 12:05:13 AM11/15/13
to Andrew Gerrand, alco, golang-nuts, Dave Cheney, Oleku Konko
that is wow! thanks for sharing (and caching).

Andrew Gerrand

unread,
Nov 15, 2013, 1:36:33 AM11/15/13
to minux, Matt Jibson, golang-nuts, Dave Cheney, alco, Oleku Konko

All credit goes to Matt Jibson.

Matt Jibson

unread,
Nov 15, 2013, 3:05:01 AM11/15/13
to Andrew Gerrand, minux, golang-nuts, Dave Cheney, alco, Oleku Konko
Like Bach's transcriptions of Vivaldi's work, I can only claim arrangement credit. Original author is from Andy Sloane. http://www.a1k0n.net/2011/07/20/donut-math.html

yesu...@gmail.com

unread,
Dec 21, 2014, 12:56:51 PM12/21/14
to golan...@googlegroups.com
Namaste,

I think it's an important value as it appears to be the 
birth of a thing and a person responsible for that thing. 
:)

Thank you.

Cheers,
Yesudeep.
Reply all
Reply to author
Forward
0 new messages