[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Module release: Cassowary 1.0
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 7 Aug 2014 07:22:02 -0300
> Cassowary is "an incremental constraint solving toolkit that efficiently
> solves systems of linear equalities and inequalities."
Nice! Thanks for sharing.
You'll probably benefit from allowing Cassowary to be fed expressions in
ordinary mathematical notation "x < y", "y = x + 3", etc. Unfortunately,
metamethods cannot do the complete job, but minimal parsing, such as
splitting at "<" and "=", combined with metamethods can probably do the
job and make using your module more enjoyable. Alternatively, you might
use a preprocessor to generate Lua code or feed Cassowary directly.