Questions tagged [c]
C is a general-purpose computer programming language used for operating systems, games, and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.
4,102 questions
3 votes
1 answer
444 views
Term only, arrow-only category foundations in C
I am learning to write an arrows-only, Term only foundations in C, because I noticed Lean4 has types and terms, so I thought maybe it would be nice to have term as the basic building block. Please ...
9 votes
2 answers
838 views
Arena Allocator in C
This is my first time doing any kind of serious coding in C. I watched a Youtube video on what an Arena Allocator should do and I tried my best to make an implementation for it. As of now, we have the ...
8 votes
1 answer
106 views
Mandelbrot set visualizer using GTK4, Cairo and POSIX threads in C
I have recently implemented a Mandelbrot set visualizer, which I used to reacquaint myself with multithreading using pthreads. I'm just wondering whether the way ...
7 votes
4 answers
679 views
My BRESort adaptive sorting engine in C
I've created BRESort - an adaptive sorting engine that dynamically selects optimal algorithms based on data patterns. It achieves 3.6-4.2x speedup over stdlib qsort ...
2 votes
2 answers
121 views
C Native Messaging host
Native Messaging host in C. Documentations Chrome Developers MDN Web Docs Microsoft Edge Developer documentation Messaging between the app and JavaScript in a Safari web extension Native messaging ...
4 votes
3 answers
232 views
Field Sorting , ANSI-C/K&R 2ED, Exercise 5-17 brainstorming
This program is an expansion of the sorting utility built in previous chapters of K&R's 2nd edition of ANSI-C Programming. It parses command-line arguments to determine which fields to sort by and ...
2 votes
1 answer
140 views
ds (directory switcher): a *nix program for tagging directories with (short) tags and switching between them via tags
Repo The complete program: GitHub repository How it works After you have cloned the above repository, change directory inside it and type make in order to compile ...
4 votes
1 answer
111 views
Lock-free queues and stacks
I am currently working on implementing lock-free stacks and queues. So far, they seem to function properly in test programs, but I am unsure if there are any underlying issues or areas for improvement(...