Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

scripting languages and SEPPLES

Name: Anonymous 2011-11-20 13:08

I want to extend some software I'm working on without recompiling it every time by exposing a part of the code with a scripting language.

Lua looks interesting, it looks fairly easy to call C functions in it and I guess it can probably do C++ functionality (classes and templates) too.

any other options?

Name: Anonymous 2011-11-20 13:09

Python.

Name: Anonymous 2011-11-20 13:09

Name: Anonymous 2011-11-20 13:28

>>1
Is it going to be also user extendable scripting?

Name: Anonymous 2011-11-20 13:32

Chibi Scheme or Lua if it needs to be small, else >>3.
Python if you must and/or hate yourself.

Name: Anonymous 2011-11-20 13:32

Lisp's shit.

Name: Anonymous 2011-11-20 13:36

>>4
it's mostly for me and the project team, maybe others will use it in the future.

right now it's just a school project.

Name: Anonymous 2011-11-20 14:26

python was designed with embedding in mind. it's the perfect choice

Name: Anonymous 2011-11-20 14:40

>>8
Guile! Guile is the standard!

Name: Anonymous 2011-11-20 14:57

>>8
I lol'd.

Name: Anonymous 2011-11-20 15:24

>>8
Yes, a bloated pile of shit is surely great for embedding.

Name: Anonymous 2011-11-20 15:35

Roll your own language if your scripting needs are ridiculously simple or you don't care spending time reinventing the wheel, otherwise Lua.

Name: Anonymous 2011-11-20 16:21

>>11
Well you could embed Tinypy, that wouldn't be so bad.

Name: 1 2011-11-20 16:34

>>12
I've done that before with a hobby app, it gets ugly...
First you roll your own DOS batch-style language with a forth stack and some dollar sign variables, but then...

but wait, I don't like dollar signs on my variables, nobody likes PHP, they'll make fun of me!... functions might be useful... operator parsing? yes... hmm lambdas... why don't we try making this homoiconic...

And before you know it you caught yourself in the process of upgrading a .BAT clone into your dream language. But instead got a half baked Haskell-Prolog shit that doesn't work because the homemade bytecode VM for it hasn't been finished for a year.

Let some other fool make the scripting engine for your app

Name: Anonymous 2011-11-20 18:24

>>14
But instead got a half baked Haskell-Prolog shit that doesn't work because the homemade bytecode VM for it hasn't been finished for a year.
My god man, finish that shit. I would be all about a half-baked Haskell-Prolog.

Name: Anonymous 2011-11-20 18:42

OP I recommend Lua. It is easy to embed and the language itself is pretty nice for a dynamic language. Functions are first class.

If you like static typed language have a look at AngelScript (haven't used it myself).

Name: Anonymous 2011-11-20 19:54

Have you considered a dynamic library plugin system ?

Name: Anonymous 2011-11-20 21:00

Which is better, chibi or tiny?

Name: Anonymous 2011-11-21 3:24

>>17
Enjoy your SEGFAULTge

Name: Anonymous 2011-11-21 5:54

thanks for the input
I've decided on lua with luabind for c++ functionality

Name: Anonymous 2011-11-21 6:02

>>20
Don't use vanilla Lua and luabind.

Use Luajit 2.0, it's decent and won't slow you down performance wise--it's the only Lua that's used in game development these days.

Name: Anonymous 2011-11-21 11:13

>>20
>C++
functionality

Don't change these.
Name: Email:
Entire Thread Thread List