FACTOID # 28: Austin, Texas has more people than Alaska.
 Home   Encyclopedia   Statistics   States A-Z   Flags   Maps   FAQ   About 


FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:



(* = Graphable)



Jump to: navigation, search

2L (the Two Language) is an esoteric programming language derived loosely from the PATH programming language and Brainfuck. An esoteric programming language is a programming language designed as a test of the boundaries of computer programming language design, as a proof of concept, or as a joke, and not with the intention of being adopted for real-world programming. ... PATH is an esoteric programming language derived from the Brainfuck language. ... Jump to: navigation, search brainfuck is a computer programming language noted for its extreme minimalism. ...

Like PATH and Befunge, it's two-dimensional. Like BrainFuck, it operates on a tape. However, it only has two symbols. It manages this by overloading the * symbol by direction. The data pointer starts at location 2, not 0 as in BrainFuck, because 0 and 1 are significant. The tape is filled with 0s, as in BF. The program pointer starts at 0,0 moving right, and ends when the program pointer goes below 0 left or up. Befunge is a stack-based, reflective, esoteric programming language. ...




All IO and tape operations. This operation has a different function for all four cardinal directions: Up: Move the data pointer to the right (> in BF) Down: Move the data pointer to the left (< in BF) Left: Decrement the value at the data pointer (- in BF) Right: Increment the value at the data pointer (+ in BF)


if the value the data pointer points to is nonzero, turn right, otherwise turn left


Tape locations 0 and 1 (TL0, TL1) are significant. 1 doesn't actually hold a value, it merely causes an I/O operation if you attempt to increment or decrement it. If the value at TL0 is 0, and you attempt to change the value of TL1, a character will be read from input into TL0. If TL0 is not 0, and you attempt to change the value of TL1, a character will be outputted from the value of TL0.


Because of the extreme level of overloading, even the simplest program is incredibly complex in 2L.

Here's a simple loop, that produces the value 9 by multiplying 5 by 2 then subtracting 1:

 ** + + * *****+ + + * + * + * + + 


  • The 2L page

  Results from FactBites:
2L: Mercy Advocacy Program, Islip Terrace, seeks volunteer intern for poverty law office providing free legal advice and representation primarily to an indigent clientele suffering from severe and persistent mental illness.
1L, 2L: The Nation Institute Robert Masur Fellowship in Civil Liberties is awarded to a law student pursuing significant activities during the summer in the area of civil rights and civil liberties.
1L, 2L: The Grievance Committee for the 2nd and 11th Districts investigates and prosecutes complaints of professional misconduct against attorneys with offices in Brooklyn, Queens and Staten Island.
  More results at FactBites »



Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:


Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m