Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do you plan to migrate to Mono?

Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
08-09-2006 14:10
I just saw the replies to the thread regarding HyperCard, where it was suggested that there would be a forced recompilation of all scripts when migrating to Mono.

/139/d2/128287/1.html

Would I be correct in that script state will not be preserved across the recompile? Because this would be *seriously bad* for me if all my scripts were automatically reset.

Would it be possible to allow some sort of grace time, maybe a couple months, where both the old LSL VM and the new Mono implementation could run scripts? This would give us a chance to patch all our scripts so that we don't suddenly and disastrously lose all state.
_____________________
--
~If you lived here, you would be home by now~
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
08-11-2006 12:27
I'm going to forward this to Babbage and ask him.
_____________________
Babbage Linden
Difference Engineer
Join date: 27 Mar 2005
Posts: 38
08-17-2006 16:04
The current plan is to recompile the scripts from LSL source code to CIL bytecode but to copy the global state from the existing LSL scripts to the new Mono script. We will run both virtual machines side by side until we're happy that converting the scripts won't break them. It would be nice if we could just wait until scripts returned from their current event handlers so we only have to copy global state and not stack state across, but we may have to convert values on the stack too, so we can convert scripts which sit in an infinite loop sleeping and then doing some work.

So, the LSL source code will be used to generate the Mono bytecode, but the scripts won't be reset, they will be converted from running LSL scripts to running Mono scripts. Hope that clears things up.