Hacker News with Generative AI: C Programming

Show HN: A dynamic C (Hot reloading) module-based Web Framework (github.com/joexbayer)
Welcome to c-web-modules, a modular and efficient approach to web development in C. Inspired by kernel modules and AWS Lambda, this project allows you to upload C code directly to the server, which compiles and deploys it at runtime. No precompilation is necessary, and the server can easily be upgraded to include more features or external libraries.
GenMC: Model checking for concurrent C programs (mpi-sws.org)
GenMC is an open-source state-of-the-art model checker for verifying concurrent C/C++ programs under the RC11, IMM, and LKMM memory models.
C Until It Is No Longer C (aartaka.me)
We have to admit that C is inherently/potentially ugly.
LibNSFB – Framebuffer (bitmap on screen) abstraction library, written in C (netsurf-browser.org)
LibNSFB is a framebuffer abstraction library, written in C. It is currently in development for use with NetSurf and is intended to be suitable for use in other projects too.
The C23 edition of Modern C (wordpress.com)
Secure CGI Applications in C on BSD (2016) (kristaps.bsd.lv)
Equip you with sufficient knowledge to build a (simple) secure web application. In C. On a BSD operating system.
OWASP C-Based Toolchain Hardening Cheat Sheet (owasp.org)
C-Based Toolchain Hardening is a treatment of project settings that will help you deliver reliable and secure code when using C, C++ and Objective C languages in a number of development environments.
snac2: Mastodon API ActivityPub instance in portable C (codeberg.org)
A simple, minimalistic ActivityPub instance written in portable C
Show HN: Compiling C in the browser using WebAssembly (wasmer.io)
We’ve reached a major milestone in making any software run with WebAssembly. Thanks to the newest release of Wasmer (4.4) and the Wasmer JS SDK (0.9.0) you can now run clang anywhere Wasmer runs!
Show HN: Hosting my website using my C web server (github.com/cozis)
This is a minimal web server designed to host my blog. It's built from scratch to be robust enough to face the public internet. No reverse proxies required! You can see it in action at http://playin.coz.is/index.html.
Rawdrawandroid – Build Android apps without any Java, in C and Make (github.com/cnlohr)
Ever wanted to write C code and run it on Android? Sick of multi-megabyte packages just to do the most basic of things. Well, this is a demo of how to make your own APKs and build, install and automatically run them in about 2 seconds, and with an apk size of about 25kB (with API 26). API 30 (Android R+) is unfortunately at 45kB to support ARM64 + ARM32.
Strtod Is Wild (festina-lente-productions.com)
The strtod function in the C standard library seems innocent enough: take a decimal representation of a number, such as "10.35" and return the nearest floating-point binary number (the double C type) [note 1].
Linux's Bedtime Routine (tookmund.com)
How does Linux move from an awake machine to a hibernating one? How does it then manage to restore all state? These questions led me to read way too much C in trying to figure out how this particular hardware/software boundary is navigated.
Undefined behavior in C is a reading error (2021) (yodaiken.com)
C Course Online (lucidar.me)
Show HN: A retro terminal text editor for GNU/Linux coded in C (C-edit) (github.com/velorek1)
How to run Valgrind on a CGI program in C (conman.org)
Getting back into C programming for CP/M (kevinboone.me)
Tic-tac-toe in a single call to printf (github.com/carlini)
NASA SPICE – C library for planetary exploration (nasa.gov)
Don't setenv in multi-threaded code on glibc (rachelbythebay.com)
C Traps and Pitfalls (1988) [pdf] (literateprogramming.com)
Designing a Better Strcpy (saagarjha.com)
'Writing a C Compiler' is a book (2022) (norasandler.com)
I start to make an open source ASN.1 compiler in C from scratch (pixelegg.me)
Code a DOOM-like game engine from scratch in C [PART I] (youtube.com)
Beating NumPy matrix multiplication in 150 lines of C (salykova.github.io)
Beating NumPy's matrix multiplication in 150 lines of C code (salykova.github.io)
8cc.vim: Pure Vim script C Compiler (github.com/rhysd)
Beating NumPy's matrix multiplication in 150 lines of C code (salykova.github.io)