Re: Programming Languages, "to C or not to C, that is the Q."

From: Michael Marsh (michael.a.marsh_at_gmail.com)
Date: 01/22/05

  • Next message: Rick Taylor: "Re: How to publish CMYK EPS on the web?"
    Date: Sat, 22 Jan 2005 17:30:05 -0500
    To: debian-user@lists.debian.org
    
    

    On Sat, 22 Jan 2005 16:55:02 -0500, Scotty Fitzgerald
    <sfitz007@bestweb.net> wrote:
    > I notice two basic interpreters under woody. Why no compiler?!

    I think most people view BASIC as more of a "toy" language than a
    serious one. On Windows, VB gave you easy access to graphical
    widgets, so its simplicity was appealing for simple programming.

    > I also notice that many of the "Wirth Bondage and Dominance"
    > languages (pascal, modula, oberon) have a program that "converts
    > to C" and then I guess you would compile the c program. Why
    > is this? I am guessing it has to do with porting (like, take
    > your C output and you can compile it for mac or windows or something._
    > Any other reasons?

    C compilers have been a lot easier to get on many platforms than other
    languages. Especially when you don't have root on a system, you have
    to work with what's available. Incidentally, the Gnu Compiler
    Collection (GCC) has a pascal compiler called gpc.

    > How readable are these "whatever to C" program's
    > output?! Can you see the subroutines in there, know
    > what they are in relation to what you wrote in, say,
    > pascal, and maybe tweak it in C? (I am waiting for
    > my library to ILL a book for me, "C as a second lang.
    > for Pascal users. Catchy title, huh?!

    Any conversion from one language to another is likely going to
    generate output that's pretty unreadable. You *might* be able to
    parse through it, but it'll be a bit on the painful side, most likely.

    > C does interest me, though for some reason object oriented
    > does not sound appealing ot me. However, I hear of it as
    > something that is not a true HLL. I hear it is more like
    > a "universal assembler" of sorts. I love being able to do
    > structured programming and I think I am better off with a true
    > HLL, am I wrong?!

    First, C isn't object-oriented. C++ is, sort of, and is essentially a
    superset of C (and my language of choice). Whether C is high-level or
    not depends on what you consider high-level. It's not *that* much
    different from pascal, though there are substantial differences in
    syntax. It's also easier to shoot yourself in the foot in C. I had
    relatively little trouble moving from pascal to C, aside from some
    confusion with parentheses.

    C has structures and functions, just like pascal. You can get into
    coding closer to the bare metal, but you can also build very
    structured high-level programs. Another benefit of C is that there
    are a *lot* of utility libraries available, though this is becoming
    increasingly true of other languages, especially the scripting
    languages like perl and python.

    -- 
    Michael A. Marsh
    http://www.umiacs.umd.edu/~mmarsh
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Rick Taylor: "Re: How to publish CMYK EPS on the web?"

    Relevant Pages

    • Re: [EGN] Numerical Accuracy
      ... The advice worked because in fact the Microsoft compiler had a bug. ... The capabilities of the optimizer are not so ... The language standard itself says ... of "programming" as a nonprofession. ...
      (comp.programming)
    • Re: Learning C++?
      ... >> abide such rules or there are people who don't know the rules. ... > programming is excellent, and its object-oriented support is quite ... code, like Java or Ada or what else, but no language can prevent the ... This is also something the compiler should be ...
      (alt.comp.lang.learn.c-cpp)
    • Re: Beyond CL?
      ... around in the internals of the language. ... as the programmable programming language; ... Eventually a bank of many users' optimizations could be ... approach the fabled "sufficiently smart compiler". ...
      (comp.lang.lisp)
    • Re: Error message about my user defined type
      ... write a compiler that allow a true VB7 to run on the .Net platform ... > COM programming all day long. ... > wide available to any programming language who wants to use them. ... > other than using the CLR and the MSIL. ...
      (microsoft.public.vb.general.discussion)
    • Re: Error message about my user defined type
      ... the type lib delivers to the compiler all necessary information ... COM programming all day long. ... wide available to any programming language who wants to use them. ... CLR and the MSIL. ...
      (microsoft.public.vb.general.discussion)