Lisp in Life: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
see also
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Lisp in Life''' is a [[pattern]] that implements a Lisp interpreter constructed by Hikaru Ikuta, completed in January {{year|2022}}, using technology similar to the [[Quest for Tetris]] project. This is the believed to be the first implementation of a standardized high-level programming language inside [[Conway's Game of Life]].<ref name="post155924" /><ref name="blog" />
'''Lisp in Life''' is a [[pattern]] that implements a Lisp interpreter constructed by Hikaru Ikuta, completed in January {{year|2022}}, using technology similar to the [[Quest for Tetris]] project.<ref name="post139209" /> This is the believed to be the first implementation of a standardized high-level programming language inside [[Conway's Game of Life]].<ref name="post155924" /><ref name="blog" />


A Lisp program is entered by editing [[cell]]s with the ASCII values of the characters of the code. When run, the pattern reads this text and evaluates the results. The output is written at the bottom of the pattern's RAM module. The Lisp interpreter is implemented in C, and the pattern can be modified to run other C code.
A Lisp program is entered by editing [[cell]]s with the ASCII values of the characters of the code. When run, the pattern reads this text and evaluates the results. The output is written at the bottom of the pattern's RAM module. The Lisp interpreter is implemented in C, and the pattern can be modified to run other C code.
Line 10: Line 10:
| colspan="2" |The entire pattern (left). Magnified (right).{{br}}The highly magnified section shown above is in the middle.
| colspan="2" |The entire pattern (left). Magnified (right).{{br}}The highly magnified section shown above is in the middle.
|}
|}
==See also==
*[[APGsembly]]


==References==
==References==
<references>
<references>
<ref name="post155924">
<ref name="post139209">{{LinkForumThread
{{LinkForumThread
|p      = 139209
|format = ref
|title  = Lisp in Life
|author = Hikaru Ikuta
|date  = December 22, 2022
}}</ref>
<ref name="post155924">{{LinkForumThread
|p      = 155924
|p      = 155924
|format = ref
|format = ref
|title  = Re: NewLifeCA Back Issues
|title  = Re: NewLifeCA Back Issues
|author = Dave Greene
|author = Dave Greene
|date  = January 13, 2022
|date  = January 13, 2023
}}
}}</ref>
</ref>
<ref name="blog">{{cite web
<ref name="blog">
|url       = https://woodrush.github.io/blog/posts/2022-01-12-lisp-in-life.html
{{cite web
|title     = Woodrush's Blog: A Lisp Interpreter Implemented in Conway's Game of Life, January 12, 2022
|url=https://woodrush.github.io/blog/posts/2022-01-12-lisp-in-life.html
|publisher = Hikaru Ikuta
|title=Woodrush's Blog: A Lisp Interpreter Implemented in Conway's Game of Life, January 12, 2022
}}</ref>
|publisher=Hikaru Ikuta
}}
</ref>
</references>
</references>


==External links==
==External links==
*{{LinkWikipedia|Lisp_(programming_language)|name=Lisp (programming language)}}
* {{LinkWikipedia|Lisp_(programming_language)|name=Lisp (programming language)}}
*[https://github.com/woodrush/lisp-in-life/blob/main/build.md Build files for Lisp in Life]
* [https://github.com/woodrush/lisp-in-life/blob/main/build.md Build files for Lisp in Life]
 
[[Category:Patterns found in 2022]]
[[Category:Patterns]]

Latest revision as of 01:25, 15 January 2023

Lisp in Life is a pattern that implements a Lisp interpreter constructed by Hikaru Ikuta, completed in January 2022, using technology similar to the Quest for Tetris project.[1] This is the believed to be the first implementation of a standardized high-level programming language inside Conway's Game of Life.[2][3]

A Lisp program is entered by editing cells with the ASCII values of the characters of the code. When run, the pattern reads this text and evaluates the results. The output is written at the bottom of the pattern's RAM module. The Lisp interpreter is implemented in C, and the pattern can be modified to run other C code.

Highly magnified section of the pattern. What appears to be a single cell is actually an OTCA metapixel. Top-right: ROM lookup module. Top-left: ROM value module. Bottom-left: CPU. Bottom-right: RAM.
The entire pattern (left). Magnified (right).
The highly magnified section shown above is in the middle.

See also

References

  1. ↑ Hikaru Ikuta (December 22, 2022). Lisp in Life (discussion thread) at the ConwayLife.com forums
  2. ↑ Dave Greene (January 13, 2023). Re: NewLifeCA Back Issues (discussion thread) at the ConwayLife.com forums
  3. ↑ "Woodrush's Blog: A Lisp Interpreter Implemented in Conway's Game of Life, January 12, 2022". Hikaru Ikuta.