Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The C Programming Language

Name: Anonymous 2011-10-24 21:45

Let's have a thread for the C programming language. It's an excellent language.

Name: Anonymous 2011-10-24 21:51

C gets too much credit for being the `first' standard, portable programming language. FORTRAN 66? ALGOL 68? Hell, even the early Lisps were quite well standardized.

Where did this myth that C was the `first' come from, exactly?

Name: Anonymous 2011-10-24 21:51

no it's not

Name: Anonymous 2011-10-24 22:00

>>2
That's not why C gets credit. It gets credit because it's an incredibly versatile, simple, and has great syntax.

Name: Anonymous 2011-10-24 22:18

>2011
>still talking about C

mfw this is a text-only board.

Name: Anonymous 2011-10-24 22:23

C will be phased out once we figure out that squeezing the last drops of performance out of a single core is not a good idea and programmers in general stop being so resistant to learning new things.

Name: Anonymous 2011-10-24 23:15

>>5
polecat kebabs

Name: Anonymous 2011-10-24 23:24

>>6
Phased out for what? Java, C++, and C#?

Name: Anonymous 2011-10-25 0:02

>>8
no, something without imperative AIDS.

Name: Anonymous 2011-10-25 0:07

Name: Anonymous 2011-10-25 0:33

>>10
Eh, just looks like another HTML-to-PDF conversion. Might as well just find the original HTML file:
http://dhorizon.3x.ro/upload/Kernighan&Ritchie/kandr.html

My personal favourite copy is:
http://library.nu/docs/R2EUSNA6HW/

Does nobody have the original troff sources floating around? It would be trivial to make a `proper' PDF copy complete with the original diagrams, and I would gladly pay for a DRM-free ebook. They could dedicate it to Dennis Ritchie or something.

Name: Anonymous 2011-10-25 4:00

C hasn't been updated min decades, unlike C++0X

Name: Anonymous 2011-10-25 4:01

>>12
C hasn't been updated max decades

Name: Anonymous 2011-10-25 4:50

>>12
B-but there's C1X...

Name: Anonymous 2011-10-25 6:01

>>14
There's no C1X.

Name: Anonymous 2011-10-25 6:02

>>14
There's no C1X.

Name: Anonymous 2011-10-25 6:33

>>15,16
Habeeb it.

Name: Anonymous 2011-10-25 7:32

>>8
Go.

Name: Anonymous 2011-10-25 8:08

>>6
But C supports threads!

Name: Anonymous 2011-10-25 11:18

>>19
C supports everything+everything inline asm does

Name: Anonymous 2011-10-25 11:31

i just started learning C after a year of haskell and lisp.


this level of abstraction makes me want to die. everything is done with conditionals and loops wtfff

Name: Anonymous 2011-10-25 11:34

>>21
Make a `for_each' macro and understand pointers and structures. When you master C and don't fear to abuse the preprocessor, things can be pretty well abstracted.

Name: Anonymous 2011-10-25 11:45

>>21
Try writing inline functions and macros, use _msize and malloc_size for pointers.

Name: Anonymous 2011-10-25 12:19

When you write a line of C you have a good idea of how much actual work it's going to make the computer do.

e.g. with for (i=0;i<10;i++) a[i]=i*i; you have a multiply, a store, and a comparison.

The same thing in a more abstracted language might involve looking stuff up in a symbol dictionary, mallocs, creating objects on the heap, reference counting, garbage collection, blahblahblah, hundreds and hundreds of cycles.

That's why I like C, you know what's going on underneath.

Name: Anonymous 2011-10-25 12:59

>>24
And then, you're optimizer fucks uSegmentation fault

Name: Anonymous 2011-10-25 14:43

I suspect that this thread was created in order to draw the C-tards out of this thread: http://dis.4chan.org/read/prog/1319206002 and I think that it was about 60% effective

Name: Anonymous 2011-10-25 20:39

>>11
There was a partial TeX version posted on /prog/ a year or two ago.

Name: Anonymous 2011-10-25 21:57

>>26
>>language fight
>>i'm a real programmer

Name: Anonymous 2011-10-25 22:00

>>23
Try writing inline functions and macros, use _msize and malloc_size for pointers

That is really wrong. WTF? Are you trolling? Or are you just plain stupid.

Name: Anonymous 2011-10-25 22:02

>>19
But C supports threads!

Can you cite the exact passage in anyone of the the various C standards that mentions threads? Because for the life of me, I don't see any mention of them in any of the standards.

Name: Anonymous 2011-10-25 22:10

>>30
GO SCRUB MIDGET

Name: Anonymous 2011-10-25 22:42

>>31
You still haven't cited the passage that mention threads in one the various C standards. Could it be because threads aren't portable?! No way. Uh huh. Now tell us all what you do for a living again bitch.

Name: Anonymous 2011-10-25 22:49

I have a very serious question C. I see people dynamically allocate memory when the memory isn't variable at all. Why would they do this?

Name: Anonymous 2011-10-25 22:55

>>33
You ain't gonna get a quality C answer here. This is because 98% of the idiots only know know the loser language called lisp. Of those 98%, 80% working hourly general labor jobs not related to computer programming, and the other 18% just does shit jobs like maintaining software or writing simple test scripts.

Name: Anonymous 2011-10-25 23:07

>>34
4/10. The see me toolin, they hatin.

Name: Anonymous 2011-10-25 23:25

>>33

because they dumb

Name: Anonymous 2011-10-26 0:03

>>33
Probably because they want the object to outlive the scope of the function they're in.

Name: Anonymous 2011-10-26 15:51

>>37
That doesn't make any sense. That's not the best way to do it.

Name: FrozenVoid 2011-10-26 15:58

>>38
Best way: create a system of global static buffers with (lock/full) flags and write to them.
Easy way:malloc

Name: Anonymous 2011-10-26 16:02

>>39
fuck off and die you too

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List