The idea that code can be read, analyzed, and written as literature is not unprecedented: [[codework poetry]] is the construction and stylization of verse using a mixture of [[Linguaggio di programmazione|programming languages]] with [[Lingua naturale|natural languages]] to produce literature. Using programming languages like natural languages, by giving them [[Sintassi|syntactical]] and [[Semantica|semantic]] meanings producesto programming languages, producing a [[Poesia concreta|concrete poem]]-esque effect when juxtaposed together in the same context. Published anonymously in the [[Forum (Internet)|networked discussion system]] [[Usenet]], “[[Black Perl]]” (1990) serves as an example of a codework poem. Written in the programming language [[Perl]] (“Practical Extraction and Report Language”) as an example of [[Perl Poetry]], “Black Perl” was intentionally written in valid Perl commands so that it could be understood by computer and human reading. The step-by-stepthe commands listed in each line of the program transformcould intoalso a narrated event whenbe read line-by-line as a poem.<ref>{{Cita web|url=https://www.perlmonks.org/?node_id=237465|titolo=Black Perl updated for Perl 5|autore=jonadab|data=2003-02-21|lingua=en|accesso=2019-06-06|urlarchivio=http://web.archive.org/web/20190606094100/https://www.perlmonks.org/?node_id=237465|urlmorto=no}}</ref>
The code’s form, such as the inclusion the asterisks and parentheses, influences the readability of the code as a poem, as various punctuation marks serve different semantic purposes when read in Perl than in [[Lingua inglese|English]], for example. However, “Black Perl” was intentionally written as a poem, meaning that this particular codework poem has more in common with practices of [[:en:Constrained_writing|constraint writing]] than generative literature. In fact, “Black Perl” is not generative for the reason that it is not program-generated output but, is, instead, the program itself.
== Examples of generative literature ==
Riga 48 ⟶ 46:
* [[Arte generativa|Generative art]]
*[[Black Perl]]
* [[OuLiPo|Oulipo]]
Riga 57 ⟶ 56:
* Raymond Kurzweil, [http://www.kurzweilcyberart.com/poetry/rkcp_overview.php The Cybernetic Poet]