Dani (:cxx: modules addict) · @DanielaKEngert
318 followers · 1023 posts · Server hachyderm.io

@PeterSommerlad It does.

In this particular case, MSVC rejects one version of invalid code and incorrectly accepts the other. And I even totally understand why: the Modules TS had a different grammar.

Both Clang and gcc are even worse: they accept *both* ill-formed variants. And they don't have the "legacy" excuse.

#clang #gcc #msvc

Last updated 1 year ago

Kevin Karhan :verified: · @kkarhan
1490 followers · 108400 posts · Server mstdn.social

@argv_minus_one @retronianne and even the are replaceable - and that is a good thing.

In fact if / support would be where it should be, I'd even ditch for OS/1337...

os1337.com/

#os1337 #gcc #llvm #clang #GNUtils

Last updated 1 year ago

dana :blobhaj_witch: · @blinkygal
217 followers · 1487 posts · Server sunny.garden

It took a... few more days to work through all the ways types exist in Subspace without hitting an unreachable() in my type picker-apart-er. But you can see it live now here! See how the Result return type is made up of three links?

suslib.cc/sus-num-i32.html#met

In a particular order, the worst things to try pull apart the types from in are:
1. Partial template specializations (template <class T> struct S<T, int>)
2. Dependent names (A::B)
3. Everything else wasn't so bad

Those 2 felt like Clang was trying to keep the information I need from me, like null pointers in the type tree where they normally give you the answer you need.

#subspacecpp #clang

Last updated 1 year ago

dana :blobhaj_witch: · @blinkygal
208 followers · 1430 posts · Server sunny.garden

FWIW here's the possibly beautiful iterator expression over some of the AST. :BlobCat_Flower:

#clang

Last updated 1 year ago

Nick Desaulniers · @llvm
324 followers · 11 posts · Server fosstodon.org

Being able to build the kernel with is a great thing for both projects.

We were able to revert 2 commits in LLVM today from having the kernel as a large test case! 2 in one day is a new record (for us).

1. github.com/ClangBuiltLinux/lin
2. github.com/ClangBuiltLinux/lin

#linux #clang

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
114 followers · 595 posts · Server fosstodon.org

I wonder if `funcref_t` and `__builtin_wasm_table_*()` will be available in clang 17 🤔

#wasm #clang

Last updated 1 year ago

Sean · @fossean
0 followers · 55 posts · Server fosstodon.org

Just got done making my first program in . It's nothing special just a challenge but strings in this language mess with my brain so it took about 2h. Really interesting nonetheless and i actually learned something. I now understand that char* can be dynamically allocated and char[] is fixed at compile time (i hope lol).
If you got any beginner coding challenges for me shoot, i'd appreciate it.
ChatGippity is also a great resource when needing something explained.

#clang #fizzbuzz

Last updated 1 year ago

Popularity of languages from August ( is 28 at 0.68%).
Has its limitations, but a couple of points worth noting :
1. and are holding rather well
2. languages that are involved in some sort of data analysis and processing (, /c++) are doing very well. Not sure what to make of ; are ppl in seeing through the reality is a scripting over extremely performant c/c++ and that there are other lang that can glue as well?
& are ⬆️

#programming #perl #cobol #fortran #SQL #clang #python #ai #golang #julia

Last updated 1 year ago

Jan <3 :gopher: 🛹 · @rollbrettklauen
12 followers · 338 posts · Server fosstodon.org

After being *meh* about C () at first, I will admit, that it’s not that bad after writing it s bit more.

#clang

Last updated 1 year ago

Jan <3 :gopher: 🛹 · @rollbrettklauen
12 followers · 329 posts · Server fosstodon.org

Is there a way in C to store any pointer in a data structure and write to it?

Somewhat like that, but I want to be able to write any type to that pointer.

I will be preserving type safety via an enum.

#clang #c #cpp

Last updated 1 year ago

Giovanni Crisalfi · @gicrisf
87 followers · 323 posts · Server fosstodon.org

I never wrote Assembly in my life, but tonight (for some reason) I thought of disassembling simple C code snippets with Ghidra. So, I started with a hello world and was very surprised to find a much more extensive and complex result compared to my original assembly (obtained with GCC).

I mean, it's a Hello World!

#ghidra #gcc #clang #assembly #asm

Last updated 1 year ago

Sonny Bonds · @SonnyBonds
287 followers · 863 posts · Server mastodon.gamedev.place

Been trying out building with clang (official LLVM binaries) on Windows because it would be kind of nice to build with the same compiler on all platforms, but it's really slow?

Consistently getting about 80% longer build times with clang. (Linking is actually ms' LINK behind the scenes so the difference is in c++ compiler.)

Not sure if I have some setting wrong so it does additional work or what's going on because the difference is so big.

#clang #visualstudio #cpp #cplusplus

Last updated 1 year ago

· @mort
103 followers · 671 posts · Server fosstodon.org

haha, I have some code which deterministically segfaults .

#clang

Last updated 1 year ago

dana :blobhaj_witch: · @blinkygal
183 followers · 1230 posts · Server sunny.garden

I spent some time on for this week and hit some big new milestones. Finally showing template parameters and requires clauses on functions and classes. Constructors are rendered.

And concepts are now rendered!

For example, Ord: danakj.github.io/subspace-docs

Also headers are self-links, links across pages have been added throughout the docs, I added some extensive docs for collections and options based on the Rust docs but C++ified.

There's now breadcrumb links at the top back to the parent namespaces.

There's lots to do but it's starting to actually look like useful docs now.

One BIG todo is to break apart a QualType into a structure that can be reconstructed into a string for display, but for which all types within it have a chance to be turned into links. Like Option<u32> could become a link to Option and to u32. Similarly, breaking a apart constraints (requires clauses) so that types within it can become links.

These need some serious knowledge though, maybe someone out there is interested in this?

#subdoc #subspacecpp #clang

Last updated 1 year ago

Michael Henderson · @mike
24 followers · 224 posts · Server blazinggophers.com

"To be fair to C and C++, if you set yourself the goal of crossing an 8-lane freeway blindfolded, it does make sense to focus on doing it as fast as you possibly can."

-- Russ Cox, talking about undefined behavior and compiler optimizations

research.swtch.com/ub

#golang #clang

Last updated 1 year ago

· @Mek101
167 followers · 1637 posts · Server fosstodon.org
Lawrence Murray · @lawmurray
170 followers · 137 posts · Server fosstodon.org

This idea of instantiating C++ templates with std::variant turns out to be more complicated than I thought once compiler optimizations are enabled, but function attributes provide the fix. The example code now looks like this. Full write up here: indii.org/blog/revisited-combi

#cpp #cplusplus #programming #clang #gcc

Last updated 1 year ago

Felix Palmen 📯 · @zirias
39 followers · 183 posts · Server techhub.social

Trying to get this to the other archs supported by 's (amd64 and i386), I'm hitting yet another wall: headers fail to build there. Oh freakin hell, I expected to do quite some adaptions to support all 3 archs, but I didn't expect it to fail at *this* stage 🤯

Already tried to understand what happens in Linux' build system. Well, it's not exactly easy to understand 🙄

Shot in the dark, trying it with (instead of the base ) now... (which will take a while cause my test machine has to *build* this gcc first, bah ....)

#freebsd #linuxulator #linux #gcc #clang

Last updated 1 year ago

synlogic · @synlogic
208 followers · 2778 posts · Server toot.io

I just realized & and * are adjacent on the keyboard

me: programming in C for [REDACTED] decades

thank you for coming to my TED Talk (TM)

I'll show my way out...





#programming #c #clang #computer #keyboards

Last updated 1 year ago

synlogic · @synlogic
207 followers · 2758 posts · Server toot.io

favorite programming language: Go

2nd: Python

3rd: C




#programming #golang #python #c #clang

Last updated 1 year ago