Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68204 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8811 invoked from network); 19 Jul 2013 14:07:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2013 14:07:47 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.175 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:48835] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/75-13120-23849E15 for ; Fri, 19 Jul 2013 10:07:46 -0400 Received: by mail-ob0-f175.google.com with SMTP id xn12so5439120obc.34 for ; Fri, 19 Jul 2013 07:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bv8FABQ67cwAwMd3nywrkU5cS3x6roxPIVsAm0V4dNY=; b=0iDZTTEMsInEwqxy/2xm2eqG9d6V3KHWalCBBjLgHB35JniyZMZRJh5lfb8Hd3CWUe TTpgsGR5ifqEp4N/AW18nyIS7jECMcibVRePXrLM6t1IF5sj/p7C9wKL+3Qb/n5ghnpq yAFyCmuGe4PJ0ltz4tql1VTvjTSRZilCeNHcHH0jj7EYPoYhC0zjUlZMdMGfQvtiz/23 Fzk+pVPpnrCssp0yYRtVQLirW8eVLQalDSGYFrJN46x2LK8mwiFPcQGW2q1FpvDQh8Z+ fT2nELREbD2E14DeLUi1pmMkOF50nUcENc2HTpeZfF4XjDVcEYgf2hsOxqHaLepWI3NJ AqwQ== MIME-Version: 1.0 X-Received: by 10.182.241.138 with SMTP id wi10mr11971029obc.48.1374242863699; Fri, 19 Jul 2013 07:07:43 -0700 (PDT) Received: by 10.76.81.167 with HTTP; Fri, 19 Jul 2013 07:07:43 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 08:07:43 -0600 Message-ID: To: =?KOI8-U?B?4s/HxMHOIOvV2sXNwQ==?= Cc: internals Content-Type: multipart/alternative; boundary=089e01634d62b9dc0604e1ddd96f Subject: Re: [PHP-DEV] SPL Binary Tree, Graph From: morrison.levi@gmail.com (Levi Morrison) --089e01634d62b9dc0604e1ddd96f Content-Type: text/plain; charset=ISO-8859-1 > I would like to ask you what is your opinion about implementing Binary >>> Tree >>> and Graph data structures in SPL in addition to existing ones? IMHO it >>> would be great because that will prevent from inventing a wheel all the >>> time, and prove that PHP is full featured language like C#, Java, ... >>> >> >> Convince me with use-cases; I don't think proving that we're as >> "full-featured" as C# is helpful, healthy or necessary. > > Use cases I can think about are social, network, geographical, connected > flights graphs, work with hierarchical data like corporations structures, > products categories, indexing objects tree stored in memory/cache and PHP > web applications representing those relations and solving common problems > (has connection, shortest path, MST, recommendations in social graph, > search) > If you can extract a useful, common API for all of those tasks then I would definitely support implementing Graphs in the SPL. Maybe in a real world, because of PHP performance it probably will not be > so effective anyways If we end up putting graphs in the SPL then performance would be a big reason to do so; it would be written in C. --089e01634d62b9dc0604e1ddd96f--