Yi (editor)

Yi

Yi in GTK mode
Original author(s) Various; primary developer Jean-Philippe Bernardy
Stable release 0.8.1 / April 11, 2014 (2014-04-11)
Preview release latest Git revision
Operating system POSIX-compatible (minimal Microsoft Windows support)
Platform Cross-platform; requires GHC 6.10.x
Available in English
Type Text editor
License GPL
Website www.haskell.org/haskellwiki/Yi

Yi is a text editor written and extensible in Haskell. The goal of Yi is to provide a flexible, powerful and correct editor core dynamically scriptable in Haskell.

Yi used to be a Haskell interpreter, very much like Emacs is an Emacs Lisp interpreter; however, the current version of Yi recompiles the code that describes its settings (including editing modes and extensions). Specifically, Yi is implemented as a small executable program which compiles through GHC the larger body of code which actually constitutes a useful editor; this small 'kernel' can repeatedly recompile (and thus type-check) the extensions. This makes it easy to dynamically hack, experiment and modify Yi despite it being written in a strongly statically typed language. Using Haskell as a first-class extension language means that other libraries and tools written in Haskell are also readily usable in editor code.

The long-term goal of the project is in essence to make Yi the editor of choice for Haskell hackers in much the same way that Emacs is the editor of choice for Lisp programmers.

Front ends

Yi can use either gtk2hs or vty as front ends, so users can choose their favorite interface. There is also an experimental Cocoa frontend.

"Emulation modes"

The primary emulation modes for Yi are vim and emacs. Keybindings for vi, mg and nano and others are also provided. Other editor interfaces can be written by the user to extend Yi.

Meaning of the name

The traditional Chinese character could mean "Righteous", "Justice" or "to bring under control".

The name was coined on the Haskell IRC channel in 2004. It is a play on words, referencing Vi, and the combinator calculus expression (Y I), which is a trivial infinite loop.[1]

References

  1. http://ircbrowse.net/browse/haskell?id=804607&timestamp=1098133913

External links

This article is issued from Wikipedia - version of the Wednesday, April 08, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.