-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua 5.1 to 5.3 Realignment Phase 4 #3077
Comments
#3193 should address the first 3 items above. We need to drop the @nwf @HHHartmann @marcelstoer, I would appreciate your thoughts on what I should tackle next post #3193. Possible options are:
|
I'd go for the second LFS image. Allthough I still think that a linktime addition of a fixed LFS part containing at least the Lua part of our (yet to come) hybrid modules would be at least as nice. |
As the person perhaps most noisily agitating for hybrid modules, I agree with @HHHartmann's sense of priority. :) The SPIFFS thing seems like it's going to lead to an infinite well of sadness, and while I love testing, I think having a baseline design for the New World Order takes priority, given our very limited resources (which is to say, mostly you, @TerryE). |
Re: the SPIFFS issue see my comment #3148 (comment). Hopefully @pjsg Philip will take a look at this. I'll get started on the LFS stuff when stuck in review cycles on #3193. |
@HHHartmann, we already have defines for two LFS partitions and An alternative would be to stay in the file world (ignoring |
Honestly, I think I prefer a story with one LFS partition with the ability to build LFS images from ETA: I see that @TerrryE has written at length in #3206 . I should read and understand that and see if it changes my understanding. |
OK, it seems the dual-LFS story is well underway (sorry, I've been buried in a new day job, so this is perhaps more news to me than it should have been). Given that story, I think we can have our build infrastructure build in the "sysLFS" into the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I will kill or cure this one. In the meantime it remains an open issue. |
Summary
Now that we have merged #3075 unto
dev
, I want will close the historic issues which largely scoped the work completed in this PR, and to use this issue as a general discussion thread to track the general points that we can clean up with any following commits. Where any point requires detailed discussion it its own right then we can track this with its own issue and reference it here.Lua C API realignment. All C code in
app/modules
and the separateapp
successfully compiles using both the (default)LUA=51
and the newLUA=53
targets. Testers and Modules maintainers are encourage to check the modules that maintain or use against the Lua53 environment and raise any issues that are found separately. I have also done a review of thelua.h
,lauxlib.h
andlnodemcu.h
headers and my incorporate some further internal tidying in a subsequent PR.Extra Documentation. Impacts of migrating to Lua 5.3 #2808 and my Lua 53 Whitepaper are WIP documentation of this change.
ECG review and adjustment. Replaces Stack integrity during EGC #2881. See RFC - Emergency GC setting for Lua 5.3 #2783
Review of SPIFFS use and spiffsimg.
spiffsimg
should generate loadable images. SPIFFS mounting should be bypassed if the SPIFFS partition size is zero (LFS-based deep-sleep applications might wish to do this to reduce startup times.)debug.debug()
should work as expected on NodeMCU builds. See standard Lua documentation. Calling this from a panic exception handler is really good way to debug panics.Lua ESP test harness. Though touched on in Create unit tests in Lua #2145 which discusses a generic framework for use with new developed modules, this is very much more a narrow one of regressing a subset of the Standard Lua Test Suite for on ESP execution within the NodeMCU environment.
Rename and restructure
app
directory hierarchy to align this to the esp32 hierarchy. As well as the split of modules into the core, common and esp8266 modules directories, most of this work isMakefile
magic and file moves. This initial version will focus on changes to the core modules.Future enhancements
The text was updated successfully, but these errors were encountered: