r/C_Programming • u/Evil-Twin-Skippy • Jul 10 '26
Just a post from someone who actually programs in C
Hi folks. We all know the frustration that comes from the popular topics in this thread largely being:
- AI Karma farming
- Beginners asking the same questions over and over again
- Tech-Bros who are convinced that Greybeards are dinosaurs with nothing to contribute to modern IT
For a change I want to invite the folks who actually use C in this modern era to explain what the use C for, and brag a little bit about why that is cool. Or perhaps vent about "Kids these days..."
472
Upvotes
56
u/sorceressofmaths Jul 10 '26
I'm a firmware engineer and I've been using C for 15 years to write firmware and embedded software. I've always enjoyed working at the boundary between software and hardware and C is a good language if you want to have a clear idea of how your software translates into what the hardware is doing.
40
u/Evil-Twin-Skippy Jul 10 '26
I'll start:
I pay the mortgage by maintaining an expert system that does system-of-systems simulations for warships. And one of the most complex systems on board is the crew. Yes it's blue dots running across vector graphics that resemble deck plans. But we still get great data out of it.
The application is essentially a Tcl interpreter that we have pimped out with our node/edge systems model and a Dijkstra route solver moving dots between convex polygons. The original developer was D. Richard Hipp, so a lot of the niftier features of the Tcl binding for Sqlite were basically created to support this application, as well as an earlier project (automated common diagrams) by the same company.
42
u/BlueSteel5616 Jul 10 '26
I am struggling my way through c to program a Pokemon game
13
u/tom-da-bom Jul 10 '26
Well, for what it's worth, anyone who uses operating systems and drivers are using things written in C...
I think C is just invisible to most people these days. 🤔
10
u/Fujinn981 Jul 10 '26
Can we send all the tech bros to another planet? The world would be much better off. I'm relatively young (30), and I love C because it offers me a great level of control as to how I put a program together. It's performant, the language is simple and powerful, it's still used all over, and it's a great gateway into low level programming and understanding how computers actually work.
It's fast to write, extremely well documented, not bloated at all, has many great cross system libraries available, there's many solutions you can employ to deal with a problem, since it's used all over some one will always need a C programmer. It's also pretty easy to make it work together well with other languages. There's a reason why its been the backbone of software for a very long time. It's a solid and practical language that does everything it needs to do, and nothing more.
18
u/melancholious_jester Jul 10 '26
Kids these days don't know how much power I had in not letting the system crash due to a memory leak.
If someone pissed me off i would sneak in a free or reference something out of bounds cos only I knew it all.
232
u/codydafox Jul 10 '26
5
u/TwystedLyfe Jul 10 '26
I use C to write a DHCP client and server.
The client has zero dependencies (it has some optional ones like udev) and is architected to support privilege separation and kernel level sandboxing. All the major OS's are supported other than Windows and it's even getting Hurd support soon.
The server is configured by plugins (auto plugin has zero dependenceis) and has one for LUA to allow a scriptable configuration.
Both solutions use a very small amount of memory (I think only busy box udhcpc uses less).
Why is this cool? Because the DHCP client part has tight bindings to the kernel and can take advantage of features available based on supplied system headers and mostly reach to when the headers are newer than the kernel so it can fallback. This is also important as we can detect the kernel version to work around bugs or limitations in that version. This is impossible at a framework level as most frameworks abstract this part away.
Why is this cool? Because most frameworks don't go down into most OS level sandboxing such as SECCOMP, pledge or Capsicum - I think the exception is go but then go has a lot of things wrong with it's route(4) support on some OS ....
The bottom line is that when you start to get into "I want to use this new cool kernel feature" territory you have to hope your framework / language of choice has good C bindings or you need to implement it yourself.
If you ever want to work with embedded systems then it's either C or assembly or you're buying more RAM and in todays world that will cost you.
5
u/PoochieReds Jul 10 '26
I work on the Linux kernel, the foundation of most modern computing, which is almost entirely written in C.
8
u/bongjutsu Jul 10 '26
I have always had a reverence for C, but never got to use it while I worked in various realms of IT. Now that I'm no longer actively working in the industry, I still have that reverence and wish that I "knew C" but now I rarely have a reason to code, so it's difficult to get the ball moving. The few things I do utilise code for are mostly better being shell scripts. Ah, C, the one that got away.
4
u/Savage_Crowbar Jul 10 '26
Embedded systems in automotive. I code safety critical drivers for one of the big auto chip makers. No malloc involved.
There is a lot of certification involved which consume half the time, but the other half is actual coding, bug fixing and feature implementation. It's a nice job, even though the pay is not as high as in other fields.
The only downside is that oftentimes I get stuck doing the same thing again and again and I need to spend a lot of time outside work to learn other stuff.
3
u/Ok_Spring_2384 Jul 10 '26
I am finding comfort in C after years of iteration on web development. I started young on pre php 5.0x and moved plenty through early JS stages until the point in which I landed in different web based stacks, I’ve probably worked on most JS frontend frameworks(and boy there is a lot of them)
I don’t necessarily like it anymore. So C and low level graphics programming it is. I am using C to teach myself graphics and game development. It has been fun, but sometimes I wan to use c++ for the sake of the std::vector<>, which I know to be heresy so I stick to C.
Learning proper memory management and data oriented game design has been a mind opener. And I have honestly learned more about programming than I ever had with any of the web programming languages I used(perl, python, ruby, php, js, java, c#, go so far) Note that I know that they are all general purpose, but I have used them in web related context only.
3
u/CreideikiVAX Jul 10 '26
To the three points:
Onto more pleasant topics: I use C for application development. Because I enjoy C as a language
I might also be a masochist. Although I'm currently deep in the weeds on some "side quests" involving writing some libraries.Also I'm working on a not entirely useful guide on writing multi-lingual ANSI C plus FORTRAN 77 programs. Because there's a good amount on how to do ANSI C plus Fortran 90 and above (because there's an explicit mechanism for foreign function interfaces in F90 and above), but in FORTRAN 77, you need to do some jiggery-pokery.
141
u/Dr_Calculon Jul 10 '26
Embedded real-time systems with resource constraints. I’ve used C++ but it gets too abstract for me (not saying it’s a bad thing btw) & I end up pretty much just using C. Recently gave Micro Python a try - uuughhh.
C makes sense at a register, clock & memory level, at least to me.
2
u/Tillua467 Jul 10 '26
I feel like I am so used to the way I write C I just don't find the appeal in another language, I would rather write a new Library to work with than switching to another language, you may call me lazy for not learning new languages but I am not letting my C go! Tho I am looking at assembly a lot these days I find it interesting too like I want to work with low level stuff so yeah I have no other choice but to learn assembly to learn computer better. Also it's quite fun to to compare my C code with asm it's looks cool how things work under the hood
2
u/pdp10 Jul 10 '26
We use C for low-resource services, primarily related to networking and communication.
Our build matrix uses several toolchains, because C is a standardized language that's not defined by its implementation, and a variety of targets.
LLMs offer the potential of programmers working more with C directly, because LLMs can assist with the verbosity and explicitness of C, while taking advantage of a giant corpus of public code as learning material.
2
u/brewbake Jul 10 '26
C has been my mainstay for over 30 years. I was lucky to have a long career in SWE using it until the last employer finally laid all of us off. Since then I have been in semi-retirement working on my personal projects that I never had time before.
I have done everything in C, from embedded to large servers to TUI to UI.
I'm the opposite of most devs, I'll only use another language if I have to. After all these years I have written my own libraries and wrappers for everything I need so I can code at quite a "high level" in C. For example, I have a string library that manages its own growth and supports many convenient string manipulations. I have a wrapper around libcurl that returns responses as the string type, a wrapper around cJSON that can parse and retrieve values in my string type and a wrapper around hiredis that does the same. Thus, accessing a REST JSON API and storing / retrieving data is really easy and fast.
2
u/Icy-Garlic-748 Jul 10 '26
I use c to modify video games I like which I think is pretty cool.
2
u/poorinvestor007 Jul 11 '26
I think I fall in the "kids these days" bucket, with only 7 years of experience. But I've been writing and going deep in C for the last few months, we're writing a custom tcmu handler for block device abstractions.
Its very different, even coming from working with C++ for the last 5 years, but I am enjoying having to zone-in and read a lot of code instead of just generating it through AI. Trying to do things the hard way, but I am doing this as my employer has an outside consultant, who's the real boss at C submitting 5k+ line pr's in days, and I'm having to review it. I'm also afraid that if the consultant decides to retire(he's really really experienced) or move on to a new project, I'll be left to maintain and lead my team without his help.
94
u/Run-OpenBSD Jul 10 '26
Raylib is amazing, I still love K&R. Rant over
33
u/ernesernesto Jul 10 '26 edited Jul 11 '26
I make a game entirely in C. Wrote about it on this subreddit a few times, compile times is subsecond and made the entire iterative process of making the game enjoyable rather than using unity or unreal
20
u/WillisAHershey Jul 10 '26
I use C to write firmware for microcontrollers in standalone devices. Think of devices like microwaves. Monitor incoming button presses, control some lights, beepers and LED displays, turn the magnetron on and off, spin the plate. (I don’t actually work with microwaves but it’s the example I use to explain to people what I do.)
The obligatory reality no matter what the haters say is that C *IS* the perfect tool for this kind of work for a myriad of reasons but I’ll touch on the two most important:
C gets a lot of hate because it doesn’t hold your hand like a lot of modern programming languages do. If you want to shoot yourself in the foot, C will absolutely let you do it. Modern compilers like GCC do their best to warn you when you do something crazy, but it’s ultimately up to the programmer to be sure they know what their code is doing. We’ve probably all seen the meme of the C programmer who cuts his leg off to run faster because he’s “lighter now” but a good C programmer understands what can be cut off to be lighter and still get the job done.
This I think is the crux of the issue. C has an insane learning curve. Unlike other high-level languages like Python or Java or even C++, you do have to have a pretty decent understanding of how computers work at the instruction-set level to truly be a good C programmer, and if we just let all the world’s novice programmers push to prod in C, there will absolutely be serious security vulnerabilities and memory leaks and segfault conditions in their code.
But that’s what makes us good C programmers special. When you write it in C, you have to do it correctly, and the language won’t coddle you about it. But the end result is a smaller and faster binary than what an equally experienced programmer using a “modern language” will produce, and in certain applications that’s absolutely what is needed and necessary.
In my extremely biased opinion software devs who genuinely hate C fall into three categories 1) devs who never had to use it and therefore really don’t know the language well enough to find it useful, and can’t see the real world use-case 2) devs who got shot in the foot because they didn’t know what they were doing in C and moved to a different language where those problems stopped for them and 3) devs who probably don’t have the chops to be truly good at writing software in the first place.
17
u/Practical-Sleep4259 Jul 10 '26
Would be nice if r/embedded r/chipdesign r/FPGA r/arduino r/ComputerEngineering r/cpp r/cpp_questions r/retrocomputing and ya know, just naming a few, but would be nice if anyplace banned AI topics.
Because yeah it's all ads.
The guy concerned about AI in the future is an ad, the guy building his first OS with AI help is an ad, it's all just ads once you let it control the entire subreddit.
5
u/LeadBrogrammer Jul 10 '26
I love C. Been programming in C for my entire game dev career while everyone else moved on to C++, C# etc.
I built my own game and engine from scratch and it’s been the highlight of my personal work so far. It runs on everything.
https://store.steampowered.com/app/4666890/Gobs__Gears/
5
u/iwaslovedbyme Jul 10 '26
My teacher forced me to solve tasks without using <string.h>. Thank you man
5
u/tobdomo Jul 10 '26
Deep embedded guy here. I confess: a grey beard I am.
I currently do small sensors that communicate through radio and need to run for 7 or 8 years on a single battery. Created a number of small systems over the years, C is my goto language for almost everything that is small, low-resource.
Horses for courses though. If possible, use C++ or Rust. Python even.
2
u/Run-OpenBSD Jul 10 '26
We just want to talk about our opinions, please allow people to talk.
4
u/AlternativeAdept5348 Jul 10 '26
There is a hyper accurate gameboy and gameboy color emulator called sameboy that is open source and written in C
4
u/petecasso0619 Jul 10 '26
I use C on embedded real-time bare metal systems, like missile systems and other military grade types of systems all the time. Also use C++. Depends on what exactly is supported and what I am doing. I love both languages. They are tools and I use them that way. I use C especially for the device driver layer, it’s so well supported that I never care what hardware the hardware team chooses. C will be supported.
1
u/Parchedlemming Jul 10 '26 edited Jul 10 '26
I’ve used C for a few now mostly in my intro and data structures classes but I really fell in love with it when we used it in Operating Systems. I was so fascinated by how all the Linux programs were all written in C and I, too, could write my own OS and Kernel and control how efficient my program is. That was way more powerful than the python and JavaScript I used in previous classes. I also picked the Linux internals book and the OSTEP book and continued to read them. I also started looking into making a contribution to one of the drivers in the Linux Kernel.
However, what sucked was when I was looking for entry level jobs that use C. Most at the time, a few months ago, wanted an EE/CE degree or wanted a lot of years of work or Systems experience that I didn’t have (lol at Apple Hardware). And my work experience is in web dev too which makes it harder to sell the “hey, I can do C, too” to recruiters and automated resume readers. So, I gave up on finding work in it and just do C on the side.
1
u/MsRiaCayde Jul 10 '26
1
u/Grumpy_Doggo64 Jul 10 '26
I am the software engineer at my own startup and use it alongside cuda to boost efficiency in FFMPEG and video rendering routines.
The whole ordeal is mostly just python and JS/TS. But C is my favourite language and I want to use it every chance I get.
Other than that I like fiddling with computer memory and drivers and even trying to get into game-dev (trying to make caravan from fallout, the card game. In OpenGL) but that's just hobbying and sort of irrelevant to the thread
1
u/goombrat2 Jul 10 '26
OP's obsession with Tcl is hilarious
1
u/neopunk2025 Jul 10 '26
Jai codé mon pack de jeu Arcade sur Meta Quest (www.neopunk.xyz). Je me sentais parfois perdu. Indécis dans mon approche. J'ai commencé mon nouveau jeu (95% en C) et je me sens vraiment à l'aise : c'est comme s'il y avait un minimum de règles de jeu, pas de fioritures, pas de tempêtes à la con. Juste du code. Et je m'amuse beaucoup !
1
u/Nooxet Jul 10 '26
Embedded engineer here.
Some projects that I have worked on with C:
And a shitload of hobby projects including AVR, STM, to Pico, and ESP32. Mostly in C, sometimes C++, but also Zig
One project I used an Attiny with 256B RAM (yes you read that correctly). It was mostly in optimized C, and some hand coded ASM.
1
u/rsx0806 Jul 11 '26
is this AI post
3
u/Severe-Zebra7551 Jul 10 '26 edited Jul 10 '26
I do embedded engineering. Writing C code for very small computers (microcontrollers) that live in nearly all modern electronic devices. My company makes devices that makes playing sports safer for children and adults.
I think AI tools that help write and debug code ARE a big deal and do increase productivity. You still need to review and test the output from AI, but their value is undeniable for my team.
3
u/UltimaN3rd Jul 10 '26
I switched to C in 2019, and since then made my own game engine and released my games on Steam! Everything's written in C (except the MacOS stuff in Obj-C, and Windows Xaudio stuff in C++).
3
u/mykesx Jul 10 '26 edited Jul 10 '26
I started making games in Fortran IV for mainframes, got hired to port those to a small company's operating system (all operating systems need games they said), then was the guinea pig for the company's new C compiler. That compiler turned out to be Lattice C. The author of the compiler gave me my first copy of K&R, which I still have. Copyright 1977.
I am wary of AI because I have always felt that creating software is an art. The art will be lost if nobody is practicing it anymore. There is great fun in creating software - I have done it since high school and don't intend to stop until I can't use a computer anymore.
That's scratching the surface. The data centers are a blight on the planet. The technology is based on plagiarism. The people who use it are commiting fraud by saying "I built..."
I am suspicious of a lot of these recent "beginner" questions because I can tell that they are bots or people posting to elicit answers from our knowledge for the sake of training AI. You can see it in the post history of the posters - less than a month account life and nothing but these kinds of questions across tech and programming communities.
3
u/EvilIPA Jul 10 '26
Part of my work is to develop embedded systems for safety critical environments. There is nothing better than C for that kind of jobs. The simplicity of the language and the low level control it gives is unbeatable in this environments.
3
u/Daveinatx Jul 10 '26
Embedded real-time systems, with an expertise on FPGA data transport and high speed distributed systems.
For a number of years, I was also providing operating system security in the kernel
3
u/zweiler1 Jul 10 '26
Prototyping runtime details for my own programming language since C is just... it just feels good. I write my language compiler in C++ and i am very productive in it, but something about prototyping low level stuff in C just scatches a very specific itch that C++ simply doesn't (i guess it provides just way too much high level stuff irrelevant for that task).
I always end up expanding the prototypes into "nice little C libraries" too which nobody will ever use, but that's okay... i just like making them.
Edit: I also wrote an interop library in C which the compiler actually uses too, so it's more than just prototyping.
3
u/voidpo1nter Jul 10 '26
I have a large state machine at work and want to give whoever came up with the "..." between cases a giant hug. Thank you, fellow nerd stranger.
1
u/Argasio Jul 11 '26
Firmware Engineer here I use C and sometimes C-styled C++ ( C++ 03 style also called C+ ), I feel like C simplicity is synonym of freedom, freedom from over Rust and modern C++ overly complicated and unreadable synthax, freedom to easily navigate code, freedom to easily modify code without worrying about 300 abstraction layers, Freedom from dependencies, C's freedom is priceless and I would not trade it for anything else. For anything C can't do conveniently, there is Python.
2
u/paddingtonrex Jul 10 '26
I've barely touched it since school, but remaking readelf really changed how I view data structures and computers in general.
2
u/gotgoodendinginSoTC Jul 10 '26
I am writing my own voxel game engine in C to make a few voxel games I have in mind. I have the rendering pipeline in a good basic 1.0 state. Right now I am working on multithreading the world generation and subsequent mesh generation for each chunk of voxels, chunks are 323 cubes. I think once that is done I just need to make some menus and test collision a bit and I will be ready to send out demos!
2
u/coffee_swallower Jul 10 '26
i used to work at a low latency trading firm and the trading systems were all built in C. it was amazing to work on such a large C code base that literally could not crash or you'd lose millions while still being hyper focused on performance.
2
u/BertyBastard Jul 10 '26 edited Jul 13 '26
I use C occasionally at work. Last time was to extract data from system info read-outs from various PCs and collate it into a CSV file. (I mostly program in Caché ObjectScript at work though.) (Edit: typo)
2
u/QuietMisdreavus Jul 10 '26
Most of my day job is done in Swift, but i’m one of the
lucky suckersresident subject-matter experts on my team in integrating documentation tools with compilers, so i work a lot in Clang and the Swift compiler, which are both C++ with LLVM’s style/collection prelude/etc. I’m also the one who deals with our Markdown parser, which is a fork of GitHub-Flavored Markdown, itself written in C. We don’t need to mess with any of these things super often, but it’s fun to come back to my old haunts and play around with C and C++ every once in a while.2
u/GreenAppleCZ Jul 10 '26
As a student, I use C because it teaches me the most about how computers actually work while not making me remember 1s and 0s for a specific processor.
Programming in C teaches me how stuff will most likely compile into assembly and I can see how exactly memory is managed. And I can see the real size of everything, too. I can see that when something is theoretically faster for infinite inputs is not always faster for the expected number of inputs.
And on top of all that, it feels really chill. Just doing things my way, with all the freedom it provides.
2
u/SweetOnionTea Jul 10 '26
I work on a high performance filesystem and backing multi tier data store software in C and C++. Most customers are in media and entertainment so it's used by editors to manage video and audio data.
So used for movies, shows, sports, and I have had radio station customers. Also science research and government applications.
2
u/O_martelo_de_deus Jul 10 '26
Voltei a programar em C, durante mais de uma década foi meu ganha pão, parei por anos, usei novamente no meu trabalho de mestrado. C me ensinou a pensar de uma maneira única, antes do Rails e já fazia a geração dos J2EE a partir do script SQL, criei uma linguagem de programação interpretada para bots em terminais de mainframe, hoje voltei, já sou aposentado, estou programando um engine de game ao estilo Carmack/Doom, estou adorando, quem só programa em Python nunca vai saber o prazer de criar sua struct para implementar uma lista ligada, implementar os algoritmos do zero.
2
u/kyr0x0 Jul 10 '26
Kids these days have forgotten hat different programs can share the same memory sections using C
2
u/novikov-priboy Jul 10 '26
I'm 29, so I'm probably one of the younger C programmers out there... I got an internship at Intel back when I was a student, we developed drivers for network interface cards for Linux. It was all open source, it was all in C. Then I transitioned to VMware ESXi, closed source, but also in C. I've actually never used another programming language professionally. I'm really glad I do what I do, it's really interesting to see from the inside how huge this business is, and that open source doesn't mean non-profit (for better or worse), and that C probably won't ever die, just like Linux. I never wanted to write Python or JS professionally, although I love Python for "quick and dirty" stuff. I have no idea how people maintain huge enterprise projects written in Python. One of my superiors called C "bare-chested programming". Sometimes I wish we had more memory safety though...
2
u/licjon Jul 10 '26
I read C and C++ now. I have not written C in awhile. I recently wrapped a C++ library for Common Lisp. C and Common Lisp are my 2 favorite languages to use, but I tend to use Python out of convenience.
2
u/monsoy Jul 10 '26
I use C for almost all my "for fun hobby projects". I’m a big nerd, so I like the very little abstractions that comes with C programming.
Programming in C has made me a better programmer for other languages that are more practical to use. It has given me a better understanding of how memory works.
Having to make my own data structures have given me a better understanding of the pros and cons of them.
Making my own sorting algorithms has made me more introspective and I now take a bit of time to think about what algo to choose in other languages, instead of just going `.sort()`.
In general, I love C because I get a sense of accomplishment when I get non-trivial programs to work.
2
u/__milkybarkid__ Jul 10 '26
Embedded devices using FreeRTOS, and we're moving to Zephyr.
I love the simplicity of C, low barrier to entry (only ~40 keywords, and you can get away with half of them), and a sky high skill ceiling, it allows for an elegance that usually doesn't come through in other languages. I love being able to read a block of code and have a good idea what it does without having the mental overhead of operator overloading, constructors, etc. The code doesn't do much that's "hidden".
2
u/IhailtavaBanaani Jul 10 '26
I optimize data science and signal processing calculations with C at work. Basically I write Python modules in C that take NumPy arrays and then do some custom calculations much faster than what could be done with the existing NumPy, SciPy, etc libraries. The speed increase is anything between 3x to 1000x reducing the calculation time from weeks or months to hours or days so we get the deliverables out much faster.
I used to write low level hardware drivers in C and assembly for work. But C was also my hobby before I even entered the working life.
2
u/IsanDanderoda Jul 10 '26
Me? I'm an Oracle DBA, really. We have a hairy vendor system that connects to other hairy vendor systems in very hairy ways. I'm shocked how many companies integrate data by having us SFTP a file to them.
That said, I use C for just about everything that happens outside of the database that can't be handled trivially in a bash script. I started with this back in the 90's where a minor performance difference could mean significant runtime differences in large batch systems, and C can run circles around COBOL even when doing what COBOL does best. So I process lots of data of varying types, clean it up automagically (CURSE YOU UTF-8!), make things happen all over the place, and stuff things back in the RDBMS.
I originally got into C because the first language I was formally taught, Pascal, (after BASIC and Logo as a kid), was so strict and annoying that once I learned C, I absolutely fell in love with it and haven't changed my mind since.
I love tinkering with other languages and figuring out what they're good at, but at the end of the day I'm always coming back to C. I'm giving C++ a go again to do something that seems like it would work better in C++ right now, but still, C is my big love.
2
u/fb_john Jul 10 '26
I've programmed in C since 1989. Retired now but still supporting a couple of customers who are still using apps I've developed over the time. Manufacturing systems, very integrated with the customers' work flows. 250K+ lines of source. Latest project is to move these to more modern, supportable systems - I won't be around for ever 😂 As far as not having anything to contribute to modern IT? Don't be daft - experience counts for far more than youthful exuberance and confidence 👍
2
u/cbf1232 Jul 10 '26
I've been doing linux kernel work off and on since 2000-ish. Mostly C, and even some assembly (MIPS, ARM, x86, ppc64).
Nowadays most of my coding is python and golang but I still need to dig into the kernel code to explain stuff and debug issues. (I'm involved with backend telecom infrastructure where performance can be critical.)
2
u/Aggressive_Big_7564 Jul 10 '26
As a kid these days, I started learning c after fooling around with python for a few years and looking for a change. I like how delightfully simple it is and how learning it gave me a greater understanding of the computer. I love the function pointers, threads.h and the header mental model (its simplicity is great and made me understand how imports work and stuff). Right now I am building a chess app with raylib and loving it. About 3 months in and having a blast, as a hobbyist learning c really augmented (and still does) my understanding.
2
u/prthug996 Jul 10 '26
Aerospace
2
u/Product_Relapse Jul 10 '26
I’m currently working on an isometric sandbox roguelite game in my spare time. Uses SDL2 and standard C library only. I spend most days working on the engine itself, as my skills growing overtime force me to go back and refactor early work. All written in vim without AI assistance. I have also drawn all of the artwork and written all of the music.
Right now, it’s in a very early alpha state. I hope to release it someday. For reference, I’m an undergraduate CS student and I hope to use this project as a) passive income and b) a job interview tool for show demonstrating my abilities
2
u/MpappaN Jul 10 '26
I just write code mostly for GNU Hurd and occasionally send patches to Linux.
I also sometimes write things for myself in C.
At work I use whatever I need to (C never comes through)
2
u/Alternative_Corgi_62 Jul 11 '26
What I use C for? Motion control application with as lot of math inside, and soft real-time requirements. For everything else - C#. Yes, am I old;)
2
u/andrewcooke Jul 11 '26
last time i used c it was to develop a system for the calibration of seismometers. you might think c was chosen for easy interfacing to hardware, but that was only a small part of the system (which included a database, crypto signing of data, remote execution, etc) (tbh i don't know why c was chosen - it was just part of the spec)
2
u/Nzxtmk1 Jul 11 '26
I am working in a stencil compiler in C++, the infrastructure came from someone before me, I have been fighting with the project (very little documentation available) and updating my knowledge. It's definitely a fun project to work on and I am discovering a latent interest for the world of compilers :)
2
u/hyperficial Jul 11 '26
I like C primarily because it forces me to reason carefully about computations. I think this is where the joy of programming comes from, to combine a series of primitive operations to do very nontrivial things
2
u/Equivalent_Cat9705 Jul 12 '26
C is the right language for solving particular problems. In general, complaints about languages stem from trying to use a language to solve a problem outside its domain. C is intended to abstract the processor architecture and very little else. Other languages provide much higher level abstractions to allow programmers to focus on the core logic of an application.
I would not implement a bus level device driver in a language other than C, but I no longer use C for user level code, there are too many better choices.
When the ‘best’ language is chosen for a project, it should almost be invisible.
2
u/v_maria Jul 13 '26
finding any place to discuss programming in a curious way seems to be fucking annihilated by LLM
have some rubbish is wrote 10 years ago https://github.com/dedobbin/wav_hammer/blob/master/src/raw_wave.c its its not good lol but it has a special place in my heart
2
u/zoomlogo_ Jul 13 '26
CPU stands for C processing unit, or so I've heard :P
2
u/TheChief275 Jul 10 '26
3. I thought we called ourselves C-niles?
1
u/keithstellyes Jul 10 '26
I like doing graphics programming, embedded software, and otherwise lean and fast desktop apps. That's hobby stuff.
In a previous life I worked on the Facebook Messenger video calling on desktop in C++
1
u/R3D3-1 Jul 10 '26
In my last project, C was mostly used as poor man's C++. Basically, C++ reduced to "C with class keyword".
Okay, vector and such was used. But the C was often written as glue between Fortran and a C library, with entirely broken error handling.
Spot the issue:
1
u/gelftheelf Jul 10 '26
Retro game dev! Game Boy Advance and Nintendo DS!
There is just something so satisfying about seeing something (no matter how simple) run on a real device.
1
u/Illustrious-Cat8222 Jul 10 '26
I've was mostly programming in C++ the last years of my career. Now I'm doing embedded hobbyist stuff in C (PIC MCUs).
I've been programming in C since the late 70s since I learned it extracurricularly in college.
1
u/Reasonable-Rub2243 Jul 10 '26
I mostly use not merely C but actual C89, with compiler flags that enforce maximum persnickitiness. The reason is portability. I want my code to run on anything with a C compiler.
Some recent projects: an emacs clone, and a lisp interpreter to (eventually) incorporate into the emacs. Both super small.
1
u/greg_kennedy Jul 10 '26
My day-to-day job has a significant legacy C application that, despite many attempts to redo over the years in something more portable / easily scalable, still persists and gets updates. For very cost sensitive clients it is simply really really hard to beat "rent or buy one machine with a lot of RAM and run this bare metal C app on it", which remains ridiculously fast, with something like "put Spark on a bunch of smaller nodes and ..."
1
u/Advanced-Theme144 Jul 10 '26
I use C because of its simplicity and control, especially for game development. It’s transparent, i don’t need to think of what abstractions are doing under the hood, and it’s a lot of fun to make stuff in it!
1
u/tomraddle Jul 10 '26
I do not really use it, but I quite like it. Not very good for creating complex things fast, but great for small simple things.
1
u/SimoneMicu Jul 10 '26
Complete control over resources, fast compilation and syntax simplicity. I guess there are no other languages eho can ensure those behaviors.
Personally I don't use at work but I like to implement stuff for myself, the aim is to create a sort of react in luajit for developing desktop native applications platform agnostic (a lighter react native I guess?).
For now I have achieved "generic" (intrusive data structure) and a runtime system (goroutine like runtime multithreaded). I am on the road to achieve the first window in GTK from my abstraction and debloating ram of future users :)
1
u/RascarCapack Jul 10 '26
I started learning programming with C#. After 3 years I decided to try low level programming and decided to learn a bit of C first because the syntax was mostly familiar and I was told I could later move on to a more "modern" language like Rust or C++.
It's been two years now and I enjoy writing C more than ever. At the beginning it was rough and confusing but there was so many moments that felt like revelations like: lists, or inheritance, are not actually a thing from the computer perspective, they're just language constructs that have a cost. All in all C made me an overall better programmer by giving me a chance to (or making me have to) learn some internals of the computer (stuff like the heap/stack, cache locality etc).
I know I can create anything with C. I also know it's not always the best tool for the job. Personally that's where I found my "joy of programming".
1
u/Ok-Victory-3277 Jul 10 '26
Doing a project with Zephyr made me understand pointers.
1
u/mrtlo Jul 10 '26
Work on Android based devices. ARM applications are mostly C++, kernel stuff in C. DSP side is mostly C.
1
u/val_anto Jul 10 '26
Not A good idea. AI can be trained on what you post here.
1
u/house_of_klaus Jul 10 '26
I work as a cyber tool developer. You can't do this job without C and Assembly.
1
u/othd139 Jul 10 '26
I'm 19 (and therefore not a greybeard) but I regularly use C. I find it way nicer and more ergonomic to work with than C++. My most used language is Nin (although often with GC and the stdlib turned off and linked with libc) and I do miss certain ergonomics like function and type polymorphism (especially the latter since my third most used language is Haskell) when using C but the low level programming, straightforward macro system, manual memory management (which is really nice a lot of the time), etc... is great. In particular I use C whenever I'm writing code that I think there's an outside chance other ppl might work with (such as libraries, and a compiler book I'm writing). C's great and I hope it never dies.
1
u/cmdr_iannorton Jul 10 '26
i write and maintain C, a large, cross platform codebase of many programs and libraries, most running on almost any OS or CPU you might have heard of.
C is great, well done cross platform C99 is robust and I enjoy it.
1
u/HalifaxRoad Jul 10 '26
I write firmware for PIC microcontrollers mainly in C as part of my job. sometimes I need to write some functions in assembly and call them from my C program. But anyways, I started learning C for atmega8s and atmega32s I bought for a few different projects in middle school, and im almost 30 now. Im a self taught electrical engineer...
1
u/ghost_ware Jul 10 '26
I use C because I wanted to learn to make a game for the GBA. Tried it with Rust for a while, but gamedev in Rust was a bit much for me, a beginner.
1
u/detroitmatt Jul 11 '26
I don't use it for much real work but for hobby programming I like a language where I can actually reasonably know everything the program is doing.
1
u/nimzobogo Jul 11 '26
I write C code for Libfabric.
1
u/toastermoon Jul 11 '26
I’m also a beginner going through the book Learn C the Hard Way (working through exercises this weekend).
And I have cloned Nethack, going to build it and understand how it works.
I plan on using it for building all the C projects in “Build your own X” list. And then follow Handmade Hero playlist on YouTube to learn building games.
1
u/Cakeofruit Jul 11 '26
C is simple, fast and close to machine code.
The ecosystem is developed, many issues you will face has already post about on the internet
1
u/Fewshin Jul 11 '26
I write high performance software for scientific data analysis and synthetic data generation. My code usually runs several orders of magnitude faster than comparable Python code. C code also plays nicely with pretty much any other programming language someone would care to use. I have free reign to meticulously optimize my code and create works of computational art.
I think we live in an era where people are detached from what the hardware is doing and where computational power feels free. It's encouraged everyone to write bad code. Whenever I write code in Python it feels like some disease takes root in my mind and before I know it I've created an abomination. The human soul can't handle that much freedom.
1
u/DigitalDunc Jul 11 '26
I’ve been using C for around 30 years; since I was told I was too stupid to learn C in fact.
It has been incredibly useful for small systems, divers and embedded (my favourite use.)
It’s coming under attack from the latest and greatest funky new languages as though it were a massive problem but really, if these new languages were truly that great then why aren’t they taking the throne without dissing C?
If there’s a true spiritual replacement to C, the nearest I’ve seen is Zig, but somehow I suspect that C’s future is safe.
It’s certainly found a home my life.
It’s so light (with custom CRT and libraries) I even used it to program for a homebrew 6502 computer I made.
1
u/Sqydev Jul 11 '26
Just like it, it’s good.
1
u/jwzumwalt Jul 11 '26
I pretty much use C all the time now. But, I started to use it when SPEED was paramount in importance. I do quite a bit of graphics and you never have enough speed with graphics.
1
u/Terdol Jul 11 '26
While I strongly prefer C++ (right now C++20, but looking to adopt 23 as soon as altera updates their layers for yocto6.0) part of my team is actively working with C for kernel development. Mostly things like adding our own changes to network stack, or drivers for FPGAs. Personally recently did modifications in C to include post quantum algorithms EFI shim to patch together PQC with old secure boot on TPM2.0. Wasn't to do with anything specific in C, but mostly that existing EFI applications and headers are only for C and I wasn't interested in spending so much time trying to do bindings for anything else.
1
u/wtdawson Jul 11 '26
I like using C for pretty much anything I can, obviously C isn't suitable for everything, but I like the language and its one of my favourites.
I like low-level stuff, which is probably why I like C so much.
It annoys me how much python is used, it really feels like it doesn't belong anywhere beyond scripts and ML.
I like writing firmware, and low-level software like kernels, and I currently have a project (which I actually need to put some time toward), which will provide all the software required to build a custom personal weather station.
1
u/Livid-Mulberry-3720 Jul 12 '26
well i have one reason why i code in c it's fun that's all
1
u/Coccafukuda Jul 12 '26
Been recently programming a [CHIP-8 emulator running in UEFI](https://github.com/fnknda/uefi.chip-8). Very fun little project. :)
1
u/kazah-png Jul 13 '26
la gente hoy en dia no le presta el tiempo ni la dedicación a realmente aprender C, es estresante ver proyectos llenos de ia slop, no digo que usar la ia sea malo, pero costruir todo tu codigo a partir de ella es nefasto
1
u/CrossWave38 Jul 13 '26
When I was a tenderfoot, the grey beards of that era were the IBM mainframe assembler coders. They would speak endlessly of the importance of efficiency and respect for computer resources. I thought that cobol and other third gen languages were the future and that computer resources would always grow to meet our needs. That was mostly the case, although my generation did spend a lot of time trying to make programs more efficient. Then the knowledge of the assembler programmers became very useful. Today programmers mostly code by putting pre-coded objects together and wonder why their apps don’t scale well when deployed in the increasingly expensive “cloud”. The original programmers of these objects are now the grey beards that are being ignored.
1
u/SudoSilv3r Jul 13 '26
I mainly use rust but for certain tasks mainly learning how programming works i find C a lot better. I have used it to reconstruct a lot of things i consider basic and needed just to figure out how they work under the hood and learn how to use them better
1
u/GloomyBelt5110 Jul 13 '26
Linux driver development
1
u/puref8 Jul 14 '26
I don't have a fancy reason like everyone else. I enjoy pain. I like doing things the hard way. But in reality it's probably because I'm obsessive compulsive and need absolute control.
1
u/time_egg Jul 14 '26
Big reason I prefer C over Cpp is the standard describing the whole language comprehensively and understandably in 100 pages.
Cpp is nowhere near close. Cpp has so many foot cannons and even if you want to try and be certain what your code acctually does, it's almost impossible to do so. I'm lost in talk of prvalues, grvalues, and rules of 5/7.
1
u/rayanlasaussice Jul 15 '26
Hey ! I'm Working on native_neural_network (on crates.io)
I've made wrappers for code's langages I'm using so I'm looking for some review about it 😅
Seen what you did and quite miroiring our work but with différents ways !
Just to tell how mine work :
Actually on crates.io > mlp quite well working/pseudo lm
The next update include lm with dataset include on github (quite working on not integrate the enternaiment dataset in the crate so it's stay quite light)
Including all of that the fils is show as a TLV header only readable with the crates, even when you change .* Files or try to corrupt it I've only match 1/1000 on crypto relevance
Using rmd\1 to create container layout with blob adjust on buffer (no_std crates with secure syscalls)
Anyways about wrappers there is an include and ffi/abi to ensure reliability to use the crates
I'm using cpp/java/JavaScript/python/rust so that's all the wrappers I've included (using each langage for each capabolity about it code langage > web review/caluclus/ml/dl/sl/etc etc)
1
u/GhostVlvin Jul 15 '26
I am not a beginner but also not a professional.
I sometimes use C to learn things like DSA. But in projects I quickly fall into C++ for for RAII and templates
1
u/nktauserum Jul 17 '26
It's a good choice for understanding what your computer is actually doing without modern "abstraction" overhead.
1
u/ACRM64 Jul 18 '26
I use C for all serious programming (especially when dealing with largish sets of data and needing speed) and have done since 1987. For me it's mostly because I've developed a large library of functions for the field in which I work, together with a library of more general functions as well as macros to make my life easier. I use linked lists a huge amount and find these much harder in other languages that I've used. The only downsides for me are not simple builtin regex or hashes/dictionaries but there are libraries around for these.
1
u/neopunk2025 Jul 20 '26
My next game for Meta Quest will be entirely in C. The previous one is in C++ (www.neopunk.xyz).
But C++ is becoming something too far from my needs (i.e Modern C++).
C is simple and effective. And force you to think about thing and be creative.
In C++, inhereritance & polymorphism are good at the beginning. Very good. But it's a kind of mental trap I escaped with C.
1
u/thaache Aug 06 '26
C gives the absolute joy of playing with mud and drenching in it, in an endless vast muddy field, where you may occasionally get a sweet toffee, or sometimes even a painful thorn. No other programming language will give this terrific experience. I am in this ecstacy since 1993. Heven... What else to say.
1
u/jmsellier Sep 05 '26
At work, I use C99. I started in semiconductor physics, developing simulators for electron transport in quantum devices. These simulators are nowadays utilized to design the new generation of quantum devices. Today, I am working in machine learning and, believe it or not, I still use C99. This language gives you full control of your machine and you can achieve numerical capabilities hardly reachable with other languages, both in terms of mathematical expressivity, control of details and computational speed. I still have to see another language which I can use to obtain the same capabilities.. ; )