[Freeciv-Dev] Re: (PR#12706) Events framework
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12706 >
I guess a scripting language would not be slow if it was only used for
initialization or for rare events, like finding a hut, but it would be
tempting to do things like have a hook that makes a script listen to
common events like unit_moved_to (=>slow), for example to update an
internal counter which makes the huts act differently after every 100
moves ..
To throw some oil into the fire:
scripting: lua (good: sort of popular with games, bad: extra
library,allows tedious manual stack processing and handling, much like
assembler; coolness bonus: for the funny or/and operators),
scripting:scheme (good: simple; bad:I'm no expert .. hard to read?)
data serialization: yaml (good: implemented in 7+ languages, bad: the
C version is not finished yet, but might end up being a "standard" lib
for linux)
On Apr 2, 2005 8:07 PM, Benoit Hudson <bh@xxxxxxxxxxxxxxxxxxx> wrote:
> I agree with Vasco that we need a reasonable language. The question
> arises: how powerful a language? Personally, I'm all for firing up a
> python interpreter to really let people go wild, and just provide an API
> for creating events.
>
> The main issue with that is it would be hard to get the AI to understand
> complicated events. There's also a runtime worry (would it be too
> slow?).
>
> -- Benoît
- [Freeciv-Dev] Re: (PR#12706) Events framework, Vasco Alexandre da Silva Costa, 2005/04/02
- [Freeciv-Dev] Re: (PR#12706) Events framework, Benoit Hudson, 2005/04/02
- [Freeciv-Dev] Re: (PR#12706) Events framework, Mike Kaufman, 2005/04/02
- [Freeciv-Dev] Re: (PR#12706) Events framework,
Peter Schaefer <=
- [Freeciv-Dev] Re: (PR#12706) Events framework, Benedict Adamson, 2005/04/03
- [Freeciv-Dev] (PR#12706) Events framework, Vasco Alexandre da Silva Costa, 2005/04/03
- [Freeciv-Dev] (PR#12706) Events framework, Vasco Alexandre da Silva Costa, 2005/04/03
- [Freeciv-Dev] (PR#12706) Events framework, Jason Short, 2005/04/04
- [Freeciv-Dev] Re: (PR#12706) Events framework, Per I. Mathisen, 2005/04/04
- [Freeciv-Dev] Re: (PR#12706) Events framework, Vasco Alexandre da Silva Costa, 2005/04/04
- [Freeciv-Dev] Re: (PR#12706) Events framework, Per I. Mathisen, 2005/04/05
- [Freeciv-Dev] (PR#12706) Events framework, Jason Short, 2005/04/07
- [Freeciv-Dev] (PR#12706) Events framework, Jason Short, 2005/04/07
- [Freeciv-Dev] (PR#12706) Events framework, Vasco Alexandre da Silva Costa, 2005/04/07
|
|