logoalt Hacker News

jstimpfletoday at 3:06 PM1 replyview on HN

You are again misreading even the most clearly put statement. Compared to e.g. Javascript, C is "closer" to the hardware, gives you "more control" of it. It would be completely ridiculous to deny this fact.

And if you move to e.g. C# / Java or similar, if you squint, and you try to be a smart-arse, then you could deny that C is closer to the hardware than C#, because C# probably has everything you need to control it, to the same degree that C allows you to. But if you work in these languages for a while, and look at the code that you ended up producing, then again you will absolutely find that it would be ridiculous to not admit that C gives you better control.

And you could even extend this to Rust, because the language encourages you to use high-level prefabricated components. It discourages you from doing low-level things, at least a little bit I think (I'm not a Rust user).

I think what you are doing all the time, is you are being a smart-arse, nothing else. What interesting low-level performant things have you actually programmed lately?


Replies

pjmlptoday at 3:22 PM

Smart-arse is comparing C versus JavaScript, instead of C vs C++, for example.

And then coming with such lengthy ad hominem.

Let make a fun exercise for the audience, given your performance remark.

Paste a random C code that I should replicate in whatever language I feel like.

There is one rule.

If the sample code is pure ISO C, then I will only use what is in the standard of whatever language I pick up.

If the sample code makes use of single language extension not part of ISO C, then I will have the freedom to also pick whatever language extensions I feel like.

show 2 replies