Ghost maintains a small footprint, making it portable and great for single-board computers.
Extend and build applications in Go utilizing Ghost as your scripting language.
In Ghost's little universe, the atoms that make up all matter are objects, fully equipped with their own methods and properties.
$ brew tap ghost-language/tap$ brew install --cask ghost-language/tap/ghostOn Linux or Windows? Every build is on the download page.
import Graph from "graph"
import shortestPath from "dijkstra"
network = new Graph()
network.connect("depot", "market", 2)
network.connect("depot", "harbor", 7)
network.connect("market", "harbor", 3)
network.connect("market", "airfield", 8)
network.connect("harbor", "airfield", 4)
route = shortestPath(network, "depot", "airfield")
if (route == null) {
console.log("no route")
} else {
console.log(`route: ${route.path.join(" -> ")}`)
console.log(`distance: ${route.distance}`)
}
// >> route: depot -> market -> harbor -> airfield
// >> distance: 9A small, object-oriented scripting language.
It has been a while. Ghost now has a written specification and a 1.0 beta, the language picked up template literals, real classes, and errors that teach, and there is a whole 2D game engine we never got around to announcing.
A new pre-release is available for download. Check out the changelog to see what's new.
A new pre-release is available for download. Check out the changelog to see what's new.
A new pre-release is available for download. Check out the changelog to see what's new.
A new pre-release is available for download. Check out the changelog to see what's new.
A new pre-release is available for download. Check out the changelog to see what's new.