Skip to content

Release 2

Russell Haley edited this page Mar 3, 2020 · 12 revisions

Release 2 page

Note: Release 2 was abandoned due to bugs in the Lua interpreter wrapper. Please see Release 3 for our exciting new distribution.

2018-05-27 - 1805c

We are pleased to announce the second Release of WinLua. Release 2, 1805c. R2 is a modification to the stock interpreter, LibreSSL and a cross platform build system for C and C++ that handles dependencies. This is a 32 bit only release due to installer issues. Please note this release is very experimental and may... will have bugs.

What's Included:

  • WinLua 2, which is a mashup of Lua 5.4-work1 and lua 5.1.5. Lua 5.4 has NIL_IN_TABLE turned on, so nils can be inserted into a table to hold the position of the item.
  • LuaFileSystem (lfs) version 1.7.0 from the Kepler Project.
  • Sol2 version 2.20.1 - Header only hpp file under ...\include\sol2.hpp
  • LibreSSL 2.7.3 - OpenSSL fork from OpenBSD. I don't yet include luasec, but this is a step in that direction. I also have my eye on luaossl by William Ahern (requires porting).
  • JamPlus 0.3 By Josh Jensen - An extension of the Perforce jam build system. Once learned, the syntax is easy for building simple c/c++ modules and has been used in very large production build systems.

Usage:

WinLua provides a wrapper around the interpreter that loads The current Lua, or 5.1 if you pass the -51 parameter. Start menu items are provided for Lua 5.current (5.4.0-work1) and Lua 5.1.5. To call Lua from powershell or cmd:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Loading personal and system profiles took 690ms.
C:\Users\russh> lua
Lua 5.4.0 (work1)  Copyright (C) 1994-2018 Lua.org, PUC-Rio
>
C:\Users\russh> lua -51
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
>

Compatability:

WinLua R2 works fine along side other WinLua installations, but the install paths are different so it looks a little wonky in the Program Files\WinLua directory. I am running WinLua R1 5.3 along side WinLua R2. That gives me 5.1, 5.3 and 5.4.

JamPlus

JamPlus is a build system that understand C, C++ and C#. It's cross platform (though I haven't tested that claim yet) and is really easy for building simple C modules (my use case). It has a very powerful expansion syntax that I'm looking forward to exploring.

I've included the documentation - which is thick to get through - as well as a link to the samples directory in the start menu. Check out the lua-exe sample. Best of all though, Lua is integrated into the build system. I don't have all the details of that yet myself. The systems been used in very large video game production.

Check out the samples but read the docs. And always put a space before your semicolon ;

LibreSSL

LibreSSL no longer provides a binary from their download site, though it's simple to build if you know how to use cmake. :-/ I've included an optional installation for the latest build and intend to continue supplying updates. I also provide a stand alone installer for LibreSSL. I will check if luasec builds as soon as possible.

Clone this wiki locally