Kalpana Kalpana (Editor)

Seed (programming)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Development status
  
Active

Platform
  
Cross-platform

Written in
  
C

Developer(s)
  
Robert Carr, Matt Arsenault and Tim Horton

Initial release
  
November 8, 2008; 8 years ago (2008-11-08)

Stable release
  
3.8.1 / April 16, 2013; 3 years ago (2013-04-16)

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

Contents

Seed is integrated in GNOME since the 2.28 version and is used by two games in the GNOME Games package. 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.

Hello world in Seed

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

A program using GTK+

This code shows an empty window named "Example".

Modules

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

  • The modules using GObject Introspection, who starts by imports.gi. :
  • Gtk
  • Gst
  • GObject
  • Gio
  • Clutter
  • GLib
  • Gdk
  • WebKit
  • GdkPixbuf, GdkPixbuf
  • Libxml
  • Cairo
  • DBus
  • MPFR
  • Os (system library)
  • Canvas (using Cairo)
  • multiprocessing
  • readline
  • ffi
  • sqlite
  • sandbox
  • List of the Seed versions

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

    References

    Seed (programming) Wikipedia