r/c_language • u/Awkward_Progress_391 • 1h ago
r/c_language • u/Accurate_Leader_1035 • 3d ago
C language
I am btech first year student and I want to learn C language. How can I learn it in easy way , can anyone suggest who have knowledge about it ????
r/c_language • u/EfficientCustard6105 • 13d ago
Learn C
I really want to learn c programming from basic to advance is there any free course on internet or telegram
Don't say you tube
I saw them they are teaching basic stuff
r/c_language • u/AthuGamer • 16d ago
Why DSA of python is so underrated i can't even find good yt channel to learn
r/c_language • u/TIRALMA • 16d ago
Я создаю язык который может заменить C в низкоуровневом програмирование , хочеш со мной?
r/c_language • u/Designer_Simple_9580 • 19d ago
C programming language is one hell of a language
r/c_language • u/Horta-horta • Sep 16 '26
CZet – A more powerful C without C++, 100% ISO C compatible
I'm the author.
All your C code already compiles as CZet. It just adds what C can't do without touching the compiler:
`defer`, monomorphized generics `T f<T>()`, `constexpr` functions, `_Reflect(T)` reflection, `_Operator` overloading, and `_Macro` macros Rust-style.
Single static binary with musl+glibc embedded, no system headers needed. Stdlib included: `#include <utils/...>` with no flags.
Repo + docs + examples: https://github.com/patrick-nonedev/CZet
GPL-3.0 + Runtime Exception (your binaries are NOT GPL).
What would you steal for plain C?
r/c_language • u/Just_Government3790 • Sep 12 '26
What C function would you delete and rewrite first, and why?
r/c_language • u/CHATGPT_PAGLU • Sep 07 '26
HELP ME TO FIND BEST YT VIDEOS FOR DATA STRUCTURE IN C
r/c_language • u/cafguy • Aug 26 '26
A megathread to learn low level programming from ground up include C
r/c_language • u/Impressive-Movie7325 • Jul 11 '26
About the concept of Memory in C language as compare to other langs.
r/c_language • u/RoundedSteve • Jun 18 '26
How to learn programming using C?
I'm new to programming and I chose C as my first language (kind of, actually java was my first, but I didn't like OOP and decided to go with C). I need to learn some programming concepts while I learn the syntax of C. Do you have any books to recommend to me?
r/c_language • u/One-Type-2842 • Jun 02 '26
[recommendation] Learning C for Low-Level Concepts
I have prior experience in Python, I made Useful programs that are for me, such as, file handling..
I have learned some basics of C. Now, What shall I practice to create something? Should I program something similar that I made in Python?
Since, I am Learning C for Understanding Low Level. It will be beneficial for me to adapt into my career in Cyber Security/ Hacking, Malware Creation, Understanding Linux (UNIX is based on C).
And What Articles shall I read related to my career?
r/c_language • u/Singleton621 • May 26 '26
Working on a lightweight C testing framework, what features would you want?
r/c_language • u/QueasyAmbassador5896 • Apr 30 '26
I spent 6 months writing a face embedding engine in C + AVX2 that beats ONNX Runtime by 23%
Wrote a face embedding library from scratch using C99 and some manual SIMD optimization. Managed to squeeze out 23% more perf compared to ONNX Runtime running on identical hardware. No bloat, just raw speed.
The numbers
The numbers
| FaceX | ONNX Runtime | |
|---|---|---|
| Median latency | 3.0 ms | 3.9 ms |
| Min latency | 2.87 ms | 3.18 ms |
| Library size | 148 KB | 28 MB |
| Total w/ weights | 7 MB | 157 MB |
| Dependencies | zero | Python + onnxruntime |
| LFW accuracy | 99.73% | 99.73% |
API — 4 functions, one headerThe numbers
// Include the single header
#include "facex.h"
// Initialize (~100ms, once)
FaceX* fx = facex_init("weights.bin", NULL);
// Compute embedding (3ms per call)
float embedding[512];
facex_embed(fx, rgb_112x112, embedding);
// Compare two faces
float sim = facex_similarity(emb_a, emb_b);
// sim > 0.3 → same person
facex_free(fx);// Include the single header
#include "facex.h"
// Initialize (~100ms, once)
FaceX* fx = facex_init("weights.bin", NULL);
// Compute embedding (3ms per call)
float embedding[512];
facex_embed(fx, rgb_112x112, embedding);
// Compare two faces
float sim = facex_similarity(emb_a, emb_b);
// sim > 0.3 → same person
facex_free(fx);
Optimization journey: 24ms → 3ms
Started with a naive C port of the ONNX graph—initial results were around 24ms. I started profiling every op to see where the cycles were going and stumbled onto a really weird bottleneck:
The real killers were:
- LayerNorm × 17 blocks — scalar mean/variance loop → custom AVX2 fused single-pass
- GELU × 17 — naive
tanh()via math.h → polynomial erf with custom_mm256_exp_ps - Depthwise conv — HWC↔CHW transposes on every block → native HWC layout, zero transposes
- MatMul → INT8 GEMM with
vpmaddubsw(AVX2) andvpdpbusd(AVX-512 VNNI) - Memory → pre-packed weights, static workspace, no
mallocper call
Tech: C99, ~4000 LOC, AVX2/FMA/AVX-512 VNNI. Apache 2.0.
GitHub: https://github.com/facex-engine/facex Repo's only 5 days old because I moved it from private to public. The actual code's been in the works for about 6 months check the README if you're curious.
r/c_language • u/YousraCodes • Mar 22 '26
My first C Malware sample: Implementing basic Anti-Debugging (TracerPid check)
Hi everyone(˘・_・˘) I'm a first-year Computer Science student and I've been diving into low-level programming and malware development I wanted to share my very first "malware" experiment written in C What it does: It performs a basic anti-debugging check by parsing /proc/self/status to look for a non-zero TracerPid. If a debugger is detected, it exits silently. Otherwise it creates a "secret" file and attempts to send a notification via a web request (Telegram/Email simulation) I know the code is still raw and has plenty of room for improvement (especially in error handling and string obfuscation) but I'd love to get some feedback from the community on the logic or any suggestions for more advanced anti-analysis techniques to study next! (ꏿ﹏ꏿ) Link to the Repository yousra-cyber/my-c-projects https://github.com/yousra-cyber/my-c-projects Thanks in advance for any tips!!!(◉‿◉)