OSDcLang On Mobile Devices

Preview:

DESCRIPTION

OSDcLang is a joke language I created (read: stole blatantly from BF) for an early OSDC, and it's become something of a meme with talks about it at every conference since. In this lightning talk I demonstrated the use of OSDcLang to communicate with the engine management system of my car.

Citation preview

OSDcLangfor mobile

devices

BeginnersLanguages

Low level,stack based?

Functional,loosely typed?

Object oriented,strictly typed?

Yes!

OSDcLangSimple syntax

Expressive

3 Syntax ElementsOSDc.OSDc?OSDc!

8 Commands * OSDc. OSDc? Move the Memory Pointer to the next array cell.

* OSDc? OSDc. Move the Memory Pointer to the previous array cell.

* OSDc. OSDc. Increment the array cell pointed at by the Memory Pointer.

* OSDc! OSDc! Decrement the array cell pointed at by the Memory Pointer.

* OSDc. OSDc! Read a character from STDIN and put its ASCII value into the cell at the Memory Pointer.

* OSDc! OSDc. Print the character with ASCII value of the cell pointed at by the Memory Pointer.

* OSDc! OSDc? Move to the command following the matching OSDc? OSDc! if the value in the cell pointed at by the Memory Pointer is zero. Note that OSDc! OSDc? and OSDc? OSDc! commands nest like pairs of parentheses, and matching pairs are defined in the same way as for parentheses.

* OSDc? OSDc! Move to the command following the matching OSDc! OSDc? if the value in the cell pointed at by the Memory Pointer is non-zero.

OSDcLang is Turing complete

Trivially isomorphic to BrainF**k

OSDc. OSDc? == >OSDc? OSDc. == <OSDc. OSDc. == +OSDc! OSDc! == ­OSDc. OSDc! == ,OSDc! OSDc. == .OSDc! OSDc? == [OSDc? OSDc! == ]

     > == OSDc. OSDc?< == OSDc? OSDc.+ == OSDc. OSDc.­ == OSDc! OSDc!, == OSDc. OSDc!. == OSDc! OSDc.[ == OSDc! OSDc?] == OSDc? OSDc!

So what does it look like?Very simple! Print “A”:

OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc.  OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc. OSDc.OSDc. OSDc.OSDc! OSDc.

OSDcLangNow on mobile, err, devices!

Recommended