Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Programming language similar to LSL?

Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
02-17-2009 13:10
Hello everyone. This is a bit of an odd request, but does anyone know of a programming language with a similar syntax to LSL? I've tried C++, Python, etc., but none of them are really working out for me.

(It's preferred that it be freeware, and that it's state-driven.)

Thank's in advance ^_^
_____________________
Life is a highway... And I just missed my exit.
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
02-17-2009 13:25
Languages that are state driven like LSL are rare, rare, rare. You would have to invent your own state like mechanisms in a language like C or Java.

That said, the syntax of C and Java are more or less LSL like, or vice versa. However, what looks the same to an expert might look very different to a beginner. it is the ability to see what matters and what doesn't matter...

So, in short, no, there is no other language like LSL.

Maybe the first thing I should have asked is, Why do you need a language like LSL?
_____________________
So many monkeys, so little Shakespeare.
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
02-17-2009 13:31
That's precisely what I was afraid of hearing -.-
_____________________
Life is a highway... And I just missed my exit.
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
02-17-2009 13:49
Your request is strange.
For what purpose are you looking for the programming language? General all purpose programming (not in SL) or webpage development, or just learning principles of programming?
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
02-17-2009 13:59
From: Destiny Niles
Your request is strange.

I'm a little confused by it, too.

If you're looking to move to some other programming language, C++ or C# are probably two of the more marketable languages out there. If you don't mind sticking to Windows, the Visual Studio Espress stuff is pretty decent and free: http://www.microsoft.com/express/default.aspx .

Or something like PHP or Python if you're more interested in scripty stuff.

edit: and Lee's right (of course). LSL is a strange beastie..
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-17-2009 14:07
I have learned a handful of languages since LSL and I really like C#. Unfortunately it is really hard to find a forum and supporting wikis like there is for lsl and it makes it a little more difficult. I found that a good next step is Autoit, tons of examples, active forum and help files are very good, it is actually quite powerful also. Once you have cobbled together a couple of programs then it makes switching over to C++ or C# much, much easier.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
02-17-2009 15:09
Do you really mean "state-driven" or are you thinking more about how LSL scripts are all "event-driven;" where the code only runs in response to different kinds of user actions and system events?

If we're really talking about events, C# is a pretty good fit in that it is syntactically similar to LSL, but it also has built-in event handling capability, unlike C/C++ where libraries or SDKs are required for that kind of programming.

You can program C# in notepad and compile your programs using Microsoft's free .NET development kit. The Microsoft tools only target Windows (as far as I know), but C# itself is an open language.
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
02-17-2009 15:15
Thanks everyone ^_^

I'll check out some of your suggestions. The reason I ask is that although I've become fairly skilled with LSL, I'm still considered a beginner, and I'm not going to do anything productive if I can only script objects in SL. Since I found LSL very easy to learn, I figured I should look for a language similar to it.


And I apologize for this post being rather odd and confusing... I'm a bit tired and too lazy at the moment to proofread ;)
_____________________
Life is a highway... And I just missed my exit.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-17-2009 16:02
I'd have to recommend Java as well. It is a little older than C#, but its API documentation is about 20000000 times better than the stupid MSDN crap Microsoft provides. In fact, I SO wish Linden Lab had or would provide real library API documentation at the same kind of quality level as the Java API. User contributions can help a lot, but there's nothing like developer documentation from the people who actually wrote the library and know both how it is supposed to operate and how it actually does operate under the hood. **sigh**

If you're looking for free implementations, Sun's JDK is free. OpenJDK is free. Mono (runs code compiled from Java, C#, and a number of other languages in a simulated .NET type framework) is free.

While not many languages implement states directly, the State Design Pattern is an efficient and simple way to implement it in most object oriented languages.
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
02-17-2009 18:04
Assembly is always fun!!!!! (being very sarcastic)

On a serious note, the best thing you can do is find a language that best suits what you want to do. If you want to write windows apps, find one that will work for that. f you want to do web programming, find one that will work for that.

Programming is basically about 2 things: Semantics and Syntax.

Semantics: This is basically how to think like a computer, how to write algorithms flow control, data structures, things like that. This is the critical part of programming. Learning how a computer thinks logically. Once you get good at this, then it's just a matter of Syntax.

Syntax: This is basically how a language is written. In lots of languages you tell the program what type you wish the variable to be (C/C++, LSL....), or in PHP there is no real type just $variable. Think of it this way, you know the concept of how to set an alarm clock, Set the time, turn on the alarm, wait for it to go off. But the steps on exactly how to implement that are different for each clock.
Tabliopa Underwood
Registered User
Join date: 6 Aug 2007
Posts: 719
02-17-2009 18:55
Microsoft Visual Web Developer Express is quite good to learn with. Can learn how to program websites and stuff like that. And learn a bit about C# as well.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-17-2009 21:00
on the even lighter end, jscript has large similarities and can also be used to build minor applications.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
02-18-2009 09:47
I suggest you try a language that is NOT imilar to LSL. Less confusing that way.

There are so many to choose from, it is hard to decide. It probably depends more on what kind of programs you want to write as much as anything else.

Pick something you think is cool, say to yourself, "Hey, I want to do something like that," then go find out what language that thing uses. It might be Flash, PHP, Javascript, java, C#, Python, etc etc etc.

Look into One Laptop Per Child, for example. Lots of Python there.

lee
_____________________
So many monkeys, so little Shakespeare.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-18-2009 10:37
If you want a language similar to LSL, and with event-driven behavior, JavaScript embedded in a browser is probably closest. You would also benefit from learning some Lisp, Scheme, Tcl, or other list-oriented language.

For a state-oriented language... hmmm. The only thing that comes to mind is sendmail.cf. I wouldn't wish that on my worst enemy:

R$- ! $+ $: $(uucp $1 $@ $2 $: %1 @ %0 . UUCP $)

HMessage-Id: $>CheckMessageId

SCheckMessageId
R<$+@$+> $@OK
R$* $#error $: Illegal Message-Id header

Well, there's parser languages like Lex and Yacc.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
02-18-2009 14:20
After reviewing several languages, I think I've decided on C#. The only problem is I can't get C# Visual Express to install correctly... Oof XD
_____________________
Life is a highway... And I just missed my exit.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-18-2009 14:23
C# isn't at all like LSL :eek:
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
02-18-2009 17:19
From: Argent Stonecutter
If you want a language similar to LSL, and with event-driven behavior, JavaScript embedded in a browser is probably closest. You would also benefit from learning some Lisp, Scheme, Tcl, or other list-oriented language.



LOL, sorry not meaning to make fun, but LISP? Talk about a tackle and a half, hope you understand recursion if you're going to tackle that language! :P
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-18-2009 17:25
From: Lazink Maeterlinck
LOL, sorry not meaning to make fun, but LISP? Talk about a tackle and a half, hope you understand recursion if you're going to tackle that language! :P
Lisp is a perfectly regular and sensible (albeit parenthetical (though not in the sense that Pep (or his imitators) may use, but rather (if I may be forgiven (inasmuch as forgiveness is possible) for the affectation) ... now where was I?

Oh yes, Lisp.

Given that the list is the only data structure in LSL, learning a trifle of Lisp would be beneficial.

Don't be dismayed, at least I didn't suggest Forth.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Zyra Juliesse
ZYRAQuest.com
Join date: 19 Nov 2008
Posts: 48
02-19-2009 11:08
Similarities I've noticed since studying LSL are javascript and php.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-19-2009 23:59
From: Cypher Ragu
After reviewing several languages, I think I've decided on C#. The only problem is I can't get C# Visual Express to install correctly... Oof XD

If you are going to go with C#, I suggest using Mono. It keeps you as far from M$ BS as possible, though you've already been unfortunate enough to choose their over-burdened language.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-20-2009 04:40
Don't let any negative comments worry you. C# is a perfectly fine language and is fairly easy to use, especially for creating and using GUI's in stand alone apps. I was able to cobble together 2 different applications that everyone at the office use now. One is a timecard calculator and the other is for splitting the costs, taxes, freight and fuel charges in a Purchase Order between different jobs. Both the libsl and our ex-resident coding guru Strife like C#. If you are just creating the apps for yourself then there is no need for Mono. You can always switch over to Mono as you become more comfortable.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-20-2009 04:59
If you want to create standalone GUIs, a scripting language with a Tk binding can't be beat. Tcl/Tk, Perl/Tk, Python/Tk, Scheme/Tk, whatever flips your switches.

And it's event-driven.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-20-2009 05:05
From: Argent Stonecutter
If you want to create standalone GUIs, a scripting language with a Tk binding can't be beat. Tcl/Tk, Perl/Tk, Python/Tk, Scheme/Tk, whatever flips your switches.

And it's event-driven.

oooooo interesting, been thinking of picking up on a bit of Perl anyways.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum