home.social

#libc — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #libc, aggregated by home.social.

  1. Just started to add UTF-8 support to libstr, my libc-free string manipulation library written in C

    Find the repository on Codeberg: codeberg.org/ayba/libstr

    #c2y #defer #libc #codeberg

  2. @JensGustedt @wdtz So #C23 adds #memalignment (), defined in <stdlib.h> as a regular function (think side-effects and correctness); it takes the 2's complement negation of the input expressed as a #uintptr_t and masks it against the input. cgit.freebsd.org/src/tree/lib/ #FreeBSD picks it up in #libc from 15.1 and up, so it won't be in the man index until the release: freebsd.org/releases/15.1R/sch #languagelawyering

  3. @JensGustedt @wdtz So #C23 adds #memalignment (), defined in <stdlib.h> as a regular function (think side-effects and correctness); it takes the 2's complement negation of the input expressed as a #uintptr_t and masks it against the input. cgit.freebsd.org/src/tree/lib/ #FreeBSD picks it up in #libc from 15.1 and up, so it won't be in the man index until the release: freebsd.org/releases/15.1R/sch #languagelawyering

  4. @JensGustedt @wdtz So #C23 adds #memalignment (), defined in <stdlib.h> as a regular function (think side-effects and correctness); it takes the 2's complement negation of the input expressed as a #uintptr_t and masks it against the input. cgit.freebsd.org/src/tree/lib/ #FreeBSD picks it up in #libc from 15.1 and up, so it won't be in the man index until the release: freebsd.org/releases/15.1R/sch #languagelawyering

  5. @JensGustedt @wdtz So #C23 adds #memalignment (), defined in <stdlib.h> as a regular function (think side-effects and correctness); it takes the 2's complement negation of the input expressed as a #uintptr_t and masks it against the input. cgit.freebsd.org/src/tree/lib/ #FreeBSD picks it up in #libc from 15.1 and up, so it won't be in the man index until the release: freebsd.org/releases/15.1R/sch #languagelawyering

  6. @JensGustedt @wdtz So #C23 adds #memalignment (), defined in <stdlib.h> as a regular function (think side-effects and correctness); it takes the 2's complement negation of the input expressed as a #uintptr_t and masks it against the input. cgit.freebsd.org/src/tree/lib/ #FreeBSD picks it up in #libc from 15.1 and up, so it won't be in the man index until the release: freebsd.org/releases/15.1R/sch #languagelawyering

  7. What happens when you point Rust at Cosmopolitan libc and ask cargo to produce ONE binary for six OSes? I spent a few weeks finding out 🔬

    ✅ Sync Rust crosses Linux x86_64/arm64, macOS, FreeBSD, OpenBSD, Windows from a single binary (ripgrep + dog ported).

    ❌ Async Rust is Linux-only — mio's reactor requires too much love.

    14 findings, 12 fixed. Full writeup:
    blog.crisidev.org/tags/series-

    #rust #rustlang #cosmopolitan #libc #linux

  8. and being able to return NULL when given a size of 0 is a discontinuity in design, and a mistake, IMO.

  9. 🐢💤 Oh wow, hold the phone everyone! The #GNU #libc #atanh is now "correctly rounded"—a riveting #update surely to shake the very foundations of #digital #arithmetic. 📈😴 Meanwhile, the entire planet remains blissfully unaware, as another groundbreaking #breakthrough is drowned in a sea of #jargon and #PDFs. 📚🔍
    inria.hal.science/hal-05591661 #HackerNews #ngated

  10. 🐢💤 Oh wow, hold the phone everyone! The #GNU #libc #atanh is now "correctly rounded"—a riveting #update surely to shake the very foundations of #digital #arithmetic. 📈😴 Meanwhile, the entire planet remains blissfully unaware, as another groundbreaking #breakthrough is drowned in a sea of #jargon and #PDFs. 📚🔍
    inria.hal.science/hal-05591661 #HackerNews #ngated

  11. 🐢💤 Oh wow, hold the phone everyone! The #GNU #libc #atanh is now "correctly rounded"—a riveting #update surely to shake the very foundations of #digital #arithmetic. 📈😴 Meanwhile, the entire planet remains blissfully unaware, as another groundbreaking #breakthrough is drowned in a sea of #jargon and #PDFs. 📚🔍
    inria.hal.science/hal-05591661 #HackerNews #ngated

  12. 🐢💤 Oh wow, hold the phone everyone! The #GNU #libc #atanh is now "correctly rounded"—a riveting #update surely to shake the very foundations of #digital #arithmetic. 📈😴 Meanwhile, the entire planet remains blissfully unaware, as another groundbreaking #breakthrough is drowned in a sea of #jargon and #PDFs. 📚🔍
    inria.hal.science/hal-05591661 #HackerNews #ngated

  13. 🐢💤 Oh wow, hold the phone everyone! The #GNU #libc #atanh is now "correctly rounded"—a riveting #update surely to shake the very foundations of #digital #arithmetic. 📈😴 Meanwhile, the entire planet remains blissfully unaware, as another groundbreaking #breakthrough is drowned in a sea of #jargon and #PDFs. 📚🔍
    inria.hal.science/hal-05591661 #HackerNews #ngated

  14. 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

  15. 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

  16. Hey #Linux #Developer,
    is there some #libc API that I can query on a file descriptor to get the sector size of a filesystem?

    #Cpp #CSharp

  17. 🎩 Oh joy, another riveting tale about "practical modular inversion" that nobody asked for! 🤓 Lemire's mind-boggling #algorithms are back, now with #binary #flair, to solve problems no one knew existed. Meanwhile, #libc yawns while waiting for someone to care. 🚀
    purplesyringa.moe/blog/faster- #practicalmodularinversion #techhumor #HackerNews #ngated

  18. 🎩 Oh joy, another riveting tale about "practical modular inversion" that nobody asked for! 🤓 Lemire's mind-boggling #algorithms are back, now with #binary #flair, to solve problems no one knew existed. Meanwhile, #libc yawns while waiting for someone to care. 🚀
    purplesyringa.moe/blog/faster- #practicalmodularinversion #techhumor #HackerNews #ngated

  19. 🎩 Oh joy, another riveting tale about "practical modular inversion" that nobody asked for! 🤓 Lemire's mind-boggling #algorithms are back, now with #binary #flair, to solve problems no one knew existed. Meanwhile, #libc yawns while waiting for someone to care. 🚀
    purplesyringa.moe/blog/faster- #practicalmodularinversion #techhumor #HackerNews #ngated

  20. 🎩 Oh joy, another riveting tale about "practical modular inversion" that nobody asked for! 🤓 Lemire's mind-boggling #algorithms are back, now with #binary #flair, to solve problems no one knew existed. Meanwhile, #libc yawns while waiting for someone to care. 🚀
    purplesyringa.moe/blog/faster- #practicalmodularinversion #techhumor #HackerNews #ngated

  21. I generated a testset of roughly 2 million patterns and respective matches to test the glob matcher of #sydbox. The glob matching code was inherited from #rsync and was first written in 1986(!). In the process I have noticed 5 divergences between the fnmatch(3) implementations of glibc vs. musl and reported it to musl devs. Here are the divergences: dpaste.com/44XJS89XM.txt curious to hear inputs from #regex wizards as to whether #glibc or #musl is correct! TYVMIA! #linux #libc

  22. 🎉 systemd Lands Experimental Support For musl libc - Phoronix

    「 Systemd today finally merged support for building against and using the musl libc library. This is a win for Linux distributions like postmarketOS, Alpine Linux, and others that use musl by default as their standard C library or offer it as an option. 」

    phoronix.com/news/systemd-musl

    #systemd #musl #libc #postmarketOS #opensource

  23. Коробка багов (взрывается): кроссплатформенное коварство

    В сентябре мы рассматривали релиз 86Box v5.0, приуроченный к тридцати годам со дня выхода в розничную продажу Windows 95, и пообещали показать ещё кое-что. О чём мы сознательно умолчали, и почему оставили находку для отдельной статьи? Что осталось в "коробке"?

    habr.com/ru/companies/pvs-stud

    #pvsstudio #86box #libc #glibc #freebsd #c11 #эмуляция #совершенный_код #стандарты_кодирования

  24. Коробка багов (взрывается): кроссплатформенное коварство

    В сентябре мы рассматривали релиз 86Box v5.0, приуроченный к тридцати годам со дня выхода в розничную продажу Windows 95, и пообещали показать ещё кое-что. О чём мы сознательно умолчали, и почему оставили находку для отдельной статьи? Что осталось в "коробке"?

    habr.com/ru/companies/pvs-stud

    #pvsstudio #86box #libc #glibc #freebsd #c11 #эмуляция #совершенный_код #стандарты_кодирования

  25. Коробка багов (взрывается): кроссплатформенное коварство

    В сентябре мы рассматривали релиз 86Box v5.0, приуроченный к тридцати годам со дня выхода в розничную продажу Windows 95, и пообещали показать ещё кое-что. О чём мы сознательно умолчали, и почему оставили находку для отдельной статьи? Что осталось в "коробке"?

    habr.com/ru/companies/pvs-stud

    #pvsstudio #86box #libc #glibc #freebsd #c11 #эмуляция #совершенный_код #стандарты_кодирования

  26. Коробка багов (взрывается): кроссплатформенное коварство

    В сентябре мы рассматривали релиз 86Box v5.0, приуроченный к тридцати годам со дня выхода в розничную продажу Windows 95, и пообещали показать ещё кое-что. О чём мы сознательно умолчали, и почему оставили находку для отдельной статьи? Что осталось в "коробке"?

    habr.com/ru/companies/pvs-stud

    #pvsstudio #86box #libc #glibc #freebsd #c11 #эмуляция #совершенный_код #стандарты_кодирования

  27. This is freaking GENIOUS! I'd say the holy grail of both #static and #dynamic #linking, providing the benefits of both. Can't wait to test it in some real projects.

    #detour #libc #dlopen #elf #executable

    github.com/graphitemaster/deto

  28. This is freaking GENIOUS! I'd say the holy grail of both #static and #dynamic #linking, providing the benefits of both. Can't wait to test it in some real projects.

    #detour #libc #dlopen #elf #executable

    github.com/graphitemaster/deto

  29. This is freaking GENIOUS! I'd say the holy grail of both #static and #dynamic #linking, providing the benefits of both. Can't wait to test it in some real projects.

    #detour #libc #dlopen #elf #executable

    github.com/graphitemaster/deto

  30. This is freaking GENIOUS! I'd say the holy grail of both #static and #dynamic #linking, providing the benefits of both. Can't wait to test it in some real projects.

    #detour #libc #dlopen #elf #executable

    github.com/graphitemaster/deto

  31. This is freaking GENIOUS! I'd say the holy grail of both #static and #dynamic #linking, providing the benefits of both. Can't wait to test it in some real projects.

    #detour #libc #dlopen #elf #executable

    github.com/graphitemaster/deto

  32. Oh, look! Another "groundbreaking" static version of adb for the elite #Linux crowd 😏. Because who wouldn’t want to clog their #GitHub feed with a static build powered by #musl libc? 🚀 Meanwhile, the GitHub #AI is desperately trying to make it all sound useful. 😂
    github.com/kiddlu/adb-static #staticadb #libc #developerhumor #HackerNews #ngated

  33. 🎉 Hold the front page! 📰 Two years of #suspense for a terminal emulator just ended...🙄 drumroll please... with a #roadmap update! 🤦‍♂️ But wait, it's #zero-dependency... because, who needs #libc these days, right? 🚀
    mitchellh.com/writing/libghost #terminalemulator #update #technews #HackerNews #ngated

  34. #BSI WID-SEC-2025-1089: [NEU] [hoch] #GNU #libc: Schwachstelle ermöglicht Codeausführung

    Ein entfernter, anonymer Angreifer kann eine Schwachstelle in GNU libc ausnutzen, um beliebigen Programmcode auszuführen.

    wid.cert-bund.de/portal/wid/se