Kefir C17/C23 Compiler
https://sr.ht/~jprotopopov/kefir/
#HackerNews #Kefir #C17 #C23 #Compiler #programming #languages #software #development #open #source #tech #news
Kefir C17/C23 Compiler
https://sr.ht/~jprotopopov/kefir/
#HackerNews #Kefir #C17 #C23 #Compiler #programming #languages #software #development #open #source #tech #news
What a dumb API the C std committee came.up.with for overflow safe operators.
The three functions are called chk_add etc.
Checked for what?
What's the return code?
Turns out it returns true if the check failed and the results are bad. Ugh!
For your edification, one reason to use C23 instead of those godforsaken older standards:
Standard library header <stdbit.h> (C23) - cppreference.com https://en.cppreference.com/w/c/header/stdbit.html
These are functions of enormous use in data structures, in place of bit-twiddling methods, GCC extensions, or reliance on optimizers to recognize idioms.
Also they are functions whose equivalents already existed in those other languages such as Fortran and Ada.
(Okay, they are macros. Sue me.)
Долгожданный оператор _Countof
Одно из недооценённых событий уходящего года деревянной змеи - в проекте стандарта языка С появился оператор числа элементов. Как заметил один мудрый товарищ, Алексей Годин, даже полвека ещё не прошло, а наконец, дождались.
[Перевод] Маленький bool, сулящий большие беды
Признаюсь, я питаю слабость к классическому DOOM. Игре уже 31 год, но благодаря открытому исходному коду она живёт на всём — от смартфонов до осциллографов. В силу разных обстоятельств я стал сопровождать несколько пакетов, связанных с DOOM, в Fedora Linux. Перед каждым релизом Fedora проводит массовую пересборку всех пакетов — и в этот раз chocolate-doom её не пережил. Виновник этому — маленький bool.
https://habr.com/ru/companies/cloud4y/articles/996168/
#c #c23 #gcc #doom #debugging #fedora #open_source #gamedev #linux #programming
GNU C Library 2.43 đã chính thức ra mắt với việc bổ sung thêm các tính năng C23, cùng hai hàm mới: `mseal` và `openat2`. Bản cập nhật này cải thiện hiệu suất, bảo mật và khả năng tương thích hệ thống cho các ứng dụng C. Đây là bước tiến quan trọng cho các nhà phát triển hệ thống và phần mềm nguồn mở. #glibc #Cprogramming #C23 #openat2 #mseal #lậptrìnhC #GNU #phátriểnthệthống
As a side project, I am working on a deep redesign of the C standard library and am contemplating blogging about it to give myself some motivation, as well as hopefully getting helpful feedback from interested enthusiasts or experienced programmers. Feel free to share this thread and ask questions, I'll be happy to answer them in my next blog post if this gets enough traction (I will post the link here on mastodon).
#programming #c #libc #c23 #c2y #clang #gcc #unix #windows #macos #plan9 #blog