|
Moose Pegler
Registered User
Join date: 22 Apr 2006
Posts: 33
|
10-27-2006 05:52
Anybody know of a C-to-LSL twonkie? Even one that just takes a first cut that needs cleaning? It'd be a nice way to move tried-and-true C packages into SL.
Cheers, Moose
|
|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
10-27-2006 08:27
Hm,
well, apart from string parsing and simple number crunching you'd be hard pressed to find much room for a 1:1 transfer I think. To the best of my knowledge C lacks vectors and quaternions and LSL has no arrays (well, Lists are somewhat similar).
Also the program flow in LSL is often interrupted - like dataserver events. So you call for one thing here but the reply and associated action is somewhere else entirely in the code.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
11-02-2006 05:59
I agree with HtF, there is very little apart from very basic data processing / number crunching that have any corresponding functionality.
What sort of things did you have in mind?
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
11-02-2006 15:35
Trying to get C into LSL is an exercise in insanity. LSL's structure is not like that of any programing language out there & LSL is translated to an interpreted bytecode that is almost 1 to 1, so you can't even drop down to a lower lever. LSL is too high level a language to get C into. On that note, LSL's syntax is very similar (so much so that some of use use ESL, which is just LSL extended with C preprocessor commands, and before we upload we send our code through a C preprocessor).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|