<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Plua</id>
	<title>Plua - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Plua"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Plua&amp;action=history"/>
	<updated>2026-10-25T12:52:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Plua&amp;diff=2460781&amp;oldid=prev</id>
		<title>imported&gt;GreenC bot: Rescued 2 archive links; reformat 2 links. Wayback Medic 2.5 per Category:All articles with dead external links</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Plua&amp;diff=2460781&amp;oldid=prev"/>
		<updated>2025-01-12T05:42:30Z</updated>

		<summary type="html">&lt;p&gt;Rescued 2 archive links; reformat 2 links. &lt;a href=&quot;/wiki143/index.php?title=User:GreenC/WaybackMedic_2.5&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:GreenC/WaybackMedic 2.5 (page does not exist)&quot;&gt;Wayback Medic 2.5&lt;/a&gt; per &lt;a href=&quot;/wiki143/index.php?title=Category:All_articles_with_dead_external_links&quot; title=&quot;Category:All articles with dead external links&quot;&gt;Category:All articles with dead external links&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{for|the political party|Party of the United Struggle for Africans in Angola}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Plua&amp;#039;&amp;#039;&amp;#039; is a port of the [[programming language]] [[Lua (programming language)|Lua]] 5.0.3, along with a small [[Integrated Development Environment|IDE]], for the [[Palm OS|Palm Computing platform]]. Lua is a programming language designed at TeCGraf, the Computer Graphics Technology Group of [[Pontifical Catholic University of Rio de Janeiro|PUC-Rio]], [[Brazil]]. Plua includes some extensions to Lua to better support the Palm platform.&lt;br /&gt;
&lt;br /&gt;
Development has ceased on Plua, and the latest stable version of &amp;#039;&amp;#039;Plua&amp;#039;&amp;#039; 2.0 can only be downloaded from a discussion board.&amp;lt;ref&amp;gt;[https://web.archive.org/web/20070112073831/http://tech.groups.yahoo.com/group/plua/ Yahoo Groups: plua]&amp;lt;/ref&amp;gt; The prior version, Plua 1.1, is a port of Lua 4.0. The extensions differ somewhat between versions. The new version is thus sometimes called Plua 2 to avoid confusion.&lt;br /&gt;
&lt;br /&gt;
== Language resources ==&lt;br /&gt;
&lt;br /&gt;
Plua has some special functions, or extensions, to support the Palm platform, including:&lt;br /&gt;
&lt;br /&gt;
* [[Graphical user interface]] (GUI) components, defined by position: buttons, checkboxes, etc.&lt;br /&gt;
* Direct plotting of graphics based on vertex information: lines, circles, etc.&lt;br /&gt;
* Can work with streams, databases or computer files on memory cards.&lt;br /&gt;
* Supports communication via [[infrared]] and serial ports.&lt;br /&gt;
* Rudimentary sprite engine.&lt;br /&gt;
&lt;br /&gt;
== Sample code, Plua 1 ==&lt;br /&gt;
&lt;br /&gt;
The [[compiler]] and [[interpreter (computing)|interpreter]] is approximately 150 KB, and the compiled helloworldApp.prc shown below is approximately 2 KB.&lt;br /&gt;
&lt;br /&gt;
The classic [[hello world program]] (in the old version) can be written as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
 -- HelloWorld.lua&lt;br /&gt;
 ptitle(&amp;quot;Hello World&amp;quot;)&lt;br /&gt;
 print (&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
 pevent()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This text will be saved as a normal memo in the Palm, and executed by tapping the &amp;quot;Run&amp;quot; button in the IDE. Alternatively, the program can be compiled into a [[PRC (Palm OS)|PRC]] (Palm OS Program File, which is executable on any Palm Platform, provided that the runtime program is present) from the same IDE.&lt;br /&gt;
&lt;br /&gt;
A breakdown of the program:&lt;br /&gt;
&lt;br /&gt;
* Line #1:&lt;br /&gt;
*: The double dashes define the above line as a comment. All Plua memo files must be defined as such before it can be run or compiled in Plua.&lt;br /&gt;
* Line #2:&lt;br /&gt;
*: Defines the title at the top of the page.&lt;br /&gt;
* Line #3:&lt;br /&gt;
*: Prints the message &amp;quot;Hello, world!&amp;quot; onscreen under the title bar.&lt;br /&gt;
* Line #4:&lt;br /&gt;
*: The above command pauses the execution of the programs and waits for any interaction from the user. These include button taps, character input, or the push of a hard button.&lt;br /&gt;
&lt;br /&gt;
== Sample code, Plua 2 ==&lt;br /&gt;
&lt;br /&gt;
The equivalent program with the new extensions can be written as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
-- HelloWorld.lua&lt;br /&gt;
gui.title &amp;#039;Hello world&amp;#039;&lt;br /&gt;
print &amp;#039;Hello world!&amp;#039;&lt;br /&gt;
gui.event(ioPending)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A breakdown of the program:&lt;br /&gt;
The first line comment is the same as before, but the rest is a little different.&lt;br /&gt;
&lt;br /&gt;
* Line #2: &lt;br /&gt;
*: The &amp;lt;code&amp;gt;gui.title&amp;lt;/code&amp;gt; function defines the title at the top of the page. Parentheses are optional for a Lua function call with a single string argument (and also for a single table constructor). [[String literal]]s may be either single-quoted or double-quoted.&lt;br /&gt;
* Line #3:&lt;br /&gt;
*: Prints the message &amp;quot;Hello, world!&amp;quot; onscreen under the title bar. If the optional parentheses and double quotes had been used (and they could have been), this line would be identical to the first version.&lt;br /&gt;
* Line #4: &lt;br /&gt;
*: The above command pauses the execution of the programs and waits for any interaction from the user. The argument ioPending is simply a predefined number included in Plua 2 representing a request for this behavior.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Palm OS Emulator]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://web.archive.org/web/20070112073831/http://tech.groups.yahoo.com/group/plua/ Plua Yahoo group]&lt;br /&gt;
* [https://web.archive.org/web/20070102053819/http://sophonix.com/downloads/plural.asp Plural Plua IDE]&lt;br /&gt;
* [https://archive.today/20110706154449/http://wikiplua.sourcedreams.com.br/ Wiki pLua]&lt;br /&gt;
* [https://www.floodgap.com/retrotech/plua/ Plua Revisited]&lt;br /&gt;
&lt;br /&gt;
{{Lua programming language}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua (programming language)]]&lt;br /&gt;
[[Category:Palm OS software]]&lt;/div&gt;</summary>
		<author><name>imported&gt;GreenC bot</name></author>
	</entry>
</feed>