Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

More space for script text

Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-11-2008 03:25
This is a JIRA issue I posted a little while ago, figured I'd post here since more people here may be interested by it.

Basically I've been working on an open-source project which I will hopefully be releasing soon™, however, since it's open-source I've been documenting it very heavily, with javadoc style comments fully describing the function and intended use of each function and state within the script.

However, this takes up a lot of text-space, and it seems LSL has a limit of 65536 characters in its code, as such I'm having to develop outside of SL, and stripping the comments before I run it in SL. This is kind of annoying, and I really don't like the idea of having to put all the documentation into a separate notecard bundled with the script.

So I posted the following JIRA asking for more space:
http://jira.secondlife.com/browse/SVC-1942
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
06-11-2008 23:39
The servers have to run thousands of scripts, hence the 'tightness' you seem to feel. Your only solution is to use notecards, and read in what you need when you need it. It wouldn't hold out that things are going to change much beyond the changes coming with mono. I know total script size is changing, but I'm not sure about string space. Just gotta work with what you've got I guess.


http://www.secondscripter.com/
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
06-11-2008 23:45
From: Haravikk Mistral
However, this takes up a lot of text-space, and it seems LSL has a limit of 65536 characters in its code...

Did you check if notecards also have this limit?
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
06-12-2008 02:27
Notecards and script source has a limit of 64k.

Either split up your script into two or more separate scripts or comment less.

Also, the compiled script code in binary form is even more restricted as binary code + stack + heap may not exceed 16k
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
06-12-2008 02:32
Bah.... when I used to program my ZX81 using all 16K of the plug-in memory was a luxury!
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
In My Humble Opinion
06-12-2008 07:16
From: Haravikk Mistral
since it's open-source I've been documenting it very heavily, with javadoc style comments fully describing the function and intended use of each function and state within the script.

However, this takes up a lot of text-space, and it seems LSL has a limit of 65536 characters in its code
This sounds serious! Serious far over the top.
Personally I would never write a LSL script that big with or without comments.
To me LSL is a fun language with a limited scope.
The day Second Life is closing all LSL codes are useless.

But I do respect Haravikk Mistral and everyone that lay down huge amounts of work in the coding.
_____________________
From Studio Dora
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
06-12-2008 08:39
Suggestion: Tighten comments in the code, and go into heavy detail in a companion notecard. Sometimes, a lot of the commenting really is not much help to the actual code, but does help someone understand the design better. That kind of commenting really is best placed in a separate document. Almost like a "coder's manual" for the code in question.