public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] [OT] pkgcore bikeshed (was Portage team)
  @ 2014-01-13 18:37 99%               ` Ciaran McCreesh
  0 siblings, 0 replies; 1+ results
From: Ciaran McCreesh @ 2014-01-13 18:37 UTC (permalink / raw
  To: Tom Wijsman; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

On Mon, 13 Jan 2014 19:27:36 +0100
Tom Wijsman <TomWij@gentoo.org> wrote:
> > Not an API. APIs are bad. What we should have is a good set of
> > lightweight Unix-friendly command line tools. See, for example, the
> > "Scripting Commands" section of "man cave".
> 
> It still is an API that way, just expressed differently

The term "API" seems to mean "library or communication interface" these
days (see "Git API" and the like). So for clarity, it's probably better
to make the distinction.

> if you would only do this you're introducing forks where you might
> not need them. Providing shell commands is one possible binding to
> the API...

Forks are far less of a big deal than trying to share a process between
programming languages. This is a *huge* deal when trying to integrate
modern C++ with languages with primitive thread-hostile runtimes like
Python and Ruby.

Unless you're doing a heavy GUI (in which case portability probably
isn't going to cut it anyway, without a far larger API than it's worth
providing), most of the cost for most of the use cases for this is in
the PM reading in configs and the like. The way around that is to allow
communication via pipes, still in a Unix-friendly manner. This can be
implemented nearly transparently.

-- 
Ciaran McCreesh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-06  5:33     [gentoo-dev] Portage team, Zac's development break and stepping down as lead Brian Dolbec
2014-01-13  3:07     ` Brian Dolbec
2014-01-13  8:39       ` C. Bergström
2014-01-13  8:43         ` Alexander Berntsen
2014-01-13  9:15           ` [gentoo-dev] [OT] pkgcore bikeshed (was Portage team) "C. Bergström"
2014-01-13 14:46             ` Tom Wijsman
2014-01-13 18:07               ` Ciaran McCreesh
2014-01-13 18:27                 ` Tom Wijsman
2014-01-13 18:37 99%               ` Ciaran McCreesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox