home.social

#libc — Public Fediverse posts

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

fetched live
  1. OSDEV: vsnprintf полная реализация без поддержки чисел с плавающей точкой

    Руководство по разработки своей версии vsnprintf для целочисленных значений для увлекающихся osdev. Бла бла бла

    habr.com/ru/articles/1046445/

    #форматирование_строк #форматирование_чисел #printf #libc #osdev

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

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

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

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

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

  7. Hi #embedded developers, hi #c developers. I am writing a new #libc to explore alternative idioms and hopefully improve ergonomy, expressiveness, and some other points that seem important to me.

    I am considering adding a generic interface for allocators, so the default behaviour can be easily overridden by users and third parties, like #zig or #odin.

    This pattern could be expanded to features other than allocators, but I'm struggling to decide which ones can be relevant.

    #linux #bsd #windows

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

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

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

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

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

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

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

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

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

    habr.com/ru/companies/pvs-stud

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

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

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

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

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

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

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

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

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

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

    habr.com/ru/articles/893720/

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

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

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

  26. 把 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

  27. 把 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

  28. 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)

  29. #TIL J'ai découvert justine.lol/cosmopolitan/index

    Un outil pour compiler du #C vers un format capable de s'exécuter partout : Linux, Windows, Mac, FreeBSD... ARM64 et x86_64, sans reposer sur une plateforme (comme la #JVM) ni sur un interpréteur (comme #Python)

    Il y a un article qui détail comment ça fonctionne (je n'ai que lu la moitié parce que je ne comprennais pas, c'est trop bas niveau) justine.lol/ape.html

    #Dev #CrossCompilation #Compilation #APE #Cosmopolitan #LibC #GCC

  30. Exciting easy win I'd been meaning to do for a long time for broadening the scope of libc-test: 45 LoC (including include directives) to dive into a user+mount+net namespace where resolv.conf points to localhost and you have your own localhost you can bind to port 53 on (so resolver can be tested or even fuzzed). Non #musl specific; like all of libc-test, should work for any #libc.

  31. @mntmn From what I understand though, it is rarely the best approach. Here's an interesting comment by @david_chisnall about the recent addition of some #assembly bits to #FreeBSD #libc:
    lobste.rs/s/uhdxcb/freebsd_14_