X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: ANNOUNCE: DJGPP port of Lua 5.2.0 uploaded. Date: Wed, 21 Dec 2011 20:06:15 -0800 (PST) Organization: http://groups.google.com Lines: 106 Message-ID: <74ee1ae2-8a21-4104-95d9-492073150519@l29g2000yqf.googlegroups.com> References: <201112220014 DOT pBM0ENQt004616 AT delorie DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1324526870 7146 127.0.0.1 (22 Dec 2011 04:07:50 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 22 Dec 2011 04:07:50 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: l29g2000yqf.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7,gzip(gfe) Bytes: 5122 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pBM4F1s6019600 Reply-To: djgpp AT delorie DOT com Hi, On Dec 21, 5:43 pm, Juan Manuel Guerrero wrote: > > This is a port of Lua 5.2.0 to MSDOS/DJGPP. http://en.wikipedia.org/wiki/Lua_programming_language () Almost exactly a year after your other port. I didn't even know 5.2.0 was in "beta" yet, heh. Anyways, here's the changes: " Lua 5.2 was released on 16 Dec 2011. The main features in Lua 5.2 are yieldable pcall and metamethods, new lexical scheme for globals, ephemeron tables, new library for bitwise operations, light C functions, emergency garbage collector, goto statement, and finalizers for tables. The current release is Lua 5.2.0, released on 16 Dec 2011. " Also, for history's sake: Lua 5.1.4 was released on 22 Aug 2008. Lua 5.1 was released on 21 Feb 2006. Lua 5.0 was released on 11 Apr 2003. Lua 4.0 was released on 06 Nov 2000. >   Lua is a powerful, light-weight programming language designed for extending >   applications. Lua is also frequently used as a general-purpose, stand-alone >   language. Lua is free software. http://en.wikipedia.org/wiki/MIT_License >   To compile this port you will need to check out the libc sources from the >   CVS repository and compile your owm c library. I'm not sure I've ever rebuilt DJGPP's libc, probably weakly tried once or twice and gave up. Nowadays, I have more experience, so I should try again. But I'm blindly assuming pure DOS won't work (easily, if at all), unfortunately. >   Please also note that you do not need to worry about all this if you use >   gcc 4.4.5 or a previous version to compile the sources. I know what you meant, but obviously we don't have 4.4.5 (only 4.4.4), and even 4.4.6 (or maybe by then 4.4.7) will probably be dropped once 4.7.x is out in a few months. I don't honestly know which version I trust the most as they all seem to have regressions. >   DJGPP specific changes. >   ======================= > >   - The port will honor the new platform "djgpp".  This means, to compile the >     port you must pass djgpp as argument to the Makefile in the top srcdir. FYI, last I checked, Lua would compile via (in order of preference) posix, generic, or ansi. But they do have some hardcoded targets too ("bsd"), so it's fine. ;-) BTW, am I wrong or does it ("posix") try using (POSIX?) _setjmp [sic]? Is that somehow different than default ANSI C setjmp? EDIT: Hmmmm, sounds complicated: http://kernel.org/doc/man-pages/online/pages/man3/setjmp.3.html >   - Instead of using the hard coded template string "/tmp/lua_XXXXXX", this >     port will create the names of its temporary files using the template string >     composed by "luXXXXXX" and a prefix pointing to a directory.  The directory >     is determined by testing, in sequence, the directories defined by the values >     of environment variables TMPDIR, TEMP and TMP.  The first variable that is >     found to point to an existing directory will be used.  If none of these >     variables specify a valid directory, P_tmpdir will be used. Hmmm, temporary files, I should read this more in-depth later on: http://www.delorie.com/gnu/docs/glibc/libc_295.html >   For further information about Lua please read the docs. http://www.lua.org/docs.html http://www.lua.org/faq.html http://www.lua.org/pil/ (old first edition online, 5.0 only but close enough) >   Please note that I have only ported this package.  I do not use Lua at all so >   I will not be able to answer questions that are not related to porting issues. Me neither, but it looks nice. Thanks for your efforts. :-) P.S. These also sound interesting: http://luajit.org/ http://lua-users.org/wiki/LuaPowerPatches