From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 17 09:14:41 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3CBC292 for ; Mon, 17 Mar 2014 09:14:41 +0000 (UTC) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A7F6D7BA for ; Mon, 17 Mar 2014 09:14:41 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id fb1so5480744pad.15 for ; Mon, 17 Mar 2014 02:14:41 -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=+YgaJPkcMxinvABYUcKSVXQHLE7nPU1RYdDEhntLDTc=; b=ufZlZc+ej71z4sn4+v5YE6bLYRZcoC3v+oISNfRQo6GgwTcglPNn3ezaz+x0z81ojR tFLf/FAf1sbrgLTS4kA2JkIo10txx8lwsMdf+/CNDyOW4IqeWKKe+7uHzPoRYDCDFwfx Gobubv6uHcfwPZC2JkZLGzW6AKfy5XBwelblgtEWCn4eL2Qaesk0cU7/mUpW/fURsCld zU1j5OefgGIwWxJ10pORVVszCqcVRmAOso6nf0/p+UJiWANfGRK2G5EPxevJG3CWAyxq AAGHI7A9nw0j4x4DLcnhRbKxvwfuDHeWaEW5DIJggwzJJQ1fHorgf+i6a/c7/NhFzVUW 6IDw== MIME-Version: 1.0 X-Received: by 10.67.5.131 with SMTP id cm3mr24993778pad.92.1395047681278; Mon, 17 Mar 2014 02:14:41 -0700 (PDT) Received: by 10.68.56.71 with HTTP; Mon, 17 Mar 2014 02:14:41 -0700 (PDT) In-Reply-To: <611B8DE5-F593-4574-96AB-0965CA7EDF33@yahoo.com> References: <20140317103830.53c42ade@X220.alogt.com> <611B8DE5-F593-4574-96AB-0965CA7EDF33@yahoo.com> Date: Mon, 17 Mar 2014 10:14:41 +0100 Message-ID: Subject: Re: Something related to C and C++ From: Johan Bucht To: by Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-hackers@freebsd.org" , Erich Dollansky X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 09:14:41 -0000 Working in higher level languages like Java, Ruby, Python and C++ does have some advantages to C and some disadvantages. There are always trade offs and there will always be languages closer to the domain that will be more elegant to solve specific problems. If you're mainly doing programming close to the hardware the abstractions from those higher level languages doesn't add much value and the runtime with garbage collection and more is something you probably need to be able to turn off. It's of course possible to implement a lot of the features in higher level languages in lower level ones, but the syntax will not be that suitable for it and you need to impose restrictions on yourself instead of the language doing it for you. For some tasks C is too high level and Assembler is needed but for most of the tasks any language will do and it's a matter of personal taste. /Johan On Mon, Mar 17, 2014 at 3:50 AM, by wrote: > Well, I think C++'s popular has something related to C's popular use, but > it contains too much, I prefer simple tool, do one thing, and do it well, > no more extras, and build a system with their combinations, at least the > base system. > > - by > > > On Mar 17, 2014, at 10:38, Erich Dollansky wrote: > > > > Hi, > > > > On Mon, 17 Mar 2014 10:20:55 +0800 > > by wrote: > > > > as C++ is C plus 'some' extras, just start with C. When you know C - > > which you have to know anyway to write C++ programs - you can add C++ > > to your knowledge. > > > > Never forget that object orientated programming is much older than C++ > > and can be done in most languages. I did my first steps in object > > orientated programming in 8080 assembler without even knowing that > > what I did will be later be known as object orientated programming. > > > > The little programming I still do is all done in C but using some of > > the 'addons' of C++. So, all my sources are .cpp files. > > > > Erich > >> Hi, > >> At first, I would say, I do not want to lead to a holy war between > >> programming languages, and I am a newbie in this field, but I am > >> confused about this, so I want get some answers or discusses from > >> here to help me thinking about this. I found that in IT industry, C++ > >> has more and more users, I can understand why they do this, C++ can > >> make them build system more easy than C does. okay, I just know a > >> little about C++, but in my feeling, C++ can make you do things in a > >> higher place. Yes, C++ is great, but for me, it is too difficult, or > >> I would say, it is too complicated. I got two books in my hand, one > >> is <>, another is < >> Language>>. Just consider from the weight : ) You can find something. > >> Language>>In the past, GCC use C, but now it turn to C++, and LLVM is > >> Language>>written by C++. Yes I prefer C now, and you may say, you > >> Language>>have not use these two languages deeply, how could you > >> Language>>judge them? Yes, I know I should not judge them, but as a > >> Language>>newbie, this is my very feeling, just like a kid first > >> Language>>looking at this world! Simple, but confused. At last, I am > >> Language>>not lead to a holy war between programming languages, I > >> Language>>just confused and want some related answers. This is it. : ) > >> > >> - by > >> _______________________________________________ > >> 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" > > > _______________________________________________ > 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" >