From owner-freebsd-questions@FreeBSD.ORG Mon Dec 22 14:20:49 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AA00F8B for ; Mon, 22 Dec 2014 14:20:49 +0000 (UTC) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27B0364770 for ; Mon, 22 Dec 2014 14:20:48 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id i13so1192353qae.13 for ; Mon, 22 Dec 2014 06:20:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jsl9m8nmplV/U0rzqWGNkf9hiOhgQ20DvoXNIPwTdxw=; b=jbh+4ddlfZnTtVjLqkDNKJi9m34cDxD5hW12deO8WPXO6hc/jdtm06S7ChhLnBzuXE L2kgwMm/FKun8d5mP3k8WEgx3iTDjn02YtoJb11gRUTnMcXXA8j1/jBYmMx8uj2gHyZI TZZcENnbsKd69pcXyhFyx+4plISyzdx2DS7Lj7zP0azLHFlyqpY1fEoJ1eP4lPqJ1Xw1 Gl/J03QMIOzf1YAMVcARHBlXXnD5HZSo0M3oOMOplTLzqx+jAzbMqhmot6QP7TgECmhF 4MfbOkZSRp5aEuRKk1WFQzON8oHu0huqxfbbUhKNw7PRi880hiMLrhkFnxWTVNBmdxs1 lPqA== X-Gm-Message-State: ALoCoQlrK2eYWCvLa6OVUCxUwF2vBoFvdKW/cd25jqyXZe5uJ5ZLW9IGtyBKpej2hOsdq9vZ62mT MIME-Version: 1.0 X-Received: by 10.229.97.73 with SMTP id k9mr36784634qcn.15.1419258042476; Mon, 22 Dec 2014 06:20:42 -0800 (PST) Received: by 10.140.19.17 with HTTP; Mon, 22 Dec 2014 06:20:42 -0800 (PST) In-Reply-To: <20141222020121.GA848@aio> References: <20141221155635.GA1388@aio> <20141221175658.3d574a88.freebsd@edvax.de> <549705CE.1050108@hiwaay.net> <20141221182108.GA860@aio> <20141221194937.aebe7233.freebsd@edvax.de> <20141222020121.GA848@aio> Date: Mon, 22 Dec 2014 09:20:42 -0500 Message-ID: Subject: Re: posix has been rendered useless, isn't it? From: Alejandro Imass To: Mayuresh Kathe Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Polytropon , "William A. Mahaffey III" , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2014 14:20:49 -0000 On Sun, Dec 21, 2014 at 9:01 PM, Mayuresh Kathe wrote: > > would you be in a position to suggest ways in which one > could have a c++ program follow unix principles? > yeah, you could just write a set of tools and utilities > which can communicate via a text stream and hence can > be toolchained, but then, c++ ends up becoming nothing > more than a better c (which is what it was originally > designed for), i.e. without using a object hierarchy. > > First of all C++ is not a better C is just a different language altogether. Second principles of OOP have been around for ever and has nothing to do with language but rather encapsulation and well defined interfaces. I.e. you don't need an object oriented language to do OOP. Thirdly, OOP is about code re-use and encapsulation, nothing to do with architectural or operating system design. I.e. you can use C++ (and in fact MANY Unix components are built in C++) to create Unix programs and utilities that are POSIX compliant. By the same token you can do OOP and even a complete OS with just assembler (e.g. http://www.menuetos.net). What is the topic of the discussion here? As mentioned earlier in the thread each problem is dealt with a different set of tools so it all depends on what you are trying to do; there is no one size fits all. Are you looking for the perfect, ideal architectural design? for what? in some cases the OS just gets in the way (e.g. micro-controller applications) and in other cases applications are built to take full advantage of the underlying OS. Portability is a myth and write once run anywhere is just fantasy, not even (or should I say _especially_) with languages like Java. So again I ask you, what is the topic of discussion here? Scalability, maintainability, the state of POSIX??? What is the objetive of this discussion? Best, -- Alejandro Imass