-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·120 lines (114 loc) · 6.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=edge">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="./lib/soundjs.min.js"></script>
<script type="text/javascript" src="./concurrentgophers.js"></script>
<script>
window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, false);
if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) {
var meta = document.getElementById ("viewport");
meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no');
}
</script>
<style>
#openfl-content { background: #FFFFF; width: 800px; height: 230px; }
</style>
<title>TARDIS Go</title>
</head>
<body style="padding: 10; margin: 10; background-color: #FFFFFF; font-family: Arial, Helvetica, sans-serif">
<div id="openfl-content"></div>
<script type="text/javascript">
openfl.embed ("openfl-content", 800, 230, "FFFFFF");
</script>
<table border=0 style=" width: 800px; background-color: #FFFFFF;">
<tr>
<td>
<p style="font-size: 80%; ">
For the above:
<a href=http://blog.golang.org/concurrency-is-not-parallelism>inspiration</a>;
<a href=https://github.com/tardisgo/tardisgo-samples/tree/master/openfl/concurrentgophers/Source/gophers.go>Go source<a>;
<a href=concurrentgophers.swf>flash version</a>.
Want 8 gophers?
<a href=./8concurrentgophers/index.html>JS</a>;
<a href=./8concurrentgophers/8concurrentgophers.swf>flash</a>.
...or rewritten for
<a href=./gopherjs/gophers/gophers.html>GopherJS?</a>
The Go gopher was designed by <a href="http://reneefrench.blogspot.com/">Renee French</a>.
The design is licensed under the Creative Commons 3.0 Attributions license.
For more details: <a href="http://blog.golang.org/gopher">http://blog.golang.org/gopher</a>
</p>
<h3 style=" text-align: center;">TARDIS Go transpiler (development paused)</h3>
<p>
The objective of the project is to save time and energy by enabling the same client-side Go code to
be deployed on a very wide range of platforms.
</p><p>
<a href=https://github.com/tardisgo>TARDIS Go</a> does this by transpiling
<a href=http://golang.org/>Go</a>-><a href=http://haxe.org/>Haxe</a>.
The Haxe compiler then generates equivalent code for JavaScript, ActionScript/Flash, C++, C# and Java.
By linking to cross-platform Haxe libraries like <a href=http://openfl.org/>OpenFL</a>, client-side Go code can run almost anywhere.
</p>
For example the Go animation running at the top of this page was transpiled into JavaScript. That same Go code also runs unaltered
in <a href=concurrentgophers.swf>ActionScript/Flash</a>, and when transpiled into C++ also runs on:
<a href=iOS140621_big.png>iOS</a>, Android, Windows, OSX, Linux, and other less-used platforms.
</p>
<p>The project works, with 90 go1.4 standard packages <a href=https://github.com/tardisgo/tardisgo/blob/master/STDPKGSTATUS.md>passing their tests</a>, although it is not yet production-ready.
</p>
<center><i>
PLEASE NOTE: The advent of Go 1.5, with support for both iOS and Android, together with <a href=http://www.gopherjs.org/>GopherJS</a>, mean that Go is now well on the way to being able to create a cross-platform UI.
<a href=https://github.com/elliott5>Elliott</a> has therefore paused development.
</i></center>
<h4>Micro FAQ:</h4>
<ul><li>Where are the installation instructions? <a href=https://github.com/tardisgo/tardisgo>github.com/tardisgo/tardisgo</a>
</li><li>Where is some working code? <a href=https://github.com/tardisgo/tardisgo-samples>
github.com/tardisgo/tardisgo-samples</a>
</li><li>How do I discuss the project publically? Please use the <a href=https://groups.google.com/d/forum/tardisgo>Google Group</a>.
</li><li>How do I ask a question privately? Please e-mail <a href=https://github.com/elliott5>Elliott</a>.
</li><li>Why call it "<a href=http://en.wikipedia.org/wiki/TARDIS>TARDIS</a>" Go? See
<a href=http://blog.gopheracademy.com/day-08-dr-who-and-the-mutant-go-compilers>this</a> blog entry.
</li><li>Want to write your own Go Compiler?
<a href=http://youtu.be/kYwtzDXxxtY>
Video</a>,
<a href=https://speakerdeck.com/elliott5/write-your-own-go-compiler>
slides</a> and
<a href=https://fosdem.org/2014/schedule/event/write_your_own_go_compiler/>links</a> from a talk at FOSDEM'14.
Plus <a href=https://speakerdeck.com/elliott5/mutant-go-compilers-gophercon-2014-short-talk>
slides</a> from the GopherCon'14 update.
</li><li>Want to know more from the Haxe side?
<a href=https://speakerdeck.com/elliott5/tardis-go-for-haxe>Slides</a> from the
<a href=http://www.silexlabs.org/wwx2014-speech-elliott-stoneham-haxe-as-a-compilation-target-for-other-languages/>talk</a> at WWX2014.
</li><li>Or <a href=http://www.silexlabs.org/prospects-for-using-go-libraries-in-haxe/>“Prospects for using Go libraries in Haxe”</a> a talk given at WWX2015.
</li><li>Are there other alternatives to TARDIS Go? Yes, see
<a href=https://github.com/tardisgo/tardisgo.github.io/wiki/Alternatives-to-TARDISgo>this</a> list.
</li><li>Is there more project context? See <a href=https://speakerdeck.com/elliott5/ssa>these</a> slides.
</li><li>不好意思写英语吗?请用汉语给<a href=https://github.com/elliott5>作者</a>写邮件。
(Elliott speaks Chinese)
</li><li>To stay up to date with potential future project news, please follow <a href=https://twitter.com/TARDISgo>@TARDISgo</a> on twitter.
</li></ul>
<p>
The project was featured on the official Go blog -
<a href=http://blog.golang.org/fosdem14>Go talks at FOSDEM 2014</a>.
</p>
<p>
<a href=http://www.reddit.com/r/golang/comments/1z2bc4/a_transpiler_from_go_to_javascript_for_running_go/cfpxphl>Bradfitz said kind words about the project on Reddit</a>, <a href=http://talks.golang.org/2014/gocon-tokyo.slide#55>mentioned it at GoCon 2014 in Tokyo</a> and <a href=http://dotgo.sourcegraph.com/post/99652962343/brad-fitzpatrick-on-the-future-of-the-go-programming>again at dotGo in Paris 2014</a>.</p>
<p>
</p>
</td>
<td style="width: 160px; text-align: center; background-color: #FFFFFF; ">
<h3>Other Examples</h3>
<a href=./gohandlingmouseevents/index.html>
<h4><img src="mousethumbnail.png" alt="mouse thumb">
Interactive mouse-tracking example</a>:
plays a sound when you put the gopher in the box (except on Safari or IE).</h4>
<h4><a href=go-nude/index.html>Nudity Detection:</a> A Go library called from Haxe.</h4>
<h4>Gophers on iOS</h4>
<a href="iOS140621_big.png"><img src="iOS140621.png" alt="iOS image" width=160></a>
<a href=http://alexthorpe.com/uncategorized/free-doctor-who-background-for-phone-tablet-or-desktop/708/>
<img src="tardis_320x480_alexthorpe.jpg" alt="TARDIS logo" width=160 height=240></a>
</td>
</table>
</body>
</html>