Wondering if C Programming Language is still alive?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

manly

Lifer
Jan 25, 2000
13,086
3,850
136
No. I didn't even know what to do with it. Just downloaded NASM. Ran it, it worked then googled how to link it and it just worked. Was pretty surprised. I didn't change anything in the code coz that would be too risky (would only try that inside a VM). Was just trying to create an EXE for each INT/FP instruction asm file that the original author had written. There are so many that it quickly became tedious creating OBJ, then linking, then checking how many iterations would be optimal (some finish too quickly so need to increase the iteration count for it to serve as a better benchmark). The cool thing was after creating 8 of them, I just ran this one CMD file with eight lines for as many powershell instances and each instruction runs on its own core. Poor man's multi-core benchmark :D

Gonna finish the rest when and if I get the time. And then testing on a more modern PC (running on i7-4770). Dang. Can't believe the work these CPU instruction geeks have to do for benchmarking.
I know it's not too late, but I wish I had learned ASM back in the day. When I was a teenager, this was my first book on Intel 8086 assembly:


In 2025, I will read the 4th edition although I have no plans to do assembly language coding anytime.
 
  • Like
Reactions: igor_kavinski
Jul 27, 2020
26,012
17,949
146
In 2025, I will read the 4th edition although I have no plans to do assembly language coding anytime.
Ah, so you will have at least more of an idea of what the heck is going on in the code I'm compiling.

I got this DOS programming book in my teens without knowing anything about programming. It looked really cumbersome like do something with interrupt 21h or whatever then look in this or that register and based on value you find, decide the next step etc. Would've hated being a DOS developer (not that I would want to even now. It's a hobby. Professional software development seems too stressful).
 
May 11, 2008
22,218
1,409
126
Please don't mind but such as? I'm deeply curious.
Adjusts the make file, the linker file, creates folders with a consistent naming convention and all other stuff that is neede to change a for a human C-code readable file into machine language instructions. Nothing special. Every programmer can make this easily. Or use cmake. But i am getting too old and too quickly tired to keep track of everything these days.

I know people who use chatGPT a lot. Everybody thinks it is AI. Indeed it is very good but i still have this awkward thought : Autonomous Indian. :laughing:
I always have the feeling that there is a large building with a huge basement to be found somewhere in New Delhi where a lot hard working Indian people with talented skills, write code and give answers to chatGPT questions.
 
  • Haha
Reactions: igor_kavinski

NickTech

Junior Member
Jun 28, 2025
1
0
6
Assuming unsafe use of pointers is the issue, their use can apparently be avoided: https://www.codewithc.com/c-without-pointers-exploring-safer-alternatives/?amp=1
When I worked on a project written in Delphi, I implemented some kind of my own smart pointers. Technically, a smart pointer is a regular object (class) which references to another "target" object, which is a wrapper for a "smart pointer server" object. When the "server" object is destroyed (for any reason), it notifies its clients (i.e. smart pointer objects) and they reset their ref. to Nil. Since any code that works with the referenced objects always checks if the ref. is not nil, it never generates "access violation" errors. I have not read the article yet, but assume a similar technique should be used by smart pointers in C++?
 
Jul 27, 2020
26,012
17,949
146
I have not read the article yet, but assume a similar technique should be used by smart pointers in C++?
I just looked at the article. Cringe-inducing. Someone trying to show off her knowledge rather than actually trying to instruct. My mistake.
 
  • Haha
Reactions: manly

manly

Lifer
Jan 25, 2000
13,086
3,850
136
I just looked at the article. Cringe-inducing. Someone trying to show off her knowledge rather than actually trying to instruct. My mistake.
Dear god, that was bad. I don't think she's trying to show off her chops (I get you, she's dropping all this vocabulary everywhere, but it's all completely shallow). It was more like a weird form of being cute. Emojis everywhere says a lot!

Must remember to never visit that site again.
 
  • Like
Reactions: igor_kavinski