[sdiy] Programming Language of choice
Nils Pipenbrinck
n.pipenbrinck at hilbert-space.de
Mon Feb 29 18:32:31 CET 2016
On 02/29/2016 05:49 PM, Jay Vaughan (ibisum) wrote:
>
> What I would also suggest: Lua. The Lua VM is extremely powerful and grants you the ability - if you organize things properly - to create a lower-level C-/Assembly- based substrata which can be easily programmed from a more coherent/abstract user space in the Lua language.
>
Has Lua solved the memory fragmentation problem?
The controllers I usually work with have plenty of flash so LUA would
certainly fit, but I only have little RAM.
In the past I've more than once run into problem where dynamic memory
allocations failed albeit enough memory was available. The problem was
that tiny allocations have spread over the available free memory
resulting in lots of tiny fragments.
This is something that rarely shows up during development but after
several hours or even days of use.
I'm now doing all into static allocation and don't touch the heap memory
at all anymore. Works great in C++ code if you plan ahead.
Nils
More information about the Synth-diy
mailing list