Hello, which Lua version does ConTeXt use? The following: echo print('== ConTeXt: this is ' .. _VERSION .. ' ==') > CtxLuaVer~.lua tex\texmf-mswin\bin\luametatex.exe --luaonly CtxLuaVer~.lua > CtxLuaVer~.log yields == ConTeXt: this is Lua 5.5 == whilst the latest Lua version released on https://www.lua.org is 5.4.7. (I need this for possible building DLL extension(s) - Lua module(s) - to ConTeXt.) All best in the new year! Lukas
Am 02.01.25 um 17:55 schrieb LPr Pontex:
which Lua version does ConTeXt use? The following:
5.5
echo print('== ConTeXt: this is ' .. _VERSION .. ' ==') > CtxLuaVer~.lua tex\texmf-mswin\bin\luametatex.exe --luaonly CtxLuaVer~.lua > CtxLuaVer~.log
yields
== ConTeXt: this is Lua 5.5 ==
whilst the latest Lua version released on https://www.lua.org is 5.4.7.
Yes, LuaMetaTeX uses the unreleased beta of Lua 5.5; Hans even helped fixing some problems. Hraban
On 1/2/2025 5:55 PM, LPr Pontex wrote:
Hello,
which Lua version does ConTeXt use? The following:
echo print('== ConTeXt: this is ' .. _VERSION .. ' ==') > CtxLuaVer~.lua tex\texmf-mswin\bin\luametatex.exe --luaonly CtxLuaVer~.lua > CtxLuaVer~.log
yields
== ConTeXt: this is Lua 5.5 ==
whilst the latest Lua version released on https://www.lua.org is 5.4.7.
(I need this for possible building DLL extension(s) - Lua module(s) - to ConTeXt.)
- luametatex is kind of self contained and has lua compiled in - we use 5.5 because it's fun, shows what is coming, we have a huge codebase so can test it, etc (we only update when the test suite has no issues, and there seldom are) - the source that we use is in the distribution so you can use that Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hello,
as I'm firstly to explore the development process:
Simply, I need to build some Lua extensions (DLLs; C/C++ source →
.dll) (e.g. Excel workbooks (.xls) reader) to work with ConTeXt (works
with ConTeXt v. 2021.12.30 (Lua 5.3) well so far), MS VisualStudio as
compiler.
Normally - so far - there is something like this in my code:
#include "d:/Lukas/Cpp/Lua/53/include/lua.hpp"
#pragma comment(lib, "d:/Lukas/Lua/53.x32/lua53.lib")
Where do I find the appropriate lua.hpp and lua55.lib (at least to
try) to build the Lua module to work with the latest ConTeXt?
(E.g. web links would be fine as I don't get oriented well in the TeX
/ LuaMetatTeX / ConTeXt "space"...)
Best,
Lukas
čt 2. 1. 2025 v 20:05 odesílatel Hans Hagen
On 1/2/2025 5:55 PM, LPr Pontex wrote:
Hello,
which Lua version does ConTeXt use? The following:
echo print('== ConTeXt: this is ' .. _VERSION .. ' ==') > CtxLuaVer~.lua tex\texmf-mswin\bin\luametatex.exe --luaonly CtxLuaVer~.lua > CtxLuaVer~.log
yields
== ConTeXt: this is Lua 5.5 ==
whilst the latest Lua version released on https://www.lua.org is 5.4.7.
(I need this for possible building DLL extension(s) - Lua module(s) - to ConTeXt.)
- luametatex is kind of self contained and has lua compiled in
- we use 5.5 because it's fun, shows what is coming, we have a huge codebase so can test it, etc (we only update when the test suite has no issues, and there seldom are)
- the source that we use is in the distribution so you can use that
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- _______________________________________________ dev-context mailing list -- dev-context@ntg.nl To unsubscribe send an email to dev-context-leave@ntg.nl
On 1/3/2025 10:32 AM, LPr Pontex wrote:
Hello,
as I'm firstly to explore the development process: Simply, I need to build some Lua extensions (DLLs; C/C++ source → .dll) (e.g. Excel workbooks (.xls) reader) to work with ConTeXt (works with ConTeXt v. 2021.12.30 (Lua 5.3) well so far), MS VisualStudio as compiler. Normally - so far - there is something like this in my code:
#include "d:/Lukas/Cpp/Lua/53/include/lua.hpp" #pragma comment(lib, "d:/Lukas/Lua/53.x32/lua53.lib")
Where do I find the appropriate lua.hpp and lua55.lib (at least to try) to build the Lua module to work with the latest ConTeXt? (E.g. web links would be fine as I don't get oriented well in the TeX / LuaMetatTeX / ConTeXt "space"...)
you can try https://github.com/lua/lua but you're on your own here ... as it's not officially supported, just the development repository (ok for testing etc) (btw, i'd just handle the xls with the xml or csv parsers, al least that always worked for me) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
LPr Pontex