User:SuzannaLinn Resident/Lua: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Lua for SL (SLua) has arrived to the Beta grid. I'm adding a new section "Moving from LSL to SLua" explaining how to rewrite our LSL scripts in SLua. | Lua for SL (SLua) has arrived to the Beta grid. I'm adding a new section "Moving from LSL to SLua" explaining how to rewrite our LSL scripts in SLua. | ||
In these pages, I am compiling information about Lua and SLua (the version of Lua for SL) to give you an overview of their features and functionalities. | |||
The sections '''The language: Lua compared to LSL''' and 'The language: Lua beyond LSL' are on the standard Lua language. I wrote them before Lua arrived to the beta grid. | |||
I'm currently writing the section 'Moving from LSL to SLua' based on the SL version of Lua: SLua. This section will be growing in the next days and weeks. | |||
If LSL is your main scripting language and you want to expand your programming skills beyond SL, learning Lua is a great next step. Lua introduces powerful features and modern programming concepts that will broaden your knowledge and make it easier to transition to modern, in-demand languages like C#, Python, and JavaScript. | If LSL is your main scripting language and you want to expand your programming skills beyond SL, learning Lua is a great next step. Lua introduces powerful features and modern programming concepts that will broaden your knowledge and make it easier to transition to modern, in-demand languages like C#, Python, and JavaScript. |
Revision as of 06:11, 1 April 2025
Introducing Lua: The New Scripting Language for SL.
Lua for SL (SLua) has arrived to the Beta grid. I'm adding a new section "Moving from LSL to SLua" explaining how to rewrite our LSL scripts in SLua.
In these pages, I am compiling information about Lua and SLua (the version of Lua for SL) to give you an overview of their features and functionalities.
The sections The language: Lua compared to LSL and 'The language: Lua beyond LSL' are on the standard Lua language. I wrote them before Lua arrived to the beta grid.
I'm currently writing the section 'Moving from LSL to SLua' based on the SL version of Lua: SLua. This section will be growing in the next days and weeks.
If LSL is your main scripting language and you want to expand your programming skills beyond SL, learning Lua is a great next step. Lua introduces powerful features and modern programming concepts that will broaden your knowledge and make it easier to transition to modern, in-demand languages like C#, Python, and JavaScript.
Lua index
- The language: Lua beyond LSL
- Tables as lists of lists
- Functions, parameters and returns
- Functions, anonymous functions
- Sorting dictionary tables
- Closures
- For and iterators
- Metatables and metamethods
- Objects
- Objects and encapsulation
- Objects and inheritance
- Objects and inheritance with functions override
- Objects and abstract classes
- Objects and multiple inheritance
- Error handling
- Libraries
- Modules and packages
- Debugging
- Co-routines
- Future
- When will Lua be available?
- Will LSL scripts benefit from being compiled to Luau?
- Will Lua scripts have more memory?
- Will LSL continue to exist?
- Will LSL receive updates with new functions?
- Will there be any way to use the functions not added in LSL?
- Will there be a translator or transpiler to convert LSL source code into Lua source code?
- Will we have to move to Lua?
- Should we stop learning LSL and wait for Lua?
- Will LuaSL be updated to the new versions of Luau?
- Will LSL scripts compiled in Mono be automatically recompiled to Luau?
- Will there be an option to choose between compiling to Luau or to Mono?