Seed (programming) explained

Seed
Developer:Robert Carr, Matt Arsenault and Tim Horton
Latest Release Version:3.8.1
Programming Language:C
Language:English
Genre:Interpreter, library
License:GNU LGPL

Seed is a JavaScript interpreter and a library of the GNOME project to create standalone applications in JavaScript.[1] It uses the JavaScript engine JavaScriptCore of the WebKit project. It is possible to easily create modules in C.

Seed is integrated in GNOME since the 2.28 version and is used by two games in the GNOME Games package.[2] It is also used by the Web web browser for the design of its extensions. The module is also officially supported by the GTK+ project.[3]

Hello world in Seed

This example uses the standard output to output the string "Hello, World".

  1. !/usr/bin/env seed

print("Hello, world!");

A program using GTK+

This code shows an empty window named "Example".

  1. !/usr/bin/env seed

Gtk = imports.gi.Gtk;Gtk.init(Seed.argv);

var window = new Gtk.Window;

window.signal.hide.connect(Gtk.main_quit);window.show_all;

Gtk.main;

Modules

To use a module, just instantiate a class having for name imports. followed by the name of the module respecting the case sensitivity.

List of the Seed versions

The names of the versions of Seed are albums of famous rock bands.

VersionCode NameRelease Date
0.18 November 2008
0.3Wednesday Morning 3AM2 January 2009
0.5Transformer16 April 2009
0.6Beatles for Sale29 April 2009
0.7Another Side of Bob Dylan13 May 2009
0.8Bringing It All Back Home29 May 2009
0.8.5Self Portrait10 July 2009
2.27.90London Calling10 August 2009
2.27.91Yellow Submarine21 August 2009
2.27.92Metal Machine Music7 September 2009
2.28.0The Rise and Fall of Ziggy Stardust and the Spiders21 September 2009
2.29.2Never Mind the Bollocks16 November 2009
2.29.330 November 2009
2.29.417 December 2009
2.29.5Icky Thump1 January 2010
2.29.5.1Achtung Baby1 January 2010
2.29.5.2Third Stage7 January 2010
2.29.5.3Twist and Shout11 January 2010
2.29.90Fort Nightly8 February 2010
2.29.91Greatest Hits23 February 2010
2.30.0Piano Man29 March 2010
2.31.1The Black Album29 March 2010

See also

References

External links

Notes and References

  1. Web site: Building desktop Linux applications with JavaScript. Ars Technica. 19 January 2009 .
  2. http://www.hortont.com/blog/2009/07/seed-the-module/ Seed, the module!
  3. http://www.gtk.org/language-bindings.html GTK+ binding list