lfnetwork.com mark read register faq members calendar

Thread: Embeddable scripting languages
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-29-2002, 05:31 PM   #1
moebius
 
moebius's Avatar
 
Join Date: Mar 2002
Location: Galicia, Spain
Posts: 53
Embeddable scripting languages

Well, I'm looking for a fast and lightweight embeddable scripting language to use in Lixoo. I know some: Lua (used in GrimE, Mad), SpiderMonkey (JS-like, used in Sphere, Mozilla), Ferite (used in the new Enlightenment window manager) and Simkin.

I'm trying to find the fastest and more lightweight one. Do you know another languages of this kind? What of them would you prefer to make scripts of an adventure game?

We could also make or own, but that requires some advanced knowledge on parsers and lexical analyzers that we don't have at the moment.

Thanks in advance


Moebius
Developer of the Lixoo engine
moebius is offline   you may: quote & reply,
Old 07-30-2002, 05:41 AM   #2
superqult
 
Join Date: Jul 2002
Location: stockholm, sweden
Posts: 12
applescript?

AppleScript?


"but i better be quiet now
i'm tired of wasting my breath
carrying on and getting upset"
- Elliott Smith (1969 - 2003)
superqult is offline   you may: quote & reply,
Old 07-30-2002, 07:38 AM   #3
Anym
 
Join Date: Jul 2002
Location: Austria
Posts: 16
Other options would be Python http://www.python.org/ (replaced SCUMM at Humongous Entertainment) or SeeR http://home.elka.pw.edu.pl/~ppodsiad/seer/ (I used to think that AGS used this, but as I didn't find information about the other on both sites, I'm not sure anymore.)

Anyway, I'd go for either Python http://www.python.org/ , because it's a easy to learn, powerful, efficient and elegant programming language (used in Backyard Hockey, Freedom Force, Severance: Blade of Darkness, Star Trek: Bridge Commander, QuArK,...) , or with LUA http://www.lua.org/ , because it has proven that it is capable of the task as well (Grim Fandango, Escape from Monkey Island, Angband, Baldur's Gate, MDK2, ...) and the MAD Adventure Game Engine Project http://mad-project.sourceforge.net/ uses it as well.


I look just like Bobbin Threadbare.
Anym is offline   you may: quote & reply,
Old 07-30-2002, 06:36 PM   #4
moebius
 
moebius's Avatar
 
Join Date: Mar 2002
Location: Galicia, Spain
Posts: 53
I have been making tests with SpiderMonkey and Lua this evening and I decided not to use SpiderMonkey as the runtime is bigger than Lua's (I can reduce the Lua runtime to be only 78 KB!). Lua is also faster. I sometimes get confused with the stack when calling C functions from Lua, but it's a matter of practice

I'll try Python, SeeR and Ferite tomorrow, too. I want to take a look to them before choosing one.

Mmmh... AppleScript. That would reduce the platforms in which Lixoo could be used. I think it won't be a good idea to use AppleScript in the engine. Maybe it could be used in the IDE, we have a Cocoa version in mind


Moebius
Developer of the Lixoo engine
moebius is offline   you may: quote & reply,
Old 07-31-2002, 07:39 AM   #5
superqult
 
Join Date: Jul 2002
Location: stockholm, sweden
Posts: 12
Quote:
Originally posted by moebius
Mmmh... AppleScript. That would reduce the platforms in which Lixoo could be used. I think it won't be a good idea to use AppleScript in the engine. Maybe it could be used in the IDE, we have a Cocoa version in mind
ah, that sounds so nice! I wasn't actually hoping for that, you just made my day.


"but i better be quiet now
i'm tired of wasting my breath
carrying on and getting upset"
- Elliott Smith (1969 - 2003)
superqult is offline   you may: quote & reply,
Old 07-31-2002, 07:53 AM   #6
Anym
 
Join Date: Jul 2002
Location: Austria
Posts: 16
Don't even bother to check out SeeR. I just mentioned it for completeness' sake... Go Python!


I look just like Bobbin Threadbare.
Anym is offline   you may: quote & reply,
Old 07-31-2002, 08:17 PM   #7
moebius
 
moebius's Avatar
 
Join Date: Mar 2002
Location: Galicia, Spain
Posts: 53
I have been reading lots of stuff all over the net, and I finally decided to use Python or Lua. I don't know yet what to use, I have to make some experiments with them until the final decission.

Just one question about Python: can I strip down the standard Python modules in order to get a smaller Python interpreter? It would be a nice thing, can somebody tell about that?

Thx.


Moebius
Developer of the Lixoo engine
moebius is offline   you may: quote & reply,
Old 08-01-2002, 04:49 PM   #8
moebius
 
moebius's Avatar
 
Join Date: Mar 2002
Location: Galicia, Spain
Posts: 53
I 've been trying to make Python as small as possible, but a minimal embedded Python system is about... 700KB!! I like Python now I've read about it, but I need to make it smaller, is it possible?

Can someone tell me what is the "magic recipe" to get it small? If it's not possible I would use Lua.


Moebius
Developer of the Lixoo engine
moebius is offline   you may: quote & reply,
Old 08-02-2002, 07:22 AM   #9
Anym
 
Join Date: Jul 2002
Location: Austria
Posts: 16
I don't know how small you can get it, but not as small as LUA, I think.


I look just like Bobbin Threadbare.
Anym is offline   you may: quote & reply,
Old 08-02-2002, 07:32 PM   #10
moebius
 
moebius's Avatar
 
Join Date: Mar 2002
Location: Galicia, Spain
Posts: 53
Finally, I decide to use Lua. I like Python a lot now that I know it, but the thing I really love is the speed and the small size of Lua. And as the 'L' of Lixoo stands for 'Lightweight', Lua is the perfect candidate. I couldn't make Python smaller than 570KB ...and its quite big for Lixoo, I think.

I was worried about object oriented programming with Lua, but digging through its documentation, I found that OOP can be made by assigning functions to Lua tables the behave as methods for the table that contains them just by using the "table:method()" syntax! Cool!

Thanks for your help, anyway


Moebius
Developer of the Lixoo engine
moebius is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > Embeddable scripting languages

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:01 AM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.