Re: [GSoC] Machine readable output from userland utilities

看板FB_hackers作者時間11年前 (2014/05/21 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/29 (看更多)
On Tue, May 20, 2014 at 10:17 PM, Erik Cederstrand <erik+lists@cederstrand.dk> wrote: > > > Den 21/05/2014 kl. 06.20 skrev Alfred Perlstein <bright@mu.org>: > > > In all seriousness though, the real target is people writing higher level languages (than shell) on top of FreeBSD. Perhaps python or ruby spawning a utility and then that utility making the output easy to read. > > If that's the use case, than I'm fine with this. I often find I need to combine Python and shell output (working with dates in shell is horrible, for example), and formalized output would simplify some scripts considerably. +1. As part of this, may I suggest structured version and version-transition metadata for the exported data formats? All formalized output should publish current and supported API version numbers, and deprecation/removal target versions of some kind. Tools would need to be able to request a specific API version number. This will allow tools that consume structured output to transition to new formats in a stable fashion. Scripts can check for deprecated API and start sounding the alarm in advance. For example, if I'm consuming top output, I can ask for "2.0 output", whereupon top could tell me that 2.0 output will be deprecated as of 3.0, and no longer supported as of 4.0. Today, human-readable and machine-readable are happening at the same time. More than once, when I've suggested output improvements, I've gotten the "too many systems are scraping this output for us to change it" response. This will really lay the groundwork to help with that .... someday. Worth the effort. Royce _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JV5Przx (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 29 篇):
文章代碼(AID): #1JV5Przx (FB_hackers)