helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

160
active users

#clang

2 posts2 participants0 posts today

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.

Both of my talks from @fosdem last weekend are now available online.

"Return To Go Without Wires" about using Go/TinyGo to make your own AirTags without any Apple hardware:

cuddly.tube/w/p/2H3BJMkJZEJRUS

"Seeing Eye to Eye: Computer Vision using wasmVision" in the first ever WebAssembly dev room at FOSDEM:

video.fosdem.org/2025/k4601/fo

Are you developing macOS applications but working on Linux? Dreaming of creating macOS binaries without a Mac? Forget about needing a Mac to build macOS apps! Find out more in our thread: forum.dekuve.top/d/27-a-macos- #apple #macos #linux #windows #android #opensource #TechNews #technology #photography #development #ios #dekuve #code #github #ai #forum #news #programming #help #cpp #clang #education

Just a few days ago, I lunched my new relay service for the #Fediverse and I'm really happy to see that there're already many ones connected to - more than 50 instances in just a few days!

But what makes me even really happy is to see, that my service [2] also gets linked in the release notes of #snac [1] / #snac2 - and I can recommend the usage of relay services (it doesn't matter which one!) to everyone. It provides more content from connected instances to you, but also brings your posts - from your local instance - up to other ones within the federated network where it can get much easier distributed around other instances.

#snac is the perfect way to host an own fediverse instance. Using the #ActivityPub protocol allows you to connect to all other instances. With the integrated #Mastodon API, you can also use most of your usual clients or web clients. Snac is light, fast, does not require any database and follows the KISS way - which the most of us BSD people are living. With relay services, it's the perfect match for singe-user instances and @grunfink is always open for ideas and to help! It does not always need to be #Mastodon, #GoToSocial etc!

And if you're using any other software, you may still benefit by using relay services. And if you're still looking for a guide, howto setup snac2 on #FreeBSD, my howto [3] might help you out.

[1]: codeberg.org/grunfink/snac2
[2]: fedi-relay.gyptazy.com
[3]: gyptazy.com/install-snac2-on-f

Stop reading the news and figure this out instead. On #OpenBSD 7.6, amd64, compile this with the default #clang:

#include <float.h>
int main(void) {
double v = DBL_MAX;
int v2 = v;
if (v2 != v) return 0;
return 1;
}

Does what you think no? Now try the same with -O2 and it crashes. 🤷🏼‍♂️🤷🏼‍♂️😵‍💫😵‍💫 Doesn't matter the inequality or type of v2 so long as it's integral. Manual casting doesn't work. Always crash. Any educated guesses better I dig thru the assembly?