To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Genie (programming language)

From Wikipedia, the free encyclopedia

Genie
Paradigmmulti-paradigm: imperative, structured, object-oriented
Designed byJamie McCracken
First appeared2008; 16 years ago (2008)
Stable release
0.52.3 / May 1, 2021; 3 years ago (2021-05-01)
Typing disciplinestatic, strong
OSCross-platform (every platform supported by GLib)
LicenseLGPLv2.1+
Filename extensions.gs
Websitewiki.gnome.org/Projects/Genie Edit this at Wikidata
Influenced by
Python, Boo, D, Object Pascal

Genie is a modern, general-purpose high-level programming language in 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 syntactic.

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 explicit block delimiters (like, for example, 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.

Programs developed in Vala and Genie do not depend on the GNOME Desktop Environment, usually requiring only GLib.

YouTube Encyclopedic

  • 1/3
    Views:
    1 007
    2 117
    54 456
  • Genie
  • JuliaCon 2017 | Full Stack Web Development with Genie.jl | Adrian Salceanu
  • Wireless Keypad Installation & Programming (Step 1)

Transcription

Code samples

"Hello World"

This sample explicitly uses four spaces for indentation.

[indent=4]

init
    print "Hello, world!"

Objects

With no explicit indentation declaration, the default is tabs.

class Sample

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

init
	var sample = new Sample()
	sample.run() 

Criticism

As of 2013, Genie "for" loops are inclusive, which makes handling of empty lists cumbersome:[3]

var l = new list of string
if l.size > 0
    for var i = 0 to (l.size - 1)
        print l.@get(i)

However, one can also iterate over lists via the for-in construct. This is easy and straightforward:[4]

var l = new list of string
for s in l:
   print s

References

  1. ^ Jamie McCracken (2008). "Introducing Genie - the smart programming language". Archived from the original on 2011-08-18.
  2. ^ Using Genie and Vala together
  3. ^ Tal Liron (11 January 2013). Genie. Event occurs at 32:29. Archived from the original on 2021-12-20.
  4. ^ "Projects/Genie - GNOME Wiki!".

External links


This page was last edited on 22 April 2024, at 05:08
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.