On Oct 26 2016 6:53 AM, andy pugh wrote:
> On 26 October 2016 at 13:26, TJoseph Powderly <[email protected]> 
> wrote:
>>
>> so
>> why not just associate an tool with an index into a technology?
>
> This has to be part of any solution,because all that G-code knows how
> to do is to pass out a single integer, the T-number.
> From that point it is down to "something else" to deal with that
> number, and currently that is all encoded in iocontrol. [1]

Good point.

>> and the tech stored in simple ascii flat files.
>
> This is where we differ, I think. If we are going to expect system
> integrators to write custom ways to interpret the T-number then I
> think it is actually likely to be easier to have that encoded as a
> database query than to write a custom flat-file parser.

If the parser follows a standard convention like JSON, YAMML, or S 
Expressions, then you have the choice of maintaining the parser code or 
a separate database and the queries.  I have had almost nothing but 
trouble with applications which require SQL in its dependency toolchain. 
They work for months to years, and then an upgrade breaks the DB/app 
communication.  I have had much less problems with using custom YAMML, 
JSON, and S Expressions in a project as look as it is comes with a 
reasonable test suite.

> Also, you can add your own metadata into a database and a query will
> still work with whatever default query LinuxCNC is supplied with. If
> you add members to a flat-file (or set of several flat files) then I
> think you will break the parser.
>
> [1] The proposed tool-table changes will almost certainly kill
> iocontrol, as then that will only be concerned with coolant and lube
> outputs

I do not have time to study iocontrol at the moment to fully grasp what 
will be broken by the proposed changes.  Would you elaborate on this?


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to