Mail Archives: geda-user/2015/02/08/13:11:00
On Feb 8, 2015, at 10:44 AM, Chris Smith <space DOT dandy AT icloud DOT com> wrote:
>
>> On 8 Feb 2015, at 17:09, John Doty <jpd AT noqsi DOT com> wrote:
>>
>>> On Feb 8, 2015, at 9:41 AM, Chris Smith <space DOT dandy AT icloud DOT com> wrote:
>>> Yes! And that's the main point to using Lua for the data format. The data file _is_ the internal representation.
>>
>> In Lua’s representation. Not as a Scheme data structure. You have exactly the same problem the C implementation has: you must expose the data through a Scheme API. You’re not really solving any problems, just torquing the design to fit your Lua prejudice.
>
> I had thought getting rid of Scheme was one of the design goals, and in my view that is solving a problem. :)
We’re not going to throw away all those gnetlist back ends (I wrote another one yesterday). That would be disaster. But a pynetlist would be nice as an alternative. Lua’s only a good choice for a virtual EDA workshop inside WOW ;-)
>
> Joking aside, the issue is that the gschem format isn't native to any language,
Yes!
> and anything that uses it must parse it for it to be of any use.
But it’s trivial. The hard part isn’t parsing. Its the next step: transforming the data into what you need. Seriously, the .sch format is so simple that it you might as well consider it already parsed until you start talking about the specific needs of a specific application in a specific language.
> Any application parser (as shown by the netlister) is usually incomplete,
No, gnetlist’s parser is complete. It just doesn’t expose everything it parses through the Scheme API.
> because it's considered a waste of effort to parse features that you don't think people will want and it's difficult to predict how people will use it. By using a well defined format like Lua, /everything/ is parsed and made available because it /has/ to be.
No, now you make everybody deal with an FFI to Lua data structures. It’s not an improvement. You have to solve all of the same problems, and now you have an additional unnecessary software dependency.
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
- Raw text -