News for hackers. Stuff that matters.
Re:The Unreasonable Effectiveness of C by cageface on Thursday January 10, 2013 @10:11AM (#5037219)
C is a fantastic high level language.

Nonsense. This sudden C fad is totally baffling to me. C is a great language for low-level work and it does have an attractive minimal elegance but is in absolutely no sense of the term a high level language. A language with next to no standard containers or algorithms, manual memory management, raw pointers, a barely functional string type and minimal standard library and concurrency primitives is just the wrong choice for any application that doesn't need the kind of low-level control C provides.

Go ahead and jump on the bandwagon but don't come crying to me when you wind up with an unmaintainable mess riddled with security holes and fiendishly subtle memory errors.

Re:The Unreasonable Effectiveness of C by Thrymr on Thursday January 10, 2013 @10:29AM (#5037350)
> C... is in absolutely no sense of the term a high level language.

Of course it is. You're not worrying about how many registers your CPU has, or when you swap a register out to memory. All that has been abstracted away for you. The fact that you can access memory locations directly gives you some low-level access, but in a very real sense C is a high-level language. There are higher-level languages with more abstraction, of course. From the article: "It's not as high level as Java or C#, and certainly no where near as high level as Erlang, Python, or Javascript."

Re:The Unreasonable Effectiveness of C by ryeguy on Thursday January 10, 2013 @10:45AM (#5037483)
The problem is that the "level" of a language is relative to other languages. If C is a high level language, that means you can group it into the same pool as Java, C#, Haskell, Python, and Ruby. Don't you see a bit of a difference here? Unless there is a significant number of actual languages, not concepts, that are below C, it logically has to be called a "low level language" because there really isn't much below it but there are TONS of languages above it.

At the very least, it's something like a medium-level language. Grouping it with much higher-abstracted languages is just wrong.

Re:The Unreasonable Effectiveness of C by peterevans on Thursday January 10, 2013 @11:23AM (#5037785)
Here's the thing: "high-level", when applied to a programming language, has a historical context. It means something specific (see: http://en.wikipedia.org/wiki/High-level_programming_language), and what it means and has always meant is that the language in question abstracts away registers and allows structured programming (as in, through the use of if, while, switch, for, as opposed to using labels and branching).

It's fine if you want to call "high-level" relative. But it should be acknowledged that "high-level" is not simply a strict comparison between the features of one language and another. And it SHOULD be acknowledged that C is, by convention, a high-level language. Python is definitely a higher-level language, but C is still a high-level language.

Re:The Unreasonable Effectiveness of C by bunderbunder on Thursday January 10, 2013 @12:41PM (#5038418)
Here's the thing: The English language is polysemous. Computer science jargon even more so.

Meaning that any particular term can often have many gradations of meaning. So "X means Y" does not necessarily imply "X does not mean Z". Especially when Y and Z are similar concepts.

I suppose we could lament the inherent ambiguity of the jargon, but the truth is that for the most part problems only result when ambiguous language is used in combination with an argumentative person armed with equal measures of pedantic zeal and failure to grasp the fundamental characteristics of natural language. Without that element, for the most part any reasonably knowledgeable person should be able to figure out which of the particular meanings is at play from context. For example, even though the term "high level language" is used in multiple ways, the statement "C is not a high level language" is not all that ambiguous, even when considered in isolation. As long as you're willing to grant that the person making the statement is not an idiot, then it's trivial to determine that they weren't using the "everything but machine and assembly language" definition.

Re:The Unreasonable Effectiveness of C by saraid216 on Thursday January 10, 2013 @07:19PM (#5040618)
> polysemous

I did not know this word. Thank you.

Re:The Unreasonable Effectiveness of C by bcbrown on Thursday January 10, 2013 @12:19PM (#5038234)
Did you read the "Relative Meaning" section of that link? It specifically discusses C.
Re:The Unreasonable Effectiveness of C by peterevans on Thursday January 10, 2013 @01:29PM (#5038746)
Yes, I did read the section. And I'm not blind to the fact that languages will age, and there are certainly many, many languages more advanced and higher-level than C is now. I think that's good. It's a bit weird to me to see people who really never programmed in C, and for whom the concept of a pointer is a bit foreign, but time marches on.

I suppose my quibble is semantic at its heart. To say C is not high-level language may be an opinion, both valid and not without reason. But it may also show a lack of perspective -- some missing history. It's a lower-level language compared to many, without question. But it's still a high-level language, and I have not only my reasons for saying so, but evidence to the point.

Re:The Unreasonable Effectiveness of C by sbmassey on Thursday January 10, 2013 @02:12PM (#5039041)
Under that classification, what is a low level language then? Even Forth abstracts away registers, and allows structured programming (or a sort). Is the set of low level languages that people have heard of in 2013 an empty set?
Re:The Unreasonable Effectiveness of C by chipsy on Thursday January 10, 2013 @09:04PM (#5040967)
"Heard of", maybe not. But "working with" I can believe. A friend of mine was writing an assembler with a built-in arithmetic expression syntax last year.

Clearly it was low-level, because it wasn't trying to abstract away hardware - but it also wasn't just a straight-up (macro) assembly language, since it provided some specific features that needed a more sophisticated compiler to work properly.

When we speak of low-level coding, almost any abstraction can constitute a huge jump in power from the machine language.

Re:The Unreasonable Effectiveness of C by Evbn on Thursday January 10, 2013 @11:34AM (#5037866)
Yes, and refusing to update (human) language in response to changes in the computing landscape is exactly the reason C fanatics don't see the weaknesses of C.
Re:The Unreasonable Effectiveness of C by afandian on Thursday January 10, 2013 @11:03AM (#5037612)
You can do some very interesting things with function pointers, structs, unions and judicious use of void pointers. I would absolutely group it with Java. Not saying they are very very similar, but you can do similar things.

Now grouping Java with Haskell, that doesn't seem like a reasonable grouping.

Of course, it's all swings and roundabouts really. You can draw lines anywhere.

Re:The Unreasonable Effectiveness of C by betterunix on Thursday January 10, 2013 @12:26PM (#5038294)
"You can do some very interesting things with function pointers, structs, unions and judicious use of void pointers"

You can also do interesting things with straight assembly language. How does that make a language high level?

That you would ever deal directly with pointers is evidence that C is not really a high level language.

Re:The Unreasonable Effectiveness of C by Evbn on Thursday January 10, 2013 @11:36AM (#5037880)
Yes indeed, you can do some very interesting things like interpret the raw bits of a float as a character and crash or corrupt your program.
Re:The Unreasonable Effectiveness of C by afandian on Thursday January 10, 2013 @11:50AM (#5038003)
When you use void*s, you do so carefully. You can make mistakes in any language. You can get objects in Python that don't do what you expected because there's no type safety, leading to crashy behaviour (granted, no memory corruption). I think you might have misread my comment as "you can't make mistakes in C".
Re:The Unreasonable Effectiveness of C by rurounijones on Thursday January 10, 2013 @10:48AM (#5037505)
It may have been a high level language when it was a choice between ASM and C but the definition of "high level" has moved on. C is no longer a high level language.

Just like diamonds are no longer at the top of the mohs scale. C is no longer anywhere near the top of "high" in "High level" languages.

Re:The Unreasonable Effectiveness of C by sp4rki on Thursday January 10, 2013 @12:19PM (#5038233)
C is and will (probably) always be a high level language by definition. That it's categorized as a lower level high level language than say Python or Ruby does not magically make it a low level language. There are low level languages which map mnemonics to instruction sets and high level languages that provide an abstraction over having to use the former and are more akin to the written word. That hasn't changed just because we have "higher level high level languages" these days.

Langauge itself is a highly variable thing. People can understand something completely different from what the originator intended, but it doesn't change what said originator meant by it. People can always say "oh C is not a high level language because I think that a low level language should be X and Y" the same way they can say "oh men have to have a beard and know how to fight to be be real men", but in reality men - beards or not - are still fundamentally men.

Re:The Unreasonable Effectiveness of C by jerf on Thursday January 10, 2013 @12:59PM (#5038525)
A categorization that contains all but one language (Assembler) is not a useful categorization.

Besides, why die on this hill? So everybody suddenly concedes that, fine, C is a "high level language". Is anybody's opinions going to be changed? No.

So, how about we stick to useful definitions, and agree that in modern times C is a low-level language, and, likewise, understand that agreeing to that isn't going to change one letter of the C specification or remove one line of C's libraries or anything else?

There's no gain to be had by anyone in this silly line of argument.

Re:The Unreasonable Effectiveness of C by sp4rki on Thursday January 10, 2013 @01:40PM (#5038829)
But that's exactly the point I was trying to make, albeit I wasn't very good at getting it across the internetz. Assembler is not truly "one language" it's actually a collection of mnemonics that are all extremely similar but based on specific architectures and instruction sets.

The point I want to get across is that for you C is a low level language. To the guy programming a fancy toaster in whatever version of an Assembly language C is a high level language. To be anally retentive and follow your comment about the ranking of languages, if I follow that logic then the only two low level languages would be C, Assembly, and perhaps a compiler complier circa the early 70's that whose name I cant remember. The difference between Assembler and C is extremely jarring in comparison to the difference between C and Javascript (for example).

One thing to note is that C is used a lot for low level systems programming and because of it it's so commonly described as a low level programming language. That said, writing low level systems programs does not mean that we're exclusively using a low level language to do so.

Re:The Unreasonable Effectiveness of C by MichaelGG on Thursday January 10, 2013 @11:25AM (#5037800)
That's being deliberately obtuse. How many languages are lower level than C, besides assembly? If your ranking has every language in the "high level" camp, then your ranking is poorly calibrated.
Re:The Unreasonable Effectiveness of C by sp4rki on Thursday January 10, 2013 @12:28PM (#5038314)
Assembly is not one language (even if they all look very alike). It's a collection of opcodes or mnemonics specific to a specific architecture with a specific instruction set that map to the later. Even then writing assembly for MASM, TASM, WASM, or WhateverASM for Linux, Windows, or Winux (or whatever) can and will probably differ in structure and in the specific mnemonics used.

There's machine code, low level languages which are basically the plethora of different Assembly languages, and high level languages which provide abstractions to either or both of the former languages and resemble the actual written language. Putting C in the low level languages rank is doing a disservice to the language and not taking into account the bunch of people that program (for example) embedded devices in whatever architecture they're using.

Re:The Unreasonable Effectiveness of C by jlgreco on Thursday January 10, 2013 @03:13PM (#5039447)
> MASM, TASM, WASM, or WhateverASM

My favorite WhateverASM has got to be the "Single Pass Assembler".. or SPASM. I like to think the name was a backronym.

Re:The Unreasonable Effectiveness of C by sp4rki on Thursday January 10, 2013 @03:26PM (#5039526)
Hah! You deserve a billion upvotes because of the chuckles I just had remembering trying to explain the difference between one pass and two pass to a junior dev (which was completely irrelevant to our jobs at the time, I suspect he found something in Stack Overflow about it or something)
Re:The Unreasonable Effectiveness of C by xradionut on Thursday January 10, 2013 @01:20PM (#5038674)
Forth is the only language I'd place between C and assembly.
Re:The Unreasonable Effectiveness of C by unlogic on Saturday January 12, 2013 @03:22AM (#5046979)
Actually Forth is much higher level than C since it allows to define abstractions of any complexity in itself.
Re:The Unreasonable Effectiveness of C by revelation on Thursday January 10, 2013 @11:24AM (#5037788)
I think what constitutes a "high level language" changes with every few iterations of moores law, as it becomes permittible to add layers and abstractions and virtual machines on top of the old "high level".
Re:The Unreasonable Effectiveness of C by sageikosa on Thursday January 10, 2013 @11:38AM (#5037898)
High-level? Yes. Fantastic? Not so much. Dependable? Sure. Well-supported? Generally.

C is the Latin of the modern programming world.

Re:The Unreasonable Effectiveness of C by anonymfus on Thursday January 10, 2013 @12:39PM (#5038401)
> You're not worrying about how many registers your CPU has

But you need to worry about size of registers. How many modern languages have basic data types without strictly defined sizes?

Re:The Unreasonable Effectiveness of C by caf on Thursday January 10, 2013 @08:53PM (#5040917)
The C basic data types have minimum defined ranges, with the actual ranges being available as compile-time constants, and that's really all you need in almost all cases.
Re:The Unreasonable Effectiveness of C by ansible on Thursday January 10, 2013 @05:23PM (#5040168)
C is not a high level language, because it does not contain some abstractions that actual high level languages contain.

Here's a non-obvious example. With C, the programmer must always be aware of evaluation order. In fact, this must be specified even in cases where it is not important. For example:

    x = a + b;
    y = c + d;
Since the values x and y don't depend on each other, they could each be calculated in any order. However, with C, the programmer must explicitly decide on the temporal order that x and y are calculated (the order they appear in a function), even though it doesn't matter. And yes, the C compiler may decide to re-order those calculations under the covers as it decides (for performance reasons perhaps).

With Haskell, when you are outside I/O Monads and such, you don't specify the order of calculations like the above. Those two calculations may appear in that order in the source code, but the Haskell programmer knows that doesn't mean anything. The system may calculate x first, y first, or perhaps neither if those values aren't actually used elsewhere. Temporal ordering is not necessary (or desirable) under most circumstances.

You can never forget about temporal order in C, but there are higher level languages that allow this.

Re:The Unreasonable Effectiveness of C by jfb on Thursday January 10, 2013 @10:53AM (#5037551)
C wasn't high level when it was born, still less now.
Re:The Unreasonable Effectiveness of C by jsaxton86 on Thursday January 10, 2013 @10:25AM (#5037317)
You can wind up with "an unmaintanable mess riddled with security holes" in any language -- that's not unique to C. Regarding the flaws you have mentioned in C:

Its flaws are very very well known, and this is a virtue. All languages and implementations have gotchas and hangups. C is just far more upfront about it. And there are a ton of static and runtime tools to help you deal with the most common and dangerous mistakes. That some of the most heavily used and reliable software in the world is built on C is proof that the flaws are overblown, and easy to detect and fix.

Re:The Unreasonable Effectiveness of C by munin on Thursday January 10, 2013 @10:30AM (#5037359)
Security holes you wind up with in a Java or whatever codebase take the form of logic errors allowing for compromise of user information, or SQL injection or command injection. These are bad, they totally compromise data and systems.

Security holes in C applications allow for the injection of low-level programs. This is way more annoying, IMO.

also the static and runtime tools for C are good, and getting better, but still very far from being a replacement for writing code in a memory-safe language.

Re:The Unreasonable Effectiveness of C by jerven on Thursday January 10, 2013 @02:25PM (#5039140)
Agree and in C you still have all the bugs of the type that you describe for Java or whatever...

It just there is a lot of C out there which means we will see it for ever in our systems somewhere. It will get better over time as tools improve the existing C code base.

Re:The Unreasonable Effectiveness of C by betterunix on Thursday January 10, 2013 @12:24PM (#5038270)
"You can wind up with "an unmaintanable mess riddled with security holes" in any language"

Sure, but it is much, much, much easier to do in C than in other languages. By default you have unchecked array access, fixed width integers, strings terminated by a special character, and tons of exploitable undefined behavior. Writing secure code in C takes substantial effort, substantially more than in other languages.

Re:The Unreasonable Effectiveness of C by MichaelGG on Thursday January 10, 2013 @11:20AM (#5037761)
That's a misleading statement and I think you know it. In general, you have to go extremely out of your way to end up with a remote code execution exploit with Java or C#.

Look at Microsoft's CVEs for 2012. Approximately all of the serious ones would be impossible with a proper type system. This is after all of Microsoft's static analysis tools and code reviews and security focus.

Re:The Unreasonable Effectiveness of C by seiji on Thursday January 10, 2013 @10:27AM (#5037338)
In traditional circles (read: not rubymongojs land), C is considered a high level language because you aren't writing assembly or maintaining stacks by hand.
Re:The Unreasonable Effectiveness of C by rayiner on Thursday January 10, 2013 @10:41AM (#5037461)
Not in this decade... I used to do embedded programming and even we considered C/C++ to be somewhere in the middle, with Java being the "high level" language for our management software and C/C++ being the "low level" language for our embedded devices.
Re:The Unreasonable Effectiveness of C by mschaef on Thursday January 10, 2013 @10:45AM (#5037482)
Did you run Java embedded?
Re:The Unreasonable Effectiveness of C by rayiner on Thursday January 10, 2013 @11:09AM (#5037659)
No, we ran Java in the middle-ware.
Re:The Unreasonable Effectiveness of C by betterunix on Thursday January 10, 2013 @12:15PM (#5038199)
You are, however, dealing with pointers, memory deallocation, the bit widths of integers, etc. C as a high level language is a questionable idea.
Re:The Unreasonable Effectiveness of C by timbre on Thursday January 10, 2013 @10:28AM (#5037345)
The author makes the point more effectively when he writes "It's blown everything else away to the point it's moved the bar and redefined what we think of as a low level language."
Re:The Unreasonable Effectiveness of C by stcredzero on Thursday January 10, 2013 @11:08AM (#5037649)
> C... is in absolutely no sense of the term a high level language.

One problem with the term "high level language," is that it was coined many, many decades ago. C is a "high level language" like FORTRAN is one. Remember, when C was invented, programming via punch cards was still a routine activity in many shops.

This is why the assertion that, "C is a fantastic high level language," or even that it's a high level language at all is so controversial: It exploits a term which is so old, changing expectations have tectonically shifted the programming field into a place where there is an opportunity for surprise and controversy.

There are "high level languages" which are minimal, and those which are not. There are "high level languages" which offer a large amount of abstraction and those which offer less. Right there are two spectra which can be used to classify languages, and C is stuck near the extreme lower left corner. (A minimal language which offers less abstraction.) Then you have languages like Lisp and Smalltalk which are even more minimal, but which offer higher degrees of abstraction. When one says, "high level language," one is talking about a very broad category.

Which is why you can do this: http://news.ycombinator.com/item?id=5037315

Re:The Unreasonable Effectiveness of C by MichaelGG on Thursday January 10, 2013 @11:34AM (#5037869)
It's not actually controversial, it's just arguing about the definition. Change the phrasing to "C is fantastic abstraction over the machine, but it's not in the same high level like, say, Erlang" and everyone agrees.

The article uses an old standard as a little trick to try to put C in a category it doesn't belong.

Re:The Unreasonable Effectiveness of C by afandian on Thursday January 10, 2013 @10:27AM (#5037339)
It's not particularly controversial to say that C is a high-level language. Maybe a bit historical, but it hasn't lost any features since it was new and ultra-high-level for its time.
Re:The Unreasonable Effectiveness of C by mschaef on Thursday January 10, 2013 @10:49AM (#5037510)
> a barely functional string type

There's a string type in C? All I see are character arrays and a few (poorly thought out) conventions for using them.

Re:The Unreasonable Effectiveness of C by runarb on Thursday January 10, 2013 @10:59AM (#5037593)
It may be cumbersome, but C has string handling: http://en.wikipedia.org/wiki/C_string_handling
Re:The Unreasonable Effectiveness of C by deelowe on Thursday January 10, 2013 @02:21PM (#5039102)
This is an article about the standard library. C has no built in string handling. As an example, there are embedded systems that do no have support for string types due to a lack of support for libraries that handle it, yet they are 100% compliant with the C spec.
Re:The Unreasonable Effectiveness of C by caf on Thursday January 10, 2013 @09:01PM (#5040946)
The C standard library is specified as part of the language specification document. The language defines two kinds of implementations: "hosted", which must support the entire standard library; and "freestanding", which do not.

Those embedded systems that do not support the full standard library are 100% compliant freestanding implementations, but are not compliant hosted implementations.

Re:The Unreasonable Effectiveness of C by tedunangst on Thursday January 10, 2013 @04:47PM (#5039993)
How you can be 100% compliant with the C spec by omitting strlen is a mystery to me.
Re:The Unreasonable Effectiveness of C by dionidium on Thursday January 10, 2013 @10:57AM (#5037576)
Re:The Unreasonable Effectiveness of C by pjmlp on Thursday January 10, 2013 @01:41PM (#5038841)
Forget to place that NULL in the right place and boom!
Re:The Unreasonable Effectiveness of C by asveikau on Thursday January 10, 2013 @01:20PM (#5038670)
As someone who's happy writing C, has written a lot of C at work and at home, I have to say "C fad" sounds a bit weird.

What I see talking to people and looking at forums (this one for example) is the exact opposite of a C fad. Frankly I wish it were the other way. I encounter fewer and fewer people with C knowledge, and especially fewer people who say they are happy writing C. New college grads sure as hell don't graduate in large numbers knowing C, even if a good chunk of them can churn out acceptable Java.

Re:The Unreasonable Effectiveness of C by meaty on Thursday January 10, 2013 @10:41AM (#5037456)
That's why we have valgrind and glib.

At the core, a good language shouldn't really have any of these things you say built in - they should be built on top of the language itself.

Re:The Unreasonable Effectiveness of C by rayiner on Thursday January 10, 2013 @10:42AM (#5037467)
Having strings, containers, etc, not built into the language itself means that you can't practically use them. Libraries will all have their own incarnations, and as a result you get stuck dealing with the lowest common denominator of C arrays.
Re:The Unreasonable Effectiveness of C by oinksoft on Thursday January 10, 2013 @10:54AM (#5037554)
Re:The Unreasonable Effectiveness of C by rayiner on Thursday January 10, 2013 @11:07AM (#5037644)
The problem is choice. If you're writing a library, no matter which containers you choose you'll have users that chose differently. So you either require full buy-in for your framework (like GTK does with GLIB) or you end up exposing the lowest common denominator of functionality (C strings and arrays).
Re:The Unreasonable Effectiveness of C by jlgreco on Thursday January 10, 2013 @03:28PM (#5039534)
I've long been a diehard C fan, and I still jump at the opportunity to use it, but the realization that choice can be harmful has gradually pushed me away from C.

The problem of choice with libraries is really only the beginning though. Coding style/formatting choice, language feature choice (infamously an issue with C++; which subset of the language to use is the source of most trouble in C++ teams in my experience), build system choice, etc are all sources of trouble. Most modern languages cover some of these with various effectiveness, but miss others. Unfortunately, the popular modern languages seem to do rather poorly in these areas.

I find either extreme comforting. The reckless freedom that C offers is alluring, but the bondage of a batteries included language with strong idioms covering the entire system makes for better programmers.

Re:The Unreasonable Effectiveness of C by oinksoft on Thursday January 10, 2013 @11:48AM (#5037979)
And so this buy-in occurs at the library level rather than the language level. One might see that as a good thing.
Re:The Unreasonable Effectiveness of C by rayiner on Thursday January 10, 2013 @12:46PM (#5038449)
Those people would be wrong. When buy-in occurs at the library level, then the de-facto response is to fall back to the lowest common denominator, whatever that happens to be. In a language with standard containers, that lowest common denominator is a reasonable floor. Having containers in the standard library has basically zero downside aside from some perceived conceptual elegance. People who need custom containers can always define their own. People who just need to get a string from point A to point B, where A and B are libraries written by different people, can easily do so by falling back to the standard containers.
Re:The Unreasonable Effectiveness of C by dmpk2k on Thursday January 10, 2013 @08:58PM (#5040933)
I agree with this so much. A few years ago I realized that my C code wasn't longer or harder to reason about than most higher-level languages (yes, that factors in the memory management and even error checking), except for one thing: those languages came with built-in resizable arrays and hash tables.

I was grossly disappointed when the C11 revision had nothing about some default algorithm implementations in the standard library. If a C hacker needs something more specialized than those default containers, they can go write their own (they would have anyway), but for the rest of us it allows getting something reasonable off the ground relatively quickly.

APR and Glib are nice in theory, but most software shouldn't require such dependencies. Also, every C hacker I've spoken to has a different opinion about the quality and usefulness of those two libraries; most dislike the two.

Re:The Unreasonable Effectiveness of C by mpyne on Thursday January 10, 2013 @11:04AM (#5037628)
That's kind of the point. Why do you have to choose? Why isn't it possible with the language and its standard libraries? What happens when you mix APR code with glib-using code?
Re:The Unreasonable Effectiveness of C by matthiasv on Thursday January 10, 2013 @12:04PM (#5038112)
1. Because there is no standard defining that. 2. Because there is no standard defining that. 3. Nothing. Functions in both libraries are prefixed to avoid name clashes.
Re:The Unreasonable Effectiveness of C by mpyne on Thursday January 10, 2013 @12:54PM (#5038499)
The lack of standard for 1+2 is the complaint here. Prefixing in the libraries is a workaround to make it possible at all for their separate (but similar) basic types to co-exist, but the libraries shouldn't have to define sane basic types for these things. At most they should have to add extended operations.

But because they don't, it must be reimplemented in each library that needs them, which adds to code size and semantic overhead. Which might be helpful is for a good basic type library to be created which could be a common dependency for each (perhaps host it on CCAN), but the fact that this would be needed at all is the base complaint.

Re:The Unreasonable Effectiveness of C by hobbyist on Thursday January 10, 2013 @01:48PM (#5038888)
Isnt high level relative. I was once speaking to a friend who is an electrical engineer. While discussing some dsp stuff with him I explained some asm instructions, and suddenly he says you are going high level :) I am pretty sure if he speaks to some physics/semiconductor guy he probably will get the same answer back from them
Re:The Unreasonable Effectiveness of C by theootz on Thursday January 10, 2013 @10:27AM (#5037336)
C is (more specifically) a 3rd generation language, and when I was going through high school I remember it always being on the list of high level languages. It's more recently now I think, that we consider it otherwise...
Re:The Unreasonable Effectiveness of C by venomsnake on Thursday January 10, 2013 @11:47AM (#5037971)
C is not a fad. The sudden love for C is the logical backlash caused by the abuse of lasagna layer upon layer of enterprise oo mvc enabled, xml configurable, orm supporting, osgi friendly huge monolith frameworks. A whole generation of developers have barely known simple and small. And they got tired of big enterprise and are searching for something "not as clumsy or random as a blaster. An elegant weapon, for a more civilized age." . Maybe it is the wrong direction in which they are searching - but I think that C mastery pays off in the long term.
Re:The Unreasonable Effectiveness of C by johncarpinelli on Thursday January 10, 2013 @07:32PM (#5040665)
Totally agree. Learning object oriented frameworks gives me a headache. I learned C back in 1991 for first-year CS classes. Consider all the software built in C: Linux, FreeBSD, Apache, etc. It's the dominant infrastructure of the web.

What language will be used to build the first human-level AI? I think it will probably be C, and less than 1 million lines of code.

Re:The Unreasonable Effectiveness of C by Munksgaard on Friday January 11, 2013 @07:17AM (#5042356)
> What language will be used to build the first human-level AI? I think it will probably be C, and less than 1 million lines of code.

I don't think so, but I respect your opinion.

Re:The Unreasonable Effectiveness of C by michaelochurch on Thursday January 10, 2013 @11:04AM (#5037621)
C is a mid-level language and it dominates that space.

The high-level space still doesn't have a winner and it probably won't for some time. It has a lot of excellent languages that are all radically different (Clojure, Haskell, Python, Scala, Erlang) and each is really cool in some ways and very infuriating in others. C, of course, is really cool in some ways and very infuriating in others as well.

I've taken up learning C, and my feeling about it is that it's not a "jump in and figure it out" language, in the way that most technologies are, because you're absolutely right. Naive or "cargo cult" C is going to be a disaster from a security, code-quality, and production stability perspective.

For most technologies to qualify as safe, sane, and consensual, they have to be secure even when wielded by a programmer who cobbled together incomplete knowledge from a few dozen Internet articles about how to do stuff. Not C. There are "quick adoption" technologies with quick learning curves and "lifer" technologies that are quirky and hard to learn at first but provide long-lived knowledge. C is a lifer language. If you don't treat it as such, you'll faceplant.

Re:The Unreasonable Effectiveness of C by corresation on Thursday January 10, 2013 @11:19AM (#5037755)
C is hardly a fad given that it is the foundation for the vast bulk of software that you interact with everyday (if not the top layer, ones below it). But of course at some point there is a looping back when silver bullets fail to pay off in the longer term.
Re:The Unreasonable Effectiveness of C by Cacti on Thursday January 10, 2013 @10:32AM (#5037378)
"A language with next to no standard containers or algorithms, manual memory management, raw pointers, a barely functional string type and minimal standard library and concurrency primitives is just the wrong choice for any application that doesn't need the kind of low-level control C provides."

That's what libraries are for, numbnut.