Yi (editor)
From Encoresoup - The Ultimate Guide to Free/Open Source Software
|
| Yi | |
|---|---|
| Image:Yi-logo.png | |
| Image:Yi-20070409.png | |
| Yi in GTK mode | |
| Author: | Various; primary developer Jean-Philippe Bernardy |
| Stable release |
0.4.3 (29 July 2008) |
| Preview release |
latest Darcs revision ({{{3}}})[[Preview_Release::latest Darcs revision;{{{3}}}|]] |
| Platform: | Cross-platform; requires GHC |
| Available in: | English |
| Genre: | Text editor |
| License: | GPL |
| Website: | [[Website::[1]]] |
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 is a Haskell interpreter[1], very much like Emacs is an Emacs Lisp interpreter; however, the authors of a Yi related paper, Don Stewart and Manuel M. T. Chakravarty, point out that this technique is as powerful as the Emacs method of loading at runtime dynamically typed code but can be accomplished with static typed Haskell code - allowing for greater performance and safety. 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 languages means that other libraries and tools written in Haskell are also readily usable in editor code.
The long term goal of the project is to in essence make Yi the editor of choice for Haskell hackers in much the same way that Emacs is the editor of choice for Lisp programmers.
Contents |
[edit] 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.
[edit] "Emulation modes"
The primary emulation modes for Yi are vim and emacs. Keybindings for vi, mg and nano and other are also provided. Other editor interfaces can be written by the user to extend Yi.
[edit] References
- ↑ This is implemented by binding to the Glasgow Haskell Compiler API; in other words, Yi will call a built-in copy (hs-plugins) of GHC
- Stewart, Don; Chakravarty, Manuel (September 2005). "Dynamic Applications From the Ground Up". Haskell '05: Proceedings of the ACM SIGPLAN workshop on Haskell workshop: 27–38. doi:10.1145/1088348.1088352. ISBN 1-59593-071-X. Retrieved on 2007-11-25.
[edit] External links
- Yi Homepage on the Haskell wiki

![Just For Fun [Amazon] Just For Fun [Amazon]](http://openx.eclecticdave.com/images/41SAY5C2ETL._SL160_.jpg)
![Media Tank - HD and DVD Enclosure + card reader [ThinkGeek] Media Tank - HD and DVD Enclosure + card reader [ThinkGeek]](http://www.ftjcfx.com/image-3067719-10356334?imgurl=http%3A//www.thinkgeek.com/images/products/front/media_tank.jpg)
![Linksys NAS200 Network Storage System with 2 Bays [Amazon] Linksys NAS200 Network Storage System with 2 Bays [Amazon]](http://openx.eclecticdave.com/images/418B2RSYTAL._SL160_.jpg)

