r/lua • • 22d ago

Discussion We lead Lua scripting implementation for Second Life -- Ask Us Anything!

EDIT, Nov 12: Thanks everyone for the great questions! Will do another AMA soon-ish as Lua gets closer to official launch in SL!

Hi /lua! We’re Kyle (u/KyleLindenSL), Harold (u/HaroldCindy/) and Hamlet (u/SLHamlet) of Linden Lab, the company which publishes the long-running user-created virtual world Second Life. 

We’re currently updating the platform to run Lua scripts and are excited to see what Lua developers (and Luau creators from Roblox) build with it in SL.

For background, Second Life has been online a bit longer than Roblox and while we have a smaller user base, SL is still a very active virtual world, and has a large ecosystem of community creators who sell their virtual content (fashion, animations, vehicles, games, etc.) as a side hustle or a full-time income. 

Here’s more info about what we’re doing with Lua on 80 Level: https://80.lv/articles/second-life-wants-its-23-year-old-world-to-be-a-modern-game-platform

And a feature breakdown on our site: https://secondlife.com/create#scripting

Lua is now in live beta in SL if you want to check it out. Just need to install SL and teleport here: https://maps.secondlife.com/secondlife/Lua%20Beta%20Landing/121/141/23

We’re hoping Lua will help modernize SL as a UGC platform and grow the economy. 

So if you’re curious… ask us anything! (We’ll be checking this thread over the next few days.)

48 Upvotes

39 comments sorted by

View all comments

Show parent comment

2

u/rob_0 21d ago

2

u/Eclectika 21d ago

I had to laugh when I read:

'Yep! LSL should work exactly the same as before'

bolding is my emphasis.

Hopefully it will go well.

1

u/HaroldCindy Linden Labs Dev 21d ago edited 21d ago

I wrote that, "should" is my favorite word as an engineer, sorry. 😛 Yes, LSL will absolutely work the same as before. Failure to work the same as before is a bug that will be addressed, and I personally address those issues.

If it's reassuring at all, I have maintained LSL tooling for myself for many years, and spent several years collecting all the weird quirks of LSL. I spent a lot of time writing an LSL compiler that could target Lua bytecode specifically so that people who prefer LSL, or need to maintain legacy content would be happy. I care very deeply about keeping existing content working now and into the future.

There's an extensive conformance test suite that ensures our new LSL implementation behave the same as LSL on Mono. The acceptance criteria for the new LSL implementation is 100% "whatever Mono does". Some choice test scripts to see what kind of things we verify and how are float_precision.lsl and lval_to_lval.lsl.

Fun Fact: The first script run on my development region on the SLua VM was an LSL script, and the first proper Lua script wasn't run until a couple months later.

2

u/Eclectika 20d ago

I'm sure it will be fine. I seem to remember there were issues where the intro of mono broke stuff but it's so long ago now I can't remember specifics.

Interesting times ahead.