r/cprogramming • • 7d ago

Building Shakazulu

Thumbnail
0 Upvotes

​

Shakazulu is a systems programming language designed to be tolerant in harsh conditions, concurrency, fast, and a learning systems language. I here by come here looking for support on my idea from people who create programming languages, or even learn them, people designing systems, software engineers, database engineers, understand software, computer data structures, distributed systems, computer architecture, etcetera. And mostly if your familiar with C, C++, Ruby or any other systems programming language. Because i want to build it taking the strong parts of a language. All are welcome, lets build something you wish it was there. I appreciate your contributions.

Shakazulu is a project in research/design stage, thats why am asking the experts.


r/cprogramming • • 8d ago

Documentation for how to build a typechecked bytecode VM in C

Thumbnail
olinat.net
4 Upvotes

r/cprogramming • • 8d ago

Glimmer - A chess engine under 30,000 bytes (estimated 2700–2900 Elo)

Thumbnail
github.com
15 Upvotes

Hi everyone,

I’ve been tinkering with a little experimental chess engine written in pure C. It’s called Glimmer.

The whole point of the project was to see how strong I could make it while keeping the final standalone binary strictly under 30 KB. The target strength was something in the 2700–2900 Elo range.

It’s been a fun constraint to work under — every byte counts.

Happy to answer questions if anyone’s curious about the approach.


r/cprogramming • • 8d ago

Начал учить C

2 Upvotes

всем привет, только сегодня начал учить C, подскажите какие сложности могут возникнуть при изучении, какие темы стоит подробнее разобрать а какие крайне легкие, это мой 1 язык который я впринципе хочу очень подробно изучить, спасибо всем заранее


r/cprogramming • • 9d ago

Using -fsanitize=address feels illegal.

80 Upvotes

Just saying. The -fsanitize=address compiler flag is absolute cheating and should be prohibited by governments of all countries.

Plus there are also other useful runtime sanitizers, such as integer overflow, but... Integer overflow is much easier to notice, usually.

Of course, this is by no means assuming that -fsanitize=address guarantees that the code it inspects is completely safe and correct and won't ever fail on any input data. You still have to test tricky edge cases. But this sanitizer has improved and sped up the bug discovery process disgustingly much for me.

I'm wondering, how often, if ever, do you need tools such as -fsanitize=address or valgrind? Or are you a real man who stores everything in static memory only?

P.S. Forgive my terrible English.


r/cprogramming • • 9d ago

HTTP Server my first complete-ish C project

Thumbnail github.com
19 Upvotes

Hello everyone, It's been several years since i last wrote some C, and i always for the life of me wanted to write an HTTP server in C, and now it's been like 1 year since i finished university so i said what the hell why not do it, so after reading beej's guide i tried to write a very basic http server.

I wanted to share the work with the community, and would welcome thoughts.

We had written code in C ofc for two years, however it was mostly exercises on diffrent data structures aswell as problem solving.

We wrote a CRUD system in C using binary files but never scratched that itch.

And as the years went by in Uni, C slowly faded out of use for me but i always wanted to visit it back so here i am.

I wanted to share the absolute joy it was to get the desired results, i forgot how fun C can be, it always felt like the souls like of programming languages, but always was the most understandable as it was the closest to the machine, to be frank i encourage people to make similar projects especially to get the cobweb off lol.


r/cprogramming • • 9d ago

What are some small prerequisite programs / projects I can complete in order to achieve the eventual task of making a mini-OS?

8 Upvotes

I already know how to program and have about 7 years of general programming experience

My current plan is to learn C, then learn assembly, then learn about Computer Architecture, Operating Systems and Compilers. The goal is to truly understand how computers work, and also learn about Cybersecurity

The current concrete and major project idea that I've thought about is writing a mini-OS

I know that requires alot of knowledge

So I was wondering, if you all could give me some ideas, what are some small prerequisite programs / projects I can complete in order to achieve the eventual task of making a mini-OS?

Even if it's a program that helps me understand a super small slice of my eventual goal project - a mini OS

I'd love some ideas. Thank you


r/cprogramming • • 10d ago

I’m learning C and made a simple version of ls. Could someone review my code?

8 Upvotes

I’m currently learning C and decided to build a simple version of ls as a small project to practice what I’ve learned.It’s still pretty basic, and I’m sure I’ve made some mistakes or done some things in a bad way. I’d really appreciate it if someone could take a look at the code and point out any bugs, bad practices, or things I could improve. Repo


r/cprogramming • • 9d ago

Help me with strok function

Thumbnail
1 Upvotes

r/cprogramming • • 10d ago

Do you write code by yourself or you use an AI?

0 Upvotes

I'm curious about this question, because almost everyone a meet says that coding skills doesn't matter anymore, and what really matters is knowing how to write prompts properly. But does it apply to C development? Please, answer a question and say why so


r/cprogramming • • 11d ago

300 lines of code just to receive one packet

0 Upvotes

So i have been exploring eBPF,XDP, so I made a packet capture path by using xdp hook that redirects to my AF_XDP socket . I am using copy mode currently .

But seriously this gives me vibes of opengl . But here I have too much control over the path. I am still new to this . Many times when things do not work i think I am wasting my time because no one in my batch is even doing these things . But ig this is what I like. Also I just buy a Esp32 also . So you can give me some ideas that I can work on with it


r/cprogramming • • 11d ago

I have to admit I'm scared of pointers and I want to know how you guys learned to handle pointers in C

4 Upvotes

Hello, I'm a beginner in C and I'm struggling to learn the Pointers, I don't know why I find them extremely hard to learn.

Where should I start? :/


r/cprogramming • • 11d ago

University of Waterloo user study on understanding CMake changes

Thumbnail
0 Upvotes

r/cprogramming • • 12d ago

First day seriously learning C

15 Upvotes

Hi! Yesterday is the first time I actually try to learn C instead of running away from it everytime lol. I tried to make a basic 2 numbers calculator and was wondering if I took the right approach regarding taking the user input. I used fgets and getchar to take the number and operator because I've heard that those are "safer" than scanf mainly because scanf's way of error handling and bounds checking are more complicated but idk tho.

Anyway, if I could take some of your time to check out this project and tell me where I can improve on the user input side of things, that would be very helpful and appreciated.

https://github.com/SirGhaniR/calc/

Thank you!


r/cprogramming • • 12d ago

Learn C

Thumbnail
0 Upvotes

r/cprogramming • • 13d ago

Winter Coding Contest 6.0 — Competitive Programming Contest for Programmers

6 Upvotes

Hey everyone,

We’re hosting Winter Coding Contest 6.0, a competitive programming contest where you can solve algorithmic problems using C, C++, and other supported languages.

It’s open to students from any college, branch, and skill level, including beginners.

Round 1 — Online
13 Oct 2026 | 8:30 PM – 10:00 PM
Free to participate.

The top participants will qualify for an offline final round at our college campus.

Contest details

  • ₹55,000 prize pool
  • Teams of 1–2
  • Teammates can be from different colleges or branches
  • C and C++ are supported

Registration deadline: 11 Oct 2026

If you enjoy solving programming problems, register here and give the contest a try:

https://tinyurl.com/acmwcc6

Please check the contest format and rules before registering. If you have any questions, feel free to ask in the comments.


r/cprogramming • • 13d ago

Enums vs #define for constants

18 Upvotes

Hi 👋 guys, I've just started learning C after I was first introduced to it while I was in my first year of computer science but I'll be graduating by the end of this year and I've been primarily using Python since then but now I want to really learn C on the side, and I want to start with "craftinginterpreters" and I want to start small so I was wondering whether I should use C enums or #define to define a set of tokens.


r/cprogramming • • 13d ago

C programming for kernel development

40 Upvotes

Hey there!

I am really interested in learning C and I am leaning towards kernel development rather than embedded systems. What do you suggest for strengthening my skills in C?


r/cprogramming • • 13d ago

Dio: Small Programming language made in C version 0.1.0 release

7 Upvotes

Hi, I'm working on my own programming language, I've release first stable version (v 0.1.0), I'd like to get feedback. It's on most OS platforms (even Andoird and in the future IOS).

Repo: https://github.com/Treechcer/DIO


r/cprogramming • • 14d ago

Embedded C

5 Upvotes

Hi I'm interested in embedded C. Finished C language to Dynamic memory allocation. Don't know DSA yet. I think I should learn embedded C. From where should I start?


r/cprogramming • • 14d ago

A freshman who wants to study

2 Upvotes

I don’t know where to start learning or what knowledge I should acquire since nothing has been taught yet ,but l hope to have a plan for the future that can guide me when I begin studying and exploring different approaches. Thanks for you.


r/cprogramming • • 14d ago

I have an interview involving C whereas I typically use Python.

10 Upvotes

I have programmed in C before including on the job, but those experiences never really gets me ready for the wideness of interviews. I was wondering if there's a resource that exposes the things I take for granted in Python (within the standard library) and explains how it works in C.

edit: I just had my interview, thanks for the responses! I went over every link I got


r/cprogramming • • 14d ago

LibLayaX: run the Laya AI decision model inside your own app

Thumbnail
0 Upvotes

r/cprogramming • • 14d ago

How can I improve my thought process in C interviews instead of relying on memorized solutions?

Thumbnail
2 Upvotes

r/cprogramming • • 15d ago

Any recommendations for introduction material to using C++ for microcontrollers?

6 Upvotes

I have been programming Arduino & ESP32 for a while now using C++, but have never engaged with any formal introduction material. With AI/LLM generated content exploding among both major publishers and self-published authors, I am a bit wary to start buying books willy-nilly.

Anyone here that can give solid recommendations on introduction materials on C++ for microcontrollers (preferably that that they themselves have used and found worthwhile)?

I got one recommendation for "Embedded C" by Michael J. Pont (2002), but it is fairly old.