Skip to content

Conversation

@georgik
Copy link

@georgik georgik commented Jan 8, 2026

The Lua component is getting popular, so idea is to move it under Espressif namespace.

Formerly it was hosted here: https://github.com/georgik/esp-idf-component-lua

Component Registry: https://components.espressif.com/components/georgik/lua/

@CLAassistant
Copy link

CLAassistant commented Jan 8, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title Add Lua component Add Lua component (IEC-470) Jan 8, 2026
/*
@@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats.
*/
#define LUA_32BITS 1
Copy link
Collaborator

@suda-morris suda-morris Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't have to fork the whole header file, can we try other header injection approach?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Replaced by lua/port/include/luaconf.h

** (It must fit into max(int)/2.)
*/
#if 1000000 < (INT_MAX / 2)
#define LUAI_MAXSTACK CONFIG_LUA_MAXSTACK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this macro isn't available in the upstream https://github.com/lua/lua/blob/master/luaconf.h

@georgik
Copy link
Author

georgik commented Jan 9, 2026

All builds are green, just one is failing in picolib with from ESP-IDF, I guess this is not specific to this component:

warning: times is not implemented and will always fail

Any idea how to resolve it?
https://github.com/espressif/idf-extra-components/actions/runs/20848120564/job/59896553185?pr=658#step:5:1673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants