Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Introduction to Linden Scripting Language 139

prostoalex writes "Dr. Dobb's Journal runs a lengthy introduction to Linden Scripting Language, the language behind avatars and their interaction in Second Life: "LSL is a scripting language that runs server-side, on a piece of software called the simulator. The simulator does just what it's name implies — it simulates the virtual world of Second Life. Each simulator runs everything for 16 acres of virtual land — buildings, physics, and of course, scripts. While you manipulate the script text in a form that is somewhat easy to read, the actual code that runs on the simulator is compiled. A compiler is a piece of software that takes the text version of the script and converts it into something that can actually run. In the case of LSL, the compiler exists within the Second Life viewer itself. In the future, it is likely that the compiler will move from the viewer into the Second Life simulators, but where the code is compiled isn't very important. What matters is that the text is converted into a form that can run on the simulators.""
This discussion has been archived. No new comments can be posted.

Introduction to Linden Scripting Language

Comments Filter:
  • by Anonymous Coward on Sunday February 25, 2007 @01:24PM (#18144016)
    If you don't trust the person writing the script with only a compiled version, why are you trusting their script at all? Having the source code to something only means that you can probably find the malicious code, not that it doesn't exist.
  • I'm not so sure. (Score:2, Insightful)

    by maxwell demon ( 590494 ) on Sunday February 25, 2007 @01:39PM (#18144112) Journal

    In the future, it is likely that the compiler will move from the viewer into the Second Life simulators, but where the code is compiled isn't very important.

    Well, if it is running on the simulators, the simulated humans might be given access to it, and thus being able to script their own lifes!
    Well, maybe I should try if those scripts already work on our world! :-)
  • by seaturnip ( 1068078 ) on Sunday February 25, 2007 @02:32PM (#18144458)
    Yeah, all I'm interested in hearing about is, why is it necessary to have a special-purpose language for Second Life in the first place? Is there a good reason or is it just Not-Invented-Here syndrome? Why not use Lua [wikipedia.org] (a simple, extensible language commonly used to script games) or something instead?
  • by ajlitt ( 19055 ) on Sunday February 25, 2007 @03:01PM (#18144746)
    Who cares? Linden owns the production systems, so you're not guaranteed that execution on the simulator is one-for-one with the game.
  • by MilenCent ( 219397 ) <johnwh@gmai l . com> on Sunday February 25, 2007 @03:09PM (#18144798) Homepage
    But what is real currency? All money is fake, on a basic, fundamental level. Online games simply use faker money than usual, but with real world transactions becoming increasingly virtual, the difference between the two is becoming much more uncertain over time.

    It is in the best interest of any online world to convince the government that their money is fake, since that means they won't have to subject their servers and source code to government oversight, which would ultimately make the game much harder to implement. Most games are content to let it rest at that, since they see their money as play tokens themselves.

    Linden Labs is one of the first companies to realize that there is a value in allowing the public, if not regulators, to think otherwise. All L$ cashouts are probably, technically, at LL's discretion; to give players a true, real-world legal right to convert money would mean the government would ultimately start taking a hard look at them, since from a real-world standpoint they would start looking like a bank at best, and a potential tax dodge at worst.

    It is important to note, though, that Linden Labs' business requires that the illusion be maintained. If they actually did refuse to cash out L$, it would shake user faith in the system. Trading between real-and-virtual money may be ultimately by permission only, but to exercise that authority would be dangerous to their business, and they seem like they're in this some degree of foresight instead of hoping to make a quick buck, so L$ are still, practically, safe to buy and sell. Mostly.
  • by DaleGlass ( 1068434 ) on Sunday February 25, 2007 @05:23PM (#18145878) Homepage
    So?

    SL has a service based economy. There isn't a shipping industry in SL because it isn't needed. But there are plenty services being offered. If you pay me enough L$ I could script something for you. There are people who will build custom objects, draw graphics, make custom avatars, etc.

    RL physical constraints aren't needed in SL to have an economy. Time still is money. Skill still takes effort to develop.

    The RL constraints gave us the RL economy, the SL constraints result in a slightly different one. There's no reason why the RL world is the only way of having an economy.

The last thing one knows in constructing a work is what to put first. -- Blaise Pascal

Working...