home.social

#libc — Public Fediverse posts

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

  1. @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

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

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

  4. 🐢💤 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

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

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

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

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

  9. 🎉 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

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

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

    habr.com/ru/companies/pvs-stud

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

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

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

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

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

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

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

  17. 🎉 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

  18. #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

  19. [Перевод] Ужасное состояние двоичной совместимости Linux (и что с ним делать)

    Двоичная совместимость в Linux омрачена одним аспектом, который часто упускаю из виду при рассмотрении выпуска ПО для Linux. В этой статье я расскажу, как можно увидеть этот аспект, как решать эту проблему при выпуске современного ПО и что же именно нужно сделать, чтобы устранить её полностью.

    habr.com/ru/articles/893720/

    #двоичная_совместимость #дистрибутивы_linux #linux #libc #стандартная_библиотека

  20. I kind of wish there was a version of Alpine that was libc based - just for desktop NVIDIA support really.

    #Linux #AlpineLinux #Alpine #NVIDIA #libc #musl

  21. 把 libc 移植到 GPU 上跑

    在「Using Libc for GPUs (llvm.org)」這邊看到的,本來在想是個路人的噱頭 project,但仔細看才發現是 LLVM libc 官方的文件:「Using libc for GPUs」。

    不是所有的 libc 函數都被 porting 上去,但從列出來的支援清單可以看到主要就是計算類會用到的,但還是有包括一些 I/O (stdio.h) 與時間 (time.h) 相關的函數:

    Once you have finished building the GPU C library it can be used to ru

    blog.gslin.org/archives/2024/1

    #Computer #Murmuring #Programming #Software #gpu #libc #llvm

  22. Something I would like to make in #rust is a #libc wrapper that uses type-level contracts and optional (maybe debug-by-default) runtime checks. I like Rustix, but I'd like to make something that you can use with magnitudes less footguns.

    If you know of a company/team that would be willing to fund such work, I'd be eager to get connected!

    #FediHire #contracting
    (Please reply with suggested hashtags, I'm not the greatest at these xD)