World Library  
Flag as Inappropriate
Email this Article

Genie (programming language)


Genie (programming language)

Paradigm(s) multi-paradigm: imperative, structured, object-oriented
Designed by Jamie McCracken
Developer GNOME Project
Appeared in 2008 (2008)
Stable release 0.11.0 / October 4, 2010 (2010-10-04)
Typing discipline static, strong
Influenced by Python, Boo, D, Object Pascal
OS Cross-platform (every platform supported by GLib)
License LGPL 2.1+
Filename extension(s) .gs
Website /Genie/

Genie is a modern, general-purpose high-level programming language in active development since 2008.[1] It was designed as an alternative, simpler and cleaner dialect for the Vala compiler, while preserving the same functionality of the Vala language. Genie uses the same compiler and libraries as Vala; the two can indeed be used alongside each other.[2] The differences are only syntactical.

Genie's syntax is derived from numerous modern languages like Python, Boo, D and Delphi. In the vein of Python, Genie uses indentation rather than curly brackets to delimit blocks.

Like Vala, Genie uses the GObject type system to create classes and interfaces declared in Genie source code, without imposing additional runtime requirements (i.e., unlike Python, Java or C#, it does not require a virtual machine).

Genie allows access to C libraries, especially those based in GObject (like GTK+), without using a different application binary interface (ABI). During compilation, the code is first translated to C source and header files, which are then compiled to platform-specific machine code using any available C compiler like GCC, thus allowing cross-platform software development.

Although both Vala and Genie are being developed and promoted by GNOME, programs developed in Genie don't depend on the GNOME Desktop Environment, usually requiring only GLib.


  • Code samples 1
    • "Hello World" 1.1
    • Objects 1.2
  • References 2
  • External links 3

Code samples

"Hello World"

This sample explicitly uses four spaces for indentation.


    print "Hello, world!"


With no explicit indentation declaration, the default is tabs.

class Sample

        def run()
                stdout.printf("Hello, world!\n")

        var sample = new Sample()


  1. ^ Jamie McCracken (2008). "Introducing Genie - the smart programming language". 
  2. ^ Using Genie and Vala together

External links

  • Official website
  • Barry Kauler's page on Genie
  • Using the Genie programming language under Puppy Linux
  • Puppy Linux: Vala and Genie Programming
  • API Documentation

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from World Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.