mstrutils - custom version of string.h

https://programming.dev/post/46421833

mstrutils - custom version of string.h - programming.dev

I am trying to write my own string.h functions, my library currently have no dependicies and 11 functions completed. Has basic and readable code to understand. Small binary size. Freely distributable with BSD-3-Clause license. Have a look: mstrutils [https://github.com/tafabey/mstrutils]

six thoughts on generating c

https://lemmy.world/post/42913408

six thoughts on generating c - Lemmy.World

Lemmy

GNU C Library 2.43 released

https://lemmy.ml/post/42242803

private String gender; - Lemmy

cross-posted from: https://lemmy.ml/post/42242801 [https://lemmy.ml/post/42242801] > Major new features: > > * The ISO C23 free_sized, free_aligned_sized, memset_explicit, and > memalignment functions have been added. > > * As specified in ISO C23, the assert macro is defined to take variable > arguments to support expressions with a comma inside a compound > literal initializer not surrounded by parentheses. > > * For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, > strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return > pointers into their input arrays now have definitions as macros that > return a pointer to a const-qualified type when the input argument is > a pointer to a const-qualified type. > > * The ISO C23 typedef names long_double_t, _Float32_t, _Float64_t, and > (on platforms supporting _Float128) _Float128_t, introduced in TS > 18661-3:2015, have been added to <math.h>. > > * The ISO C23 optional time bases TIME_MONOTONIC, TIME_ACTIVE, and > TIME_THREAD_ACTIVE have been added. > > * On Linux, the mseal function has been added. It allows for sealing > memory mappings to prevent further changes during process execution, > such as changes to protection permissions, unmapping, relocation to > another location, or shrinking the size. > > * Additional optimized and correctly rounded mathematical functions have > been imported from the CORE-MATH project, in particular acosh, asinh, > atanh, erf, erfc, lgamma, and tgamma. > > * Optimized implementations for fma, fmaf, remainder, remaindef, frexpf, > frexp, frexpl (binary128), and frexpl (intel96) have been added. > > * The SVID handling for acosf, acoshf, asinhf, atan2f, atanhf, coshf, fmodf, > lgammaf/lgammaf_r, log10f, remainderf, sinhf, sqrtf, tgammaf, y0/j0, > y1/j1, and yn/jn was moved to compat symbols, allowing improvements in > performance. > > * Experimental support for building with clang has been added. It requires > at least clang version 18, aarch64-linux-gnu or x86_64-linux-gnu > targets, and a libgcc compatible runtime (including libgcc_s.so for > pthread cancellation and backtrace runtime support). > > * On Linux, the openat2 function has been added. It is an extension of > openat and provides a superset of its functionality. It is supported only > in LFS mode and is a cancellable entrypoint. > > * On AArch64, support for 2MB transparent huge pages has been enabled by > default in malloc (similar to setting glibc.malloc.hugetlb=1 tunable). > > * On AArch64 Linux targets supporting the Scalable Matrix Extension > (SME), the clone() system call wrapper will disable the ZA state of the > SME. > > * On AArch64 targets supporting the Branch Target Identification (BTI) > extension, it is possible to enforce that all binaries in the process > support BTI using the glibc.cpu.aarch64_bti tunable. > > * On AArch64 Linux targets supporting at least one of the branch protection > extensions (e.g. Branch Target Identification or Guarded Control Stack), it > is possible to use LD_DEBUG=security to make the dynamic linker show > warning messages about loaded binaries that do not support the > corresponding security feature. > > * On AArch64, vector variants of the new C23 exp2m1, exp10m1, log10p1, > log2p1, and rsqrt routines have been added. > > * On RISC-V, an RVV-optimized implementation of memset has been added. > > * On x86, support for the Intel Nova Lake and Wildcat Lake processors > has been added. > > * The test suite has seen significant improvements in particular around > the scanf, strerror, strsignal functions and multithreaded testing. > > * Unicode support has been updated to Unicode 17.0.0. > > * The manual has been updated and modernized, in particular also regarding > many of its code examples.

My first real attempt at making a commentary video about 'c' programming and SDL

https://lemmy.ml/post/40522985

My first real attempt at making a commentary video about 'c' programming and SDL - Lemmy

I made this 15 minute video in one take - no editing and no script. After 4 months I watched it again and I’m really happy with it. I like to record stuff that seems natural and not scripted for clicks and votes. If you don’t like Rumble then tell me where I should upload to instead. If someone posts here with a passion for a specific video platform then I’ll certainly make an account on that platform.

‏بئله شئیلرله سئوینیرم من.😂
#لینوکس
‎#termux
‎#xfce
‎#gtk3
‎#glade
‎#gcc
‎#c_programming
Does anyone know where _BitInt(N) is specified for the WASM ABI, if it's specified at all? Clang can compile it, but when it comes to long term compat I'd rather it be written in a standard somewhere.

As _BitInt implies, I'm concerned about C23 here.

#programming #c_programming #c #c_lang

Подводные камни устройства карты видимости в СУБД PostgreSQL

Карта видимости - это достаточно простой механизм в СУБД PostgreSQL, но даже он имеет множество интересных тайн, если погрузиться в детали реализации. В этой статье мы выясним: 1. Какие особенности есть у механизма сбрасывания и установки бита полной видимости. 2. Как Index only scan использует бит полной видимости. 3. Зачем записывать информацию об изменении карты видимости в WAL. 4. Каким образом карта видимости участвует в оптимизации предвыборки Bitmap scan. 5. Зачем механизму оценки селективности нужна карта видимости.

https://habr.com/ru/articles/842520/

#postgres #postgresql #visibility_map #vm #open_source #анализ_программ #reverseengineering #исходный_код #c_programming #субд

Подводные камни устройства карты видимости в СУБД PostgreSQL

Карта видимости - это достаточно простой механизм в СУБД PostgreSQL, но даже он имеет множество интересных тайн, если погрузиться в детали реализации. В этой статье мы выясним: Какие особенности есть...

Хабр

fatal error: dbus/dbus-arch-deps.h: No such file or directory

https://lemmy.ml/post/17545833

fatal error: dbus/dbus-arch-deps.h: No such file or directory - Lemmy

im new to system programming, idk if thats the issuse. but according gcc, it can not find dbus/dbus-arch-deps.h and thats all i know. any idea about this issue? program [I] tomri@artix ~ [1]> cat main.c #include <dbus-1.0/dbus/dbus.h> int main(void) { return 0; } # error [I] tomri@artix ~> gcc main.c In file included from main.c:1: /usr/include/dbus-1.0/dbus/dbus.h:29:10: fatal error: dbus/dbus-arch-deps.h: No such file or directory 29 | #include <dbus/dbus-arch-deps.h> | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [I] tomri@artix ~> ls -la /usr/include/dbus-1.0/dbus/ total 216 drwxr-xr-x 2 root root 4096 Jul 2 20:26 ./ drwxr-xr-x 3 root root 4096 Jun 15 21:36 ../ -rw-r--r-- 1 root root 2809 Jan 14 06:17 dbus-address.h -rw-r--r-- 1 root root 3470 Jan 14 06:17 dbus-bus.h -rw-r--r-- 1 root root 27018 Jan 14 06:17 dbus-connection.h -rw-r--r-- 1 root root 2909 Jan 14 06:17 dbus-errors.h -rw-r--r-- 1 root root 22076 Jun 8 2023 dbus-glib-bindings.h -rw-r--r-- 1 root root 2575 Jun 8 2023 dbus-glib-lowlevel.h -rw-r--r-- 1 root root 14766 Jun 8 2023 dbus-glib.h -rw-r--r-- 1 root root 8969 Jun 8 2023 dbus-gtype-specialized.h -rw-r--r-- 1 root root 1464 Jun 8 2023 dbus-gvalue-parse-variant.h -rw-r--r-- 1 root root 7246 Jan 14 06:17 dbus-macros.h -rw-r--r-- 1 root root 1961 Jan 14 06:17 dbus-memory.h -rw-r--r-- 1 root root 15259 Jan 14 06:17 dbus-message.h -rw-r--r-- 1 root root 1810 Jan 14 06:17 dbus-misc.h -rw-r--r-- 1 root root 3809 Jan 14 06:17 dbus-pending-call.h -rw-r--r-- 1 root root 23956 Jan 14 06:17 dbus-protocol.h -rw-r--r-- 1 root root 5412 Jan 14 06:17 dbus-server.h -rw-r--r-- 1 root root 5392 Jan 14 06:17 dbus-shared.h -rw-r--r-- 1 root root 3047 Jan 14 06:17 dbus-signature.h -rw-r--r-- 1 root root 2359 Jan 14 06:17 dbus-syntax.h -rw-r--r-- 1 root root 8505 Jan 14 06:17 dbus-threads.h -rw-r--r-- 1 root root 4143 Jan 14 06:17 dbus-types.h -rw-r--r-- 1 root root 3961 Jan 14 06:17 dbus.h [I] tomri@artix ~> # my system [I] tomri@artix ~> uname --all Linux artix 6.9.7-artix1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 18:11:28 +0000 x86_64 GNU/Linux

Yesterday, I finished  support for #birch. Today, it will be .
I like this second project, since it allows me to try languages it didn't use or used months/years ago.

 https://github.com/Wervice/birch/

You are welcome to leave a ⭐.
#C_programming #coding

GitHub - Wervice/birch: Uniform logging for many languages

Uniform logging for many languages. Contribute to Wervice/birch development by creating an account on GitHub.

GitHub

PostgreSQL. Устройство карты свободного пространства

СУБД PostgreSQL способна бысто работать с огромными массивами данных благодаря множеству различных механизмов, таких как карта свободного пространства, позволяющая за короткий промежуток времени найти страницу из основного слоя с необходимым свободным пространством для вставки новых версий строк. В этой статье мы разберемся в устройстве карты свободного пространства, а также познакомимся с алгоритмом получения страницы с необходимым свободным пространством.

https://habr.com/ru/articles/806415/

#postgres #postgresql #free_space_map #fsm #open_source #анализ_программ #reverseengineering #исходный_код #субд #c_programming

PostgreSQL. Устройство карты свободного пространства

В этой статье мы разберемся, как в СУБД PostgreSQL реализован поиск страниц с необходимым свободным пространством для быстрой вставки записей в таблицу. Для понимания статьи необходимо: Понимание...

Хабр