lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

>> Can Lua run within the real-time kernel?
>> Does anybody do such a test?
>Which real time kernel?
Xenomai. Did anybody run Lua within xenomai+linux kernel?

>> Is it possible to run Lua scripts on the controller for real-time control?

>In general, it's best to avoid languages with garbage collection for
>real time applications as they introduce far too much unpredictability,
>but it depends on how hard real time you are.  Things to consider are:
>will physical damage or monetary loss occur if you miss a deadline, are
>your deadlines measured in microseconds?
Basically, soft real-time is needed.






On Wed, Sep 16, 2020 at 3:04 PM Rob Kendrick <rjek@rjek.com> wrote:
>
> On Wed, Sep 16, 2020 at 09:39:34AM +0800, 孙世龙 sunshilong wrote:
> > Hi,
> >
> > Can Lua run within the real-time kernel?
> > Does anybody do such a test?
>
> Which real time kernel?
>
> > Is it possible to run Lua scripts on the controller for real-time control?
>
> In general, it's best to avoid languages with garbage collection for
> real time applications as they introduce far too much unpredictability,
> but it depends on how hard real time you are.  Things to consider are:
> will physical damage or monetary loss occur if you miss a deadline, are
> your deadlines measured in microseconds?
>
> If the answer is no to both you're probably fine!
>
> B.