home.social

#clang — Public Fediverse posts

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

fetched live
  1. No, it's worse than that: c++ (which is #clang) has taken 5 hours and counting to compile `CFIInstrInserter.cpp`, which has never happened before. Nothing in the compiler has changed since the last time I built the OS! This exact same source tree builds fine on my other systems!

  2. I'm looking for recs on C/C++ package managers, especially Conan vs. vcpkg!

    TL;DR: in a vacuum, vcpkg looks nice, but it's made by Microsoft, and the repository has the "a user you've blocked..." warning (i.e., it has Claude contributions).

    My main question: is vcpkg nice enough/is the behavior by its maintainers good enough that people would recommend it over Conan?

    Some of the details I've heard about the two:

    I've heard people mention that vcpkg has a higher learning curve but ultimately "just works", and that Conan can be a bit more fiddly. I've also noticed that many of the comparisons I've seen are pre-Conan 2, whereas now version 2 seems pretty stable.

    For anti-monopoly reasons, I like that Conan doesn't have one centralized list of packages, but I also hear that can make it harder to have reproducible builds.

    #C #CLang #Cpp #CProgramming #CMake #Dev #Programming

  3. [$] BPF, continuous testing, and stable kernels

    Ihor Solodrai and Shung-Hsi Yu wrapped up the BPF track at the 2026 Linux Storage, Filesystem, Memory-Management, and BPF Summit with a pair of sessions related to testing. Solodr [...]

    lwn.net/Articles/1087823/

    #LWN #Linux #kernel #Debian #GCC #Clang #Git #BPF #LSFMMBPF

  4. C++-техрадар: что разработчики действительно готовы брать в работу

    В мае на конференциях C++ Russia и HolyJS мы предложили участникам оценить технологии, инструменты и инженерные практики, с которыми они работают или за которыми следят. Так появились данные для двух технических радаров: по экосистеме C++ и по JavaScript. Сырые цифры сами по себе рассказывают немного, поэтому мы отдали результаты на разбор эксперту. Виктор Новиков, руководитель группы разработки в «Лаборатории Касперского», посмотрел на распределения голосов и поделился своим мнением, почему CMake уверенно побеждает, а PostgreSQL раскалывает аудиторию пополам. В этой статье — его анализ C++-части исследования. Про техрадар JavaScript мы расскажем в другой статье. Посмотреть радар и принять участие в голосовании можно на странице проекта .

    habr.com/ru/companies/kaspersk

    #с++ #postgresql #cmake #bazel #git #tech_radar #bash #gdb #vs_code #clang

  5. C Programming Language is an Interesting Experience

    I just wrote a functional program in C. It is not doing anything too fancy. But I'm so happy about it because of what it means. For the longest time I didn't know pretty much nothing except of Python. I can use Python for a lot of very interesting stuff. But I want to be able to look at code written in different languages and know what I'm looking at. I want to be able to make changes to the UPBGE game engine for my game Dani's Race and stuff.


    I know, I know, UPBGE is a fork of Blender and therefor is written in C++, not C. What am I wasting my time, learning C, for? Well...
  6. My Summer course is over. I didn’t learn much because I don’t think 5-weeks is enough time to internalize the many different parts of a proper Data structure and algorithms course. So rather than wingding and complaining I just went ahead bought a physical #computerscience textbook and I’m going work through that from start to finish. It’s in #clang but I’m sure all the general use information will be applicable to any other language. If my school isn’t going to educate me I’ll do it myself.

  7. Виды связываний (external, internal, no linkage) для самых маленьких

    Если вы когда-нибудь собирали проекты на C++, то практически наверняка получали ошибку от линковщика формата: /usr/bin/ld: /tmp/ccYa2eaO.o: в функции «foo()»: foo.cpp:(.text+0x0): повторное определение «foo()»; /tmp/ccKEs5I7.o:main.cpp:(.text+0x0): здесь первое определение collect2: error: ld returned 1 exit status Опытным C++ разработчикам эта проблема известна как ODR (One Definition Rule). Но корень этой ошибки выходит далеко за рамки «используй inline в .hpp » и «не определяй ничего в .hpp ». В этой небольшой статье мы попробуем разобраться, как наши объектные файлы, которые мы создаем, видит линковщик и другие единицы трансляции, и при чём здесь таблица символов.

    habr.com/ru/articles/1063468/

    #C++ #clang++ #g++ #ld #cpp

  8. I'm very confused because I was seeing a memory leak on #libcurl on #macos :mac: but not on #linux :linux:
    I reduced the repro to a very simple app, and turns out the problem was that the *Address Sanitizer itself* leaks memory in the mac version???

    Happens with both #Clang and #GCC, so maybe this is actually a #LibreSSL problem that #OpenSSL doesn't have?

    Anyway, it's way past my bedtime, so I'm just leaving this mini-rant here in case anyone that knows about this sees it. 🤞😴

  9. Things I've learned today:
    - Valgrind does not support AVX512 instructions. That was an adventure because I was writing purposefully bad code at the time...
    - However, changed strategies and used `clang` with the `fsanitize=address,undefined` option which seems to work perfectly fine.

    #clang #programming #troubleshooting