#cprogramming
The C Standard Library Function isspace() Depends on Locale
https://www.evanjones.ca/isspace_locale.html
Discussions: https://discu.eu/q/https://www.evanjones.ca/isspace_locale.html
Modern Image Processing Algorithms Implementation in C
https://sod.pixlab.io/articles/modern-image-processing-algorithms-implementation.html
Discussions: https://discu.eu/q/https://sod.pixlab.io/articles/modern-image-processing-algorithms-implementation.html
The Adventures of Writing a CHIP8 Emulator - Part 1
https://benjcal.space/posts/the-adventures-of-writing-a-chip8-emulator-part-1/
Discussions: https://discu.eu/q/https://benjcal.space/posts/the-adventures-of-writing-a-chip8-emulator-part-1/
Please critque the hashtable that is now fixed and works.
https://gist.github.com/McUsr/2b0376579f2b642cd1273115b840f6ba
Discussions: https://discu.eu/q/https://gist.github.com/McUsr/2b0376579f2b642cd1273115b840f6ba
GBCompo23: largest coding event for actual retro Game Boy hardware with over $4000 in prizes (can be coded in C with GBDK)
Discussions: https://discu.eu/q/https://itch.io/jam/gbcompo23
A high performance embedded database
Discussions: https://discu.eu/q/https://crossdb.org/
A little essay on C I wrote for fun
C neural network not training well.
https://github.com/HiddenRoom/AOA
Discussions: https://discu.eu/q/https://github.com/HiddenRoom/AOA
Function Pointer in C: Attaining Dynamic Control and Flexibility
https://hackthedeveloper.com/function-pointer-in-c
Discussions: https://discu.eu/q/https://hackthedeveloper.com/function-pointer-in-c
A walk through of using different Glib (Gnome) collections, by IBM
https://developer.ibm.com/tutorials/l-glib/?mhq=Using+Glib+Collections&mhsrc=ibmsearch_a
Discussions: https://discu.eu/q/https://developer.ibm.com/tutorials/l-glib/?mhq=Using%2BGlib%2BCollections&mhsrc=ibmsearch_a
Walkthrough through glibc memcmp implementation.
https://xoranth.net/memcmp-avx2/
Discussions: https://discu.eu/q/https://xoranth.net/memcmp-avx2/
Improvements to static analysis in the GCC 13 compiler
https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler
Discussions: https://discu.eu/q/https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler
C & C++ recap for week 21/2023
https://discu.eu/weekly/candcpp/2023/21/
#cpp #cprogramming #programming
Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium
Demonstration of B - Predecessor of C Language FROM 1969
https://youtube.com/watch?feature=share&v=lW2Vp6_vARg
Discussions: https://discu.eu/q/https://youtube.com/watch?feature=share&v=lW2Vp6_vARg
BWK Interviews Doug McIlroy A interesting interview.
https://www.youtube.com/watch?v=Xe5ffO6Ouwg
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=Xe5ffO6Ouwg
Farmd - a work in progress farm game
https://github.com/Dotz0cat/farmd
Discussions: https://discu.eu/q/https://github.com/Dotz0cat/farmd
Writing to the macOS clipboard the hard way
https://nathancraddock.com/blog/2023/writing-to-the-clipboard-the-hard-way/
Discussions: https://discu.eu/q/https://nathancraddock.com/blog/2023/writing-to-the-clipboard-the-hard-way/
Precedence of * (dereference) and ++ (increment).
https://en.cppreference.com/w/c/language/operator_precedence
Discussions: https://discu.eu/q/https://en.cppreference.com/w/c/language/operator_precedence
Implementing a custom bootloader packet protocol: Bare Metal Programming Series
https://www.youtube.com/watch?v=RrUyS-gixWk
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=RrUyS-gixWk
IUP - Cross Platform C GUI Framework
https://www.tecgraf.puc-rio.br/iup/
Discussions: https://discu.eu/q/https://www.tecgraf.puc-rio.br/iup/
RFC: Enforcing Bounds Safety in C (-fbounds-safety)
https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/70854
Discussions: https://discu.eu/q/https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/70854
I made a simple program arguments generating library in C, looking for feedback
https://github.com/sbancuz/sbl/blob/master/examples/pug_example.c
Discussions: https://discu.eu/q/https://github.com/sbancuz/sbl/blob/master/examples/pug_example.c
SectorC: A C Compiler in 512 bytes
https://xorvoid.com/sectorc.html
Discussions: https://discu.eu/q/https://xorvoid.com/sectorc.html
``Rewrite it in Rust'' Considered Harmful?
https://goto.ucsd.edu/~rjhala/hotos-ffi.pdf
Discussions: https://discu.eu/q/https://goto.ucsd.edu/~rjhala/hotos-ffi.pdf
Buonasera a Mastodon.
Vi va di leggervi un po' di #C direttamente da #Unix del 1985?
https://archive.org/details/ATTUNIXSystemVRelease4Version2
Si trovano perle niente male :)
Memory Allocation
https://samwho.dev/memory-allocation/
Discussions: https://discu.eu/q/https://samwho.dev/memory-allocation/
C & C++ recap for week 20/2023
https://discu.eu/weekly/candcpp/2023/20/
#cpp #cprogramming #programming
Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium
On sprintf() Fails (2016)
https://gms.tf/on-sprintf-fails.html
Discussions: https://discu.eu/q/https://gms.tf/on-sprintf-fails.html
I've built a Tetris clone in C using SDL2 library
https://github.com/olzhasar/sdl-tetris
Discussions: https://discu.eu/q/https://github.com/olzhasar/sdl-tetris
My take on K&R exercise 5-17, sorting on at most 255 fields. A novel way for the exercise I think.
Discussions: https://discu.eu/q/https://github.com/McUsr/sort
What exactly is good code?
https://github.com/gmesmo97/project-gpl
Discussions: https://discu.eu/q/https://github.com/gmesmo97/project-gpl
Difference in accuracy when compiling in windows and linux
https://github.com/urisinger/NeuralNetwork
Discussions: https://discu.eu/q/https://github.com/urisinger/NeuralNetwork
[Gist] C preprocessor macros to make mixing x86-64 Assembly with C easier (on Linux)
https://gist.github.com/Chubek/c70554c88130b0ff665c7ceec684119a
Discussions: https://discu.eu/q/https://gist.github.com/Chubek/c70554c88130b0ff665c7ceec684119a
Ys: A Modern Server Framework for C
https://github.com/exbotanical/ys
Discussions: https://discu.eu/q/https://github.com/exbotanical/ys
The absurd cost of finalizers in Go
https://lemire.me/blog/2023/05/19/the-absurd-cost-of-finalizers-in-go/
Discussions: https://discu.eu/q/https://lemire.me/blog/2023/05/19/the-absurd-cost-of-finalizers-in-go/
Sto utilizzando e adorando #sparse(https://sparse.docs.kernel.org/en/latest).
È incredibile come uno strumento tanto utile anche al di fuori del kernel non goda della notorietà che merita.
bitmatch, my new library for bit pattern matching
Discussions: https://discu.eu/q/https://git.sr.ht/~cryo/cj
General advice on my first C library
https://gitlab.com/empaia/integration/wsi-anon
Discussions: https://discu.eu/q/https://gitlab.com/empaia/integration/wsi-anon
Driving Compilers
https://fabiensanglard.net/dc/
Discussions: https://discu.eu/q/https://fabiensanglard.net/dc/
I'm a Type 2 programmer of #C 🙋🏽♂️:
"The Two Types Of C Programmers (A Provocative Thesis)", Chris Siebenmann (https://utcc.utoronto.ca/~cks/space/blog/programming/CProgrammersTwoTypes).
Neither #Zig nor #Rust cut it for me as an alternative to C. 🤷🏽♂️
A language design analysis of HolyC (2019)
https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc
Discussions: https://discu.eu/q/https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc
Great collection of obscure features of C programming language
Project: A beautiful TUI periodic table for GNU/Linux terminals (ptable) in C - no dependencies
https://github.com/velorek1/ptable
Discussions: https://discu.eu/q/https://github.com/velorek1/ptable
Writing a Simple Garbage Collector in C
Discussions: https://discu.eu/q/https://maplant.com/gc.html
bytebeat-rs: bytebeat written in rust
https://github.com/chaosprint/bytebeat-rs
Discussions: https://discu.eu/q/https://github.com/chaosprint/bytebeat-rs
Top 5 Fastest Programming Languages: Rust, C++, Swift, Java, and 90 more compared
Discussions: https://discu.eu/q/https://youtu.be/pSvSXBorw4A
C Strings and my slow descent to madness
https://www.deusinmachina.net/p/c-strings-and-my-slow-descent-to
Discussions: https://discu.eu/q/https://www.deusinmachina.net/p/c-strings-and-my-slow-descent-to
αcτµαlly pδrταblε εxεcµταblε: "I realized it's possible to create a synthesis of the binary formats being used by Unix, Windows, and MacOS"
Discussions: https://discu.eu/q/https://justine.lol/ape.html
Catch-23: The New C Standard Sets the World on Fire
https://queue.acm.org/detail.cfm?id=3588242
Discussions: https://discu.eu/q/https://queue.acm.org/detail.cfm?id=3588242
Janet Curl - A libcurl easy API wrapper for Janet
https://github.com/CosmicToast/jurl
Discussions: https://discu.eu/q/https://github.com/CosmicToast/jurl
I made a GitHub repository for beginners in C programming language.
https://github.com/maxkonrad/iyte-ee103
Discussions: https://discu.eu/q/https://github.com/maxkonrad/iyte-ee103
Yet Another C++ STL Implementation in C
https://github.com/pbotmeyertron/cstd
Discussions: https://discu.eu/q/https://github.com/pbotmeyertron/cstd
Ted Ts'o: "As an OS engineer, I deeply despise these optimization tricks, since I personally I care about correctness and not corrupting user data far more than I care about execution speed"
How big is this integer type?
https://dotat.at/@/2022-09-23-ub.html
Discussions: https://discu.eu/q/https://dotat.at/%40/2022-09-23-ub.html
Should we use #c #cprogramming or #clang for the C programming language?
Multiple choice #poll
Clean code, terrible performance
https://www.youtube.com/watch?v=tD5NrevFtbU
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=tD5NrevFtbU
Best aspects of C language
https://blog.joren.ga/best-of-c
Discussions: https://discu.eu/q/https://blog.joren.ga/best-of-c
Autodiff in C (need help fixing memory leak)
https://github.com/Janko-dev/autodiff
Discussions: https://discu.eu/q/https://github.com/Janko-dev/autodiff
#programming #cprogramming
Anyone using #gtk3 with #C #pthreads, instead of using #gtk's threading functions?
GOTOphobia considered harmful
https://blog.joren.ga/gotophobia-harmful
Discussions: https://discu.eu/q/https://blog.joren.ga/gotophobia-harmful
Crypto Ancienne 2.0 now brings TLS 1.3 to the Internet of Old Things (except BeOS) (2022)
http://oldvcr.blogspot.com/2022/07/crypto-ancienne-20-now-brings-tls-13-to.html?m=1
Discussions: https://discu.eu/q/http://oldvcr.blogspot.com/2022/07/crypto-ancienne-20-now-brings-tls-13-to.html?m=1
@suprjami
`make --dry-run` prints but doesn't run the commands. Bear wraps the compiler calls to intercept them, so it requires you to actually call the compiler.
The whole problem is that there's no way to get the includes and dependencies unless you do all the preprocessing, which is a portion of the way into compiling. You could add the compiler flag to only do pre-processing, but you'll only save a little time versus a full compile.
C-rusted: The Advantages of Rust, in C, without the Disadvantages
https://arxiv.org/abs/2302.05331
Discussions: https://discu.eu/q/https://arxiv.org/abs/2302.05331
Would Rust secure cURL? (2021)
https://blog.timhutt.co.uk/curl-vulnerabilities-rust/
Discussions: https://discu.eu/q/https://blog.timhutt.co.uk/curl-vulnerabilities-rust/
What does this tiny C program do on Linux and why?
#cprogramming #posix #linux
Can sanitizers find the two bugs I wrote in C++?
https://ahelwer.ca/post/2023-02-07-cpp-bugs-sanitized/
Discussions: https://discu.eu/q/https://ahelwer.ca/post/2023-02-07-cpp-bugs-sanitized/
In August of last year, game re-implementation project 'Zelda3' migrated the codebase from C++ to C.
https://github.com/snesrev/zelda3/commit/b85e91a33657a60d256ab4a2cb30b07bddfe944f
Discussions: https://discu.eu/q/https://github.com/snesrev/zelda3/commit/b85e91a33657a60d256ab4a2cb30b07bddfe944f
Why C needs a new type qualifier: Either the most important thing I've ever written or a waste of months of research, design, prototyping and testing by a very sleep-deprived father of two. You get to decide! I've submitted a paper to WG14 but they only standardize established practice.
https://itnext.io/why-c-needs-a-new-type-qualifier-61ad553cbe71
Discussions: https://discu.eu/q/https://itnext.io/why-c-needs-a-new-type-qualifier-61ad553cbe71
Nolibc: a minimal C-library replacement shipped with the kernel
https://lwn.net/SubscriberLink/920158/313ec4305df220bb/
Discussions: https://discu.eu/q/https://lwn.net/SubscriberLink/920158/313ec4305df220bb/
New video! I walk through what's needed to write a simple BSD socket-based server on the Commodore Amiga in C. https://youtu.be/i6_PQUsayN4
#cprogramming Checked integer arithmetic in the prospect of C23
https://gustedt.wordpress.com/2022/12/18/checked-integer-arithmetic-in-the-prospect-of-c23/
Falsehoods programmers believe about undefined behavior
https://predr.ag/blog/falsehoods-programmers-believe-about-undefined-behavior/
Discussions: https://discu.eu/q/https://predr.ag/blog/falsehoods-programmers-believe-about-undefined-behavior/
GCC undefined behaviors are getting wild
http://blog.pkh.me/p/37-gcc-undefined-behaviors-are-getting-wild.html
Discussions: https://discu.eu/q/http://blog.pkh.me/p/37-gcc-undefined-behaviors-are-getting-wild.html