#clang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #clang, aggregated by home.social.
-
Beej (aka Brian Jorgensen) got tired of all his friends asking him how to do stuff with networking-programming in C —
So, in the mid 1990s he put it all online for free.
And, he has been updating it since then.
It covers: TCP, UDP, IPv4, IPv6, blocking & non-blocking I/O, client-server programming, select(), poll(), and more.
Beej's Guide to Network Programming has been an influential book.
#CLang #ComputerProgramming #NetworkProgramming #Programming
-
Yocto Project 6.0 “Wrynose” released with Linux 6.18 LTS
-
Stepped into _Generics crap again. Previously it was related to u8"strings", but now they broke L"strings" They might have always been broken, idk.
So, L"fuck" is treated as int* in _Generic
I can add (char32_t*) in front of it, but I better wait for both #clang and #gcc hive minds to catch up.Yet another crap comes from #gcc and incarnates in buggy code generation for a pretty innocent function. That starts from -O2 onward. Specifically, it's GCC 14.2.0-19 in Excalibur, #devuan
-
-
I stand behind this #hatespeech #rstats #clang
https://blog.r-project.org/2019/03/28/use-of-c-in-packages/index.html
"A summary of the recommendation would be: don’t use C++ to interface with R. If you need to implement some computation in native code, use C (or perhaps Fortran), not C++"
-
I stand behind this #hatespeech #rstats #clang blog.r-project.org/2019/03/28/u... "A summary of the recommendation would be: don’t use C++ to interface with R. If you need to implement some computation in native code, use C (or perhaps Fortran), not C++"
Use of C++ in Packages - The R... -
ncpp: Как создать самодостаточную экосистему на С++98 в 2026 году, которая запустится даже на железе со свалки
Современная разработка удобная, все сделано для программиста - последние версии компилятора, последние версии ОС, удобный синтаксический сахар. Однако что если ли у вас нет доступа к последним новшествам? Если у вас на руках только кусок металлолома 20-ти летней давности? А все вендоры и поставщики давным-давно от вас отвернулись? Давай почитаем, какой велосипед нагородили
-
ncpp: Как создать самодостаточную экосистему на С++98 в 2026 году, которая запустится даже на железе со свалки
Современная разработка удобная, все сделано для программиста - последние версии компилятора, последние версии ОС, удобный синтаксический сахар. Однако что если ли у вас нет доступа к последним новшествам? Если у вас на руках только кусок металлолома 20-ти летней давности? А все вендоры и поставщики давным-давно от вас отвернулись? Давай почитаем, какой велосипед нагородили
-
ncpp: Как создать самодостаточную экосистему на С++98 в 2026 году, которая запустится даже на железе со свалки
Современная разработка удобная, все сделано для программиста - последние версии компилятора, последние версии ОС, удобный синтаксический сахар. Однако что если ли у вас нет доступа к последним новшествам? Если у вас на руках только кусок металлолома 20-ти летней давности? А все вендоры и поставщики давным-давно от вас отвернулись? Давай почитаем, какой велосипед нагородили
-
ncpp: Как создать самодостаточную экосистему на С++98 в 2026 году, которая запустится даже на железе со свалки
Современная разработка удобная, все сделано для программиста - последние версии компилятора, последние версии ОС, удобный синтаксический сахар. Однако что если ли у вас нет доступа к последним новшествам? Если у вас на руках только кусок металлолома 20-ти летней давности? А все вендоры и поставщики давным-давно от вас отвернулись? Давай почитаем, какой велосипед нагородили
-
The CLion 2026.2 Roadmap: Simplified Debugger Configuration and the Ability to Use Multiple Zephyr West Profiles
#Clang #CLion #News #Roadmap #Bazel #Cmake #Debugger #Livewatches #Zephyrwest -
The CLion 2026.2 Roadmap: Simplified Debugger Configuration and the Ability to Use Multiple Zephyr West Profiles
#Clang #CLion #News #Roadmap #Bazel #Cmake #Debugger #Livewatches #Zephyrwest -
The CLion 2026.2 Roadmap: Simplified Debugger Configuration and the Ability to Use Multiple Zephyr West Profiles
#Clang #CLion #News #Roadmap #Bazel #Cmake #Debugger #Livewatches #Zephyrwest -
The CLion 2026.2 Roadmap: Simplified Debugger Configuration and the Ability to Use Multiple Zephyr West Profiles
#Clang #CLion #News #Roadmap #Bazel #Cmake #Debugger #Livewatches #Zephyrwest -
I love the room the #C #programmingLanguage gives me to do advanced things.
I think for general programming, something a lot safer is better, and I think the flexibility of C lends itself to bad patterns sometimes, but it has its place.
-
[$] An API for handling arithmetic overflow
On March 31, Kees Cook shared a patch set that represents the culmination of more than a year of work toward eliminating the possibility of silent, unintentional integer overflow [...]
https://lwn.net/Articles/1065889/ #LWN #Linux #kernel #GCC #LLVM #Clang #Rust
-
↱"cdecl"
A tool to help understanding or writing complex declarations in C! 🙂
Online version: https://cdecl.org/
Install on #LinuxMint / #Ubuntu / #Debian with:
> "sudo apt install cdecl"
Thank you for the tip, @sirwumpus , and thank you for all the other related tips, @xexyl ! 🧡
-
#ScribesAndMakers 29 griddle #MastoPrompt clang
#Clang! The #griddle hit the fire pit grate.
"What you making? "
"Fufu cakes."
"Yum!"
#TootFic #MicroFiction #NMFic #NMPrompts #NMSAM #Food #SliceOfLife
-
Hype for the Future 139I → The GNU C Compiler
Overview The GNU C Compiler, gcc, is part of the GNU Compiler Collection (GCC) and is identified as the primary system shell command based on build-essential in Ubuntu and the vast majority of Linux distributions otherwise based on Debian (.deb). The package names may vary, however slightly, on different types of kernel operating systems, but gcc remains an integral compiler for the vast majority of Linux, BSD, Solaris, and other UNIX-like implementations of operating systems containing GNU […]https://novatopflex.wordpress.com/2026/03/19/hype-for-the-future-139i-%e2%86%92-the-gnu-c-compiler/
-
KDAB engineer Shivam Kunwar contributed a fix to LLVM/Clang that enables debuggers to display constexpr array contents in optimized builds. Previously, inspecting static constexpr arrays under -O2 showed "no symbol in current context", now GDB and LLDB show the actual values. A small but meaningful improvement for anyone debugging optimized C++. #LLVM #Clang #DebugInfo #DWARF #CPlusPlus #OpenSource
More details:
https://github.com/llvm/llvm-project/pull/182442 -
KDAB engineer Shivam Kunwar contributed a fix to LLVM/Clang that enables debuggers to display constexpr array contents in optimized builds. Previously, inspecting static constexpr arrays under -O2 showed "no symbol in current context", now GDB and LLDB show the actual values. A small but meaningful improvement for anyone debugging optimized C++. #LLVM #Clang #DebugInfo #DWARF #CPlusPlus #OpenSource
More details:
https://github.com/llvm/llvm-project/pull/182442 -
KDAB engineer Shivam Kunwar contributed a fix to LLVM/Clang that enables debuggers to display constexpr array contents in optimized builds. Previously, inspecting static constexpr arrays under -O2 showed "no symbol in current context", now GDB and LLDB show the actual values. A small but meaningful improvement for anyone debugging optimized C++. #LLVM #Clang #DebugInfo #DWARF #CPlusPlus #OpenSource
More details:
https://github.com/llvm/llvm-project/pull/182442 -
KDAB engineer Shivam Kunwar contributed a fix to LLVM/Clang that enables debuggers to display constexpr array contents in optimized builds. Previously, inspecting static constexpr arrays under -O2 showed "no symbol in current context", now GDB and LLDB show the actual values. A small but meaningful improvement for anyone debugging optimized C++. #LLVM #Clang #DebugInfo #DWARF #CPlusPlus #OpenSource
More details:
https://github.com/llvm/llvm-project/pull/182442 -
KDAB engineer Shivam Kunwar contributed a fix to LLVM/Clang that enables debuggers to display constexpr array contents in optimized builds. Previously, inspecting static constexpr arrays under -O2 showed "no symbol in current context", now GDB and LLDB show the actual values. A small but meaningful improvement for anyone debugging optimized C++. #LLVM #Clang #DebugInfo #DWARF #CPlusPlus #OpenSource
More details:
https://github.com/llvm/llvm-project/pull/182442 -
Профилирование и PGO в LLVM
Нередко при оптимизации приложений, написанных на языках со статической компиляцией (C, C++, Rust), наступает момент, когда стандартные методы оптимизации, такие как улучшение алгоритмов, подбор структур данных, флаги компиляции вроде -O3, перестают давать дополнительный прирост производительности. В этот момент многие вспоминают про фундаментальное ограничение статических компиляторов. В отличие от JIT, они не знают, какой код будет горячим, а какой холодным. JIT-компиляторы (JVM, V8, .NET) получают эту информацию в runtime и адаптируют оптимизации под реальную нагрузку. Статические компиляторы генерируют машинный код заранее и лишены информации о поведении программы в runtime. Для решения этой проблемы используется подход Profile Guided Optimization (PGO). Он позволяет собрать данные о выполнении программы и передать их компилятору для принятия более оптимальных решений при генерации кода. По сути, PGO - это способ дать статическому компилятору некоторые преимущества JIT, сохраняя при этом все преимущества ahead-of-time компиляции: отсутствие пауз на перекомпиляцию и полный контроль над билдом.
-
Профилирование и PGO в LLVM
Нередко при оптимизации приложений, написанных на языках со статической компиляцией (C, C++, Rust), наступает момент, когда стандартные методы оптимизации, такие как улучшение алгоритмов, подбор структур данных, флаги компиляции вроде -O3, перестают давать дополнительный прирост производительности. В этот момент многие вспоминают про фундаментальное ограничение статических компиляторов. В отличие от JIT, они не знают, какой код будет горячим, а какой холодным. JIT-компиляторы (JVM, V8, .NET) получают эту информацию в runtime и адаптируют оптимизации под реальную нагрузку. Статические компиляторы генерируют машинный код заранее и лишены информации о поведении программы в runtime. Для решения этой проблемы используется подход Profile Guided Optimization (PGO). Он позволяет собрать данные о выполнении программы и передать их компилятору для принятия более оптимальных решений при генерации кода. По сути, PGO - это способ дать статическому компилятору некоторые преимущества JIT, сохраняя при этом все преимущества ahead-of-time компиляции: отсутствие пауз на перекомпиляцию и полный контроль над билдом.
-
Профилирование и PGO в LLVM
Нередко при оптимизации приложений, написанных на языках со статической компиляцией (C, C++, Rust), наступает момент, когда стандартные методы оптимизации, такие как улучшение алгоритмов, подбор структур данных, флаги компиляции вроде -O3, перестают давать дополнительный прирост производительности. В этот момент многие вспоминают про фундаментальное ограничение статических компиляторов. В отличие от JIT, они не знают, какой код будет горячим, а какой холодным. JIT-компиляторы (JVM, V8, .NET) получают эту информацию в runtime и адаптируют оптимизации под реальную нагрузку. Статические компиляторы генерируют машинный код заранее и лишены информации о поведении программы в runtime. Для решения этой проблемы используется подход Profile Guided Optimization (PGO). Он позволяет собрать данные о выполнении программы и передать их компилятору для принятия более оптимальных решений при генерации кода. По сути, PGO - это способ дать статическому компилятору некоторые преимущества JIT, сохраняя при этом все преимущества ahead-of-time компиляции: отсутствие пауз на перекомпиляцию и полный контроль над билдом.
-
Профилирование и PGO в LLVM
Нередко при оптимизации приложений, написанных на языках со статической компиляцией (C, C++, Rust), наступает момент, когда стандартные методы оптимизации, такие как улучшение алгоритмов, подбор структур данных, флаги компиляции вроде -O3, перестают давать дополнительный прирост производительности. В этот момент многие вспоминают про фундаментальное ограничение статических компиляторов. В отличие от JIT, они не знают, какой код будет горячим, а какой холодным. JIT-компиляторы (JVM, V8, .NET) получают эту информацию в runtime и адаптируют оптимизации под реальную нагрузку. Статические компиляторы генерируют машинный код заранее и лишены информации о поведении программы в runtime. Для решения этой проблемы используется подход Profile Guided Optimization (PGO). Он позволяет собрать данные о выполнении программы и передать их компилятору для принятия более оптимальных решений при генерации кода. По сути, PGO - это способ дать статическому компилятору некоторые преимущества JIT, сохраняя при этом все преимущества ahead-of-time компиляции: отсутствие пауз на перекомпиляцию и полный контроль над билдом.
-
Working With STM32 Arm TrustZone-Based Projects in CLion
#Clang #CLion #Tipstricks #Arm #Stm32 #Stm32cubemx #Trustzonehttps://blog.jetbrains.com/clion/2026/03/working-with-stm32-arm-trustzone-in-clion/
-
Do you also want contribute to the Open Source movement?
Don't know where to start?- write a new program in
- C++
- rust
- Python
- goLang
- hunt for bugs and submit patches in existing programs
- choose any OS you like freeBSD openBSD netBSD Linux (win64 is fine is you work mostly there) to code for
You can't write programs (yet)?
- We need translators of programs, many programs dont have enough locale translators for languages used in projects you also use
- Interfaces to contribute are easy to follow
Want one easy example?
You must (have) use(d) google voice
It's getting enshittified (makes more and more mistakes) and is NOT opensourceCommon Voice by Mozilla
- Common Voice is Open Source
- I contribute there (years)
- You need a only phone
- I contribute in three languages (ES NL UK EN)
Don't just use Open Source software CONTRIBUTE!
Make the movement more powerful!
my stats are here (screencap)
What are yours?https://commonvoice.mozilla.org/en/dashboard/stats
#OpenSource #Voice #Common #Voice #CommonVoice #programming #rust #C #CLang #goLang #go #Linux #BSD #freeBSD #openBSD #netBSD #mac #win64
-
Do you also want contribute to the Open Source movement?
Don't know where to start?- write a new program in
- C++
- rust
- Python
- goLang
- hunt for bugs and submit patches in existing programs
- choose any OS you like freeBSD openBSD netBSD Linux (win64 is fine is you work mostly there) to code for
You can't write programs (yet)?
- We need translators of programs, many programs dont have enough locale translators for languages used in projects you also use
- Interfaces to contribute are easy to follow
Want one easy example?
You must (have) use(d) google voice
It's getting enshittified (makes more and more mistakes) and is NOT opensourceCommon Voice by Mozilla
- Common Voice is Open Source
- I contribute there (years)
- You need a only phone
- I contribute in three languages (ES NL UK EN)
Don't just use Open Source software CONTRIBUTE!
Make the movement more powerful!
my stats are here (screencap)
What are yours?https://commonvoice.mozilla.org/en/dashboard/stats
#OpenSource #Voice #Common #Voice #CommonVoice #programming #rust #C #CLang #goLang #go #Linux #BSD #freeBSD #openBSD #netBSD #mac #win64
-
Do you also want contribute to the Open Source movement?
Don't know where to start?- write a new program in
- C++
- rust
- Python
- goLang
- hunt for bugs and submit patches in existing programs
- choose any OS you like freeBSD openBSD netBSD Linux (win64 is fine is you work mostly there) to code for
You can't write programs (yet)?
- We need translators of programs, many programs dont have enough locale translators for languages used in projects you also use
- Interfaces to contribute are easy to follow
Want one easy example?
You must (have) use(d) google voice
It's getting enshittified (makes more and more mistakes) and is NOT opensourceCommon Voice by Mozilla
- Common Voice is Open Source
- I contribute there (years)
- You need a only phone
- I contribute in three languages (ES NL UK EN)
Don't just use Open Source software CONTRIBUTE!
Make the movement more powerful!
my stats are here (screencap)
What are yours?https://commonvoice.mozilla.org/en/dashboard/stats
#OpenSource #Voice #Common #Voice #CommonVoice #programming #rust #C #CLang #goLang #go #Linux #BSD #freeBSD #openBSD #netBSD #mac #win64
-
Do you also want contribute to the Open Source movement?
Don't know where to start?- write a new program in
- C++
- rust
- Python
- goLang
- hunt for bugs and submit patches in existing programs
- choose any OS you like freeBSD openBSD netBSD Linux (win64 is fine is you work mostly there) to code for
You can't write programs (yet)?
- We need translators of programs, many programs dont have enough locale translators for languages used in projects you also use
- Interfaces to contribute are easy to follow
Want one easy example?
You must (have) use(d) google voice
It's getting enshittified (makes more and more mistakes) and is NOT opensourceCommon Voice by Mozilla
- Common Voice is Open Source
- I contribute there (years)
- You need a only phone
- I contribute in three languages (ES NL UK EN)
Don't just use Open Source software CONTRIBUTE!
Make the movement more powerful!
my stats are here (screencap)
What are yours?https://commonvoice.mozilla.org/en/dashboard/stats
#OpenSource #Voice #Common #Voice #CommonVoice #programming #rust #C #CLang #goLang #go #Linux #BSD #freeBSD #openBSD #netBSD #mac #win64
-
Do you also want contribute to the Open Source movement?
Don't know where to start?- write a new program in
- C++
- rust
- Python
- goLang
- hunt for bugs and submit patches in existing programs
- choose any OS you like freeBSD openBSD netBSD Linux (win64 is fine is you work mostly there) to code for
You can't write programs (yet)?
- We need translators of programs, many programs dont have enough locale translators for languages used in projects you also use
- Interfaces to contribute are easy to follow
Want one easy example?
You must (have) use(d) google voice
It's getting enshittified (makes more and more mistakes) and is NOT opensourceCommon Voice by Mozilla
- Common Voice is Open Source
- I contribute there (years)
- You need a only phone
- I contribute in three languages (ES NL UK EN)
Don't just use Open Source software CONTRIBUTE!
Make the movement more powerful!
my stats are here (screencap)
What are yours?https://commonvoice.mozilla.org/en/dashboard/stats
#OpenSource #Voice #Common #Voice #CommonVoice #programming #rust #C #CLang #goLang #go #Linux #BSD #freeBSD #openBSD #netBSD #mac #win64
-
[$] The first half of the 7.0 merge window
The merge window for Linux 7.0 has opened, and with it comes a number of interesting improvements and enhancements. At the time of writing, there have been 7,695 non-merge commits [...]
https://lwn.net/Articles/1057769/ #LWN #Linux #kernel #Clang #Rust #Git #XFS #BPF #io_uring
-
[$] The first half of the 7.0 merge window
The merge window for Linux 7.0 has opened, and with it comes a number of interesting improvements and enhancements. At the time of writing, there have been 7,695 non-merge commits [...]
https://lwn.net/Articles/1057769/ #LWN #Linux #kernel #Clang #Rust #Git #XFS #BPF #io_uring
-
[$] The first half of the 7.0 merge window
The merge window for Linux 7.0 has opened, and with it comes a number of interesting improvements and enhancements. At the time of writing, there have been 7,695 non-merge commits [...]
https://lwn.net/Articles/1057769/ #LWN #Linux #kernel #Clang #Rust #Git #XFS #BPF #io_uring
-
[$] The first half of the 7.0 merge window
The merge window for Linux 7.0 has opened, and with it comes a number of interesting improvements and enhancements. At the time of writing, there have been 7,695 non-merge commits [...]
https://lwn.net/Articles/1057769/ #LWN #Linux #kernel #Clang #Rust #Git #XFS #BPF #io_uring
-
Interestingly, when building Pocl with the option to statically link against LLVM 18, the crash can be reproduced by simply running `clinfo -l` (which is the least-intrusive OpenCL-using command you can run, basiclaly) and the error is caused by the good old
: CommandLine Error: Option 'internalize-public-api-file' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine optionsduring the Pocl ICD device numeration.
*sigh*
-
Did you know `zig cc` might be a better C #compiler than #GCC / #Clang? And that you can use it to compile your #CGO-dependent #golang projects as well?
I just needed to cross-compile something for x86_64-linux-musl on aarch64-macos-none. Everything else kept giving me headaches (#docker, #qemu)… but using #zig just worked.
https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html
-
#Glibc 2.43 is out:
https://inbox.sourceware.org/libc-alpha/13932477.uLZWGnKmhe@pinacolada/
A few highlights:
* Experimental support for building with #clang has been added.
* [a bunch of ISO C23 stuff]
* Support for mseal and openat2 on #Linux
* Additional optimized and correctly rounded mathematical functions have been imported from the CORE-MATH project […]
* Unicode support has been updated to Unicode 17.0.0.