mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#gcc

7 posts7 participants2 posts today

'"[…] The default dialect in #GCC 15 is still -std=gnu++17. You can use the -std=c++23 or -std=gnu++23 command-line options to enable C++23 features, and similarly for C++26 and others. […] C++26 features in #GCC15 include pack indexing, attributes for structured bindings, enhanced support for functions whose definition consists of =delete, and more. […] A number of defect reports were resolved in GCC 15. A few examples follow. […] C++11 attributes in C++98 […]"'

developers.redhat.com/articles

Featured image for: Value range propagation in GCC with Project Ranger.
Red Hat Developer · New C++ features in GCC 15 | Red Hat DeveloperExplore new C++ front-end features in GCC 15.1, including pack indexing and structured binding declaration as a condition

Dmitry is back again with another minimal computer. Last time he managed to boot #Linux on an #Intel4004¹. Now he wants to run #vi, #gcc, and #make, ends up doing it on a tiny #STM #microcontroller with a luxurious 32K of flash and 8K of RAM. The 4004-based machine took a *week* to boot, this one takes just a minute!

It's again made possible w/ #MIPS #emulation. The overclocked host CPU emulates a MIPS #R3000 at 1.65MHz with FPU disabled.

dmitry.gr/?r=05.Projects&proj=

¹) indieweb.social/@data0/1131699

Dmitry.GR8-pin Linux - Dmitry.GRDmitry.GR: Interactive-speed Linux on a tiny board you can easily build with only 3 8-pin chips

Having to deprecate a part of #poser's API for the first time, I added support for the #deprecated attribute supported by #GCC and #clang and then found #Doxygen couldn't automatically use it.

I didn't want to document deprecation *twice*, so I came up with a little hackery, see screenshots. 🙈

It's not perfect, requiring to type the message in plain text as a macro argument forbids the usage of a comma 😉 But hey, it works!

zirias.github.io/poser/api/lat

Got some problem with C++:
GCC compiles fine, Clang throws an error.

Minimal reproducer:

template <typename T>
class A {
public:
typedef A<T> self_type;
private:
T v;
public:
constexpr A() : v() {}
constexpr A(T _v): v(_v) {}
public:
static constexpr self_type def = self_type(T(42));
};

int main() {
volatile auto foo = A<int>::def;
(void)foo;
return 0;
}

How to get this to work with Clang? I want to keep def as a class constant.

#Apple M1 / M2 / M3 Core Support Might Soon Be Merged For The #GCC #Compiler
When it comes to compiler support for #AppleSilicon and their hardware at large, Apple has long been focused on the LLVM/Clang toolchain given their long history with it, employing many of the developers, and Xcode being based on LLVM. The GNU Compiler Collection (GCC) though may soon see upstream support for the newer Apple Cores
phoronix.com/news/Apple-Cores-

www.phoronix.comApple M1 / M2 / M3 Core Support Might Soon Be Merged For The GCC Compiler

"[…] Let's take a look at 6 improvements to look forward to in the upcoming #GCC 15.

1. Prettier execution paths

2. A new look for C++ template errors

3. Machine-readable diagnostics

4. An easier transition to C23

5. A revamped color scheme

6. libgdiagnostics

We're still fixing bugs, but we hope that GCC 15 will be ready to officially release (as 15.1) sometime later this month. […]"'

developers.redhat.com/articles – by David Malcolm #gcc15

Featured image for: Value range propagation in GCC with Project Ranger.
Red Hat Developer · 6 usability improvements in GCC 15 | Red Hat DeveloperGCC 15 brings better error messages and diagnostics for your code, including prettier execution paths and easier-to-read compiler errors for C++ templates

"the RISC-V port of #GCC was introduced only in GCC 7.5.0—a version that requires C++ and cannot be bootstrapped! To this end, we have been improving MesCC, the C compiler that comes with Mes, so it is able to build GCC 4.6.5; meanwhile, Ekaitz Zarraga backported RISC-V support to GCC 4.6.5, and backported RISC-V support from the latest tcc to our bootstrappable-tcc."

That’s the kind of heroism in #software development that you rarely hear about:
guix.gnu.org/en/blog/2023/the-
gnu.org/software/mes/

guix.gnu.orgThe Full-Source Bootstrap: Building from source all the way down — 2023 — Blog — GNU GuixBlog posts about GNU Guix.

The #Maneage #reproducibility system for scientific research papers that starts from a minimal POSIX-like host OS does not yet build [1] the #GNUCLibrary = #GLibC . We have a draft implementation building glibc *after* #GCC [2]; and an alternative proposal arguing that building glibc *first* and gcc second would be more long-term sustainable [[1] comment18].

Should GLibC be built first? Why (or why not)?

[1] savannah.nongnu.org/task/?1539
[2] gitlab.com/maneage/project-dev