mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Strake <strake888@gmail.com>
To: musl@lists.openwall.com
Subject: Re: embedded newbies site.
Date: Sat, 3 Aug 2013 11:52:57 -0500	[thread overview]
Message-ID: <CAL3m8eDw-f4fTNPzAN4F+AvfYOfXbfAtPh272LvFS7o0Zx6Tcg@mail.gmail.com> (raw)
In-Reply-To: <1375338057.4211.7@driftwood>

On 01/08/2013, Rob Landley <rob@landley.net> 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.


  reply	other threads:[~2013-08-03 16:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16  2:03 Rob Landley
2013-07-16  3:18 ` Strake
2013-07-17 12:07   ` LM
2013-07-17 13:58     ` Rich Felker
2013-07-20 15:17   ` James B
2013-07-22 12:27     ` Andrew Bradford
2013-07-22  4:40   ` Rob Landley
2013-07-23  0:12     ` Strake
2013-07-27  0:58       ` Rob Landley
2013-07-27  2:01         ` Strake
2013-07-27  2:50           ` Rich Felker
2013-07-29 20:01             ` Rob Landley
2013-07-29 19:54           ` Rob Landley
2013-07-30  1:35             ` Strake
2013-08-01  6:20               ` Rob Landley
2013-08-03 16:52                 ` Strake [this message]
2013-07-16 11:50 ` LM
2013-07-16 13:56   ` Szabolcs Nagy
2013-07-16 14:00   ` Rich Felker
2013-07-16 17:49   ` Strake
2013-07-22  6:00   ` Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL3m8eDw-f4fTNPzAN4F+AvfYOfXbfAtPh272LvFS7o0Zx6Tcg@mail.gmail.com \
    --to=strake888@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).