delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/06/08:41:04

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] A fileformat library
In-reply-to: <6C2FA19B-9B5C-4F6E-841C-4C3031BF9D2D@noqsi.com>
References: <1512221837 DOT AA25291 AT ivan DOT Harhan DOT ORG> <CAJXU7q_qxdvJaejF-VcY=u7VHZ-zrfrc+Z7-qSwfFyPdy-umxw AT mail DOT gmail DOT com> <B02363CD-469D-493A-AC15-1D5DC7836982 AT noqsi DOT com> <20151222232230 DOT 12633 DOT qmail AT stuge DOT se> <0F6F1D0F-4F07-48EA-90FE-836EAD4E2354 AT noqsi DOT com> <CAM2RGhTficnys3a4xs=UBFvk8aPwpzYWUADFLP_pUQ+R1iKs0g AT mail DOT gmail DOT com> <0FCF3774-F93C-4BFF-BB61-636F75DCCACB AT noqsi DOT com> <CAC4O8c_UAiFE-vGfoE2tXppHLhaa0dSYz9o_rkdCBo7_SRRtxw AT mail DOT gmail DOT com> <FFBE7623-E240-4798-96B0-2BECF56C8E29 AT noqsi DOT com> <CAC4O8c980g1gj15=5njstC_BT-WYDgKQx9BRycdFKA8OvgtiOg AT mail DOT gmail DOT com> <B54C0E1F-1986-4C79-9F70-7F1919B8B26D AT noqsi DOT com> <CAC4O8c9bxJP1eMG4yz3YwKkQJRmsDGmLQ0aMd5pJRyu0WpdCtQ AT mail DOT gmail DOT com> <C1CFCCEE-C64A-4E49-AA64-446C061656D6 AT noqsi DOT com> <CAC4O8c-zt8B=joDd+ws77D2jt6aZf3MWfR_dAvpzGcNuBrTURQ AT mail DOT gmail DOT com> <alpine DOT DEB DOT 2 DOT 11 DOT 1601030040320 DOT 2176 AT newt> <D9825C8C-B6FD-4C7F-A8D5-B8AF06253B72 AT noqsi DOT com> <CAC4O8c_R5xWLmzj_cz0g0mPWNs6mR4efjXKGBoup8YO6nwnPTA AT mail DOT gmail DOT com> <CAC4O8c8zk8=Py1yX6fVqF+35SYe39Li=! y4jZ8bC
eZ1Ev8WccAg AT mail DOT gmail DOT com> <20160105182120 DOT 3237F809D79B AT turkos DOT aspodata DOT se> <CAC4O8c8cVr1H3skmbGo4Rhf5ZTZj8bDxJw8a9C4qfHeGyXZ4XA AT mail DOT gmail DOT com> <20160106091006 DOT 5F67B809D7A1 AT turkos DOT aspodata DOT se> <CACwWb3CcsYJ9KgDFAa5pZqDzfTewhvbuatbxoKUp6PtHRCoa+w AT mail DOT gmail DOT com> <6C2FA19B-9B5C-4F6E-841C-4C3031BF9D2D AT noqsi DOT com>
Comments: In-reply-to John Doty <jpd AT noqsi DOT com>
message dated "Wed, 06 Jan 2016 07:36:18 -0500."
Mime-Version: 1.0
Message-Id: <20160106133050.C4148809D79C@turkos.aspodata.se>
Date: Wed, 6 Jan 2016 14:30:50 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

John Doty:
> On Jan 6, 2016, at 4:58 AM, Levente (leventelist AT gmail DOT com) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
> > You can have any difftool for git, so you can do visual diffs or
> > anything what you want, independent of the file format. (as of
> > today, we HAVE visual diff for PCB)
> And then what do you do with a broken file, with a little bit of garbled
> data in it? Text is more robust.

Ack.

> > You can write your own script in whatever language, as long as it
> > has bindings for the file format,
> But that's more work.
> > which is the case.
> Not for every language. Certainly not for every text utility.

Until someone writes that library and provides all bindings, isn't this 
discussion moot ?

> > When selecting a file format I would not have such constraints like 
> > "it should be pretty for a human eye".
> Not pretty, but comprehensible without processing.

But then, it is ofther easier to understand things that is nicely
formatted.

> > CAD data is so complex, that one can (and I believe should not) parse
> > them with naked eye. For a computer, binary is much more efficient.
> It's more efficient until something breaks (and something always breaks).
...

Step is for complex cad data, and it is a text format, so your claim is 
not fully valid.

> It's more efficient if you never want to use text-oriented tools,
> but for files with lots of text data, like attributes and file
> names, I generally want to use text tools to solve some problems.
> There are thousands of tiny problems that you can efficiently address
> in this way.

It is not efficient when debugging, and even if you have binary data,
you have to validate it, don't accept data at face value.

...
> > If file format changes, you have to just change one code, and not 50+.
> Not true, because the only sane reason to change the format is to
> change something in the semantics. That means that your common
> parser's API will have to change, and everything that uses it will
> have to accommodate that change.
...

Ack.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019