[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
What is it that makes C so timeless? It's been 40 years,
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 11
Thread images: 1
File: K&R himegoto waifux2.png (1 MB, 1000x1400) Image search: [Google]
K&R himegoto waifux2.png
1 MB, 1000x1400
What is it that makes C so timeless?
It's been 40 years, countless languages have come and gone, and yet everything important is still being written in C.
The language never grew, but it also never decayed and grew bloated like modern languages did.
With the sorry state of modern languages like Rust, do you think people will still be writing C and reading K&R some 40 years from now?
>>
C comes from Basic which is a programming language created by einstein and isaac Asimov
>>
>>51925649
>yet everything important is still being written in C.
false, unless you have an incredibly biased definition of important
>>
>>51925693
Your cushy managed memory scripting languages and their interpreters are all implemented in C/C++, including your web browser.
>>
>>51925706
That's a stupid argument.

Just because a program is written in a language that has a C implementation doesn't mean the program is written in C.
>>
>>51925731
>has a
what if it's THE implementation?
>>
>>51925741
Still doesn't matter.
>>
>>51925751
then why are things like the JVM and the most popular python interpreter implemented in C?
>>
>>51925649
Everything lower-level than C died off because C offers equivalent speed with proper compilers and allows you to drop down to assembly inside a function when you really need to. Everything higher level is implemented in C or C++.
>>
>>51925782
Because C is awesome.

Still doesn't mean that things written in other languages are somehow now C.
>>
>>51925649
It's about as simple as a viable (and portable) procedural system programming language can get. Any lower and you're in compiler IR or assembly land; any higher and implementing it would require enough effort it would never have been available on so many platforms. Yes, it could be better, but many of its initial mistakes have been corrected in later standards and good compilers can spot errors related to some of its more ill-thought typing, syntax and precedence rules.
Thread replies: 11
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.