From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3806 Path: news.gmane.org!not-for-mail From: Strake Newsgroups: gmane.linux.lib.musl.general Subject: Re: embedded newbies site. Date: Sat, 3 Aug 2013 11:52:57 -0500 Message-ID: References: <1375338057.4211.7@driftwood> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1375548788 11366 80.91.229.3 (3 Aug 2013 16:53:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 16:53:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3810-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 03 18:53:11 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V5f4o-0008Hi-AT for gllmg-musl@plane.gmane.org; Sat, 03 Aug 2013 18:53:10 +0200 Original-Received: (qmail 2032 invoked by uid 550); 3 Aug 2013 16:53:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 2024 invoked from network); 3 Aug 2013 16:53:09 -0000 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 :content-type; bh=ymGLrVXeYmlIHkkZdbu1G4WWD08qMaKVoHTzJIt6OX8=; b=JxG0TyqBWVaZfjERbDBidhVK9o/yKWturujXpfVxZtLJ7Prqh1oiFUAfF7tpw11SHW i8Hj53+8iFOTeO/JoVCzdfFZGc98BjBSJBW0/v6uAYHyI9pz2HoavyXcFEN3gA27Op// nsp58Cs+n1/F73tuxlRCWLpUYZNv1cSnhf+whZJ8aW0IK0Wpw1b3WyzOsIF9n2BI1+WU MH3HMBF5Mh92AmbgiEAVJgVV76ZbijWen5C2J7+kAQYeWeI7FowpymbZxLcgv2AFJy+I sxLsGK/Uzkw+d5fbnXnRmcXEZUJ/92lAmzNe86Z2lwtb42xKt0BWU057ZbDhN643wrco A2zQ== X-Received: by 10.180.198.44 with SMTP id iz12mr2141570wic.32.1375548777944; Sat, 03 Aug 2013 09:52:57 -0700 (PDT) In-Reply-To: <1375338057.4211.7@driftwood> Xref: news.gmane.org gmane.linux.lib.musl.general:3806 Archived-At: On 01/08/2013, Rob Landley wrote: >> I doubt it not, but I said nil of C++ and Java in that segment. > > You were using their buzzwords. "Polymorphism" isn't theirs; they just use it. >> Oh, it's surely possible, but at times forgotten. >> Too, (passing pointers, clearing errno, ...) to kludge over C's lack >> of (tuples|multiple return values) can break this. > > C is based on static typing and static memory management, with the > static structures, arrays, and pointers as its main data composition > mechanisms. Yes. Notably, it lacks tuples, which are essentially anonymous structures. > Scripting languages like python/ruby/lua use dynamic typing and dynamic > memory managment, which means they can include resizeable containers as > first class types. Well, yes, but dynamic memory allocation alone is enough; a language can easily have static types and resizable containers, for example Haskell. > So talking about kludging over C's lack of some feature is like saying > you're kludging over assembly language's lack of a feature. I can return multiple values in asm. I ought to be able to do so in C. > Using the tool that's fast while complaining about what makes it fast is silly. Not complaining about what makes it fast, which to my knowledge is imperative nature and explicit allocation. > I'm trying to figure out if "I didn't learn C using object oriented > buzzwords" means "you don't need object oriented buzzwords to teach C". It does. > That said, teaching C++ and thinking that means you've taught C was a > massive disservice to a generation of programmers. A mud pie is not a > beverage, even if you make it with bottled water. Heh. At Carleton University, in the first-year coding class for engineers, they teach a little C + iostream and call it C++. >> $ sort comparator argu ... >> >> where comparator is some program, and argu ... its arguments > > sort <(ls -f) I meant not what it sorts, but how it sorts it. > That said, factorization is still pure buzzword in this context. Please define "buzzword" so I can shun them in future messages. > It's been a while since they improved on the hammer. True, but not every fastener is a nail.