tardisgo-samples

command module
v0.0.0-...-75878e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2016 License: MIT Imports: 6 Imported by: 0

README

TARDIS Go sample code

Sample code using TARDIS Go, both command line and animated graphical.

For help or general discussions about this repository please go to the Google Group.

Go by example : adapted command line examples

Command line samples showing Haxe called from Go

Go as Haxe library examples

OpenFL : animated graphical multi-platform samples showing Go called from Haxe

You can see these examples working live at http://tardisgo.github.io/

To compile and run them you will also need to follow the instructions to install OpenFL here. From the "Source" directory, check there is a "tardis" sub-directory and run the tardisgo command as normal e.g. "tardisgo gophers.go". Then follow the normal OpenFL development process from the directory above, try: "openfl test html5". Or use the tgoopenfl.sh script described below. Tested with OpenFL command-line tools version 2.1.6.

Scripts

For OSX and Ubuntu users, here are some scripts that might help, they are written for HAXE 3.1.1. NOTE: The tardisgo -testall flag (e.g. "tardisgo -testall mycode.go") provides the same functionality as tgoall.sh/tgoallu.sh below, but runs all the jobs concurrently and so is faster:

  • tgo.sh : transpile all the code in the current directory and run haxe on the result using the user-provided haxe flags
  • tgoall.sh : transpile all the code in the current directory for all haxe targets and test each of them (requires all the haxe target languages to be installed, with any required haxelibs, tested on OSX)
  • tgoallu.sh : Ubuntu version of tgoall.sh
  • tgoopenfl.sh : wrapper for the OpenFL command, to transpile the Go first
Benchmarks

  • mandlebrot
  • fannkuch
  • binarytree

A snapshot of TARDIS Go's poor relative performance as at January 2014 can be found in the graph here. But please note that both llgo and GopherJS had elements of their core Go implementations missing when these tests were run.

Improving the speed of TARDIS Go will be a focus of future development, with results reported at intervals.

WIP

A directory for non-passing tests that are a work-in-progress and are referenced by tardisgo issues.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
benchmarks
errors
examplepanic/errors
Package errors implements functions to manipulate errors.
Package errors implements functions to manipulate errors.
go-as-haxe-lib-examples
gobyexample
helloworld
example for tardisgo.github.io
example for tardisgo.github.io
haxe-call-examples
openfl
tests
tools
wip
codewalk/markov
Generating random text: a Markov chain algorithm Based on the program presented in the "Design and Implementation" chapter of The Practice of Programming (Kernighan and Pike, Addison-Wesley 1999).
Generating random text: a Markov chain algorithm Based on the program presented in the "Design and Implementation" chapter of The Practice of Programming (Kernighan and Pike, Addison-Wesley 1999).
deadlock
from https://groups.google.com/d/msg/golang-nuts/DK_Cl0FgblA/WYnoO1cIo28J You can edit this code! Click here and start typing.
from https://groups.google.com/d/msg/golang-nuts/DK_Cl0FgblA/WYnoO1cIo28J You can edit this code! Click here and start typing.
get
jn
norm
Adapted from example at http://godoc.org/golang.org/x/text/unicode/norm#example-Iter
Adapted from example at http://godoc.org/golang.org/x/text/unicode/norm#example-Iter
promotedmethods
from http://spf13.com/presentation/go-for-object-oriented-programmers
from http://spf13.com/presentation/go-for-object-oriented-programmers
tree
tree is a very simple implementation of the tree unix command.
tree is a very simple implementation of the tree unix command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL