Looking for a Lua alternative
Martyn
martyn.developer at googlemail.com
Thu Dec 14 09:55:55 UTC 2023
On Thursday, 14 December 2023 at 08:57:47 UTC, Dom DiSc wrote:
> On Thursday, 14 December 2023 at 08:38:02 UTC, solidstate1991
> wrote:
>> I need a lightweight scripting language with integer support
>> that is either easy to interface with D,
>> or at least would be easy to port within a few weeks.
>
> If you are already using D, why do you need a scripting
> language at all? I use D mainly as a scripting languag itself,
> and is wonderful at this job.
I agree.
In the not-too-distant past, I wrote a Game Engine that worked
with a scripting language. I decided to use GNU Guile because:-
a) I like Scheme
b) I really liked GNU Guile's documentation. It flowed well when
writing.
Sadly, support for my game was stuck in GNU/Linux land. Trying to
get GNU Guile to work (atleast at that time) was a pain on
Windows. It was a shame.
In the end, my frontend was the same language as my backend code.
My engine would 'plugin' game logic using hot reloading. This
means I can change the code and reload while keeping my game
running, generally speaking.
It actually worked extremely well. It removed unwanted libraries
needed for a scripting language + kept performance high.
So if D is your choice of language.. It can also be a good choice
for frontend as well.
That is my best suggestion as an alternative. However, if you do
continue to find a scripting language that replaces Lua...I would
be interested in hearing your choice.
More information about the Digitalmars-d
mailing list