Hacker Newsnew | past | comments | ask | show | jobs | submit | Conscat's commentslogin

Personally I'm more offended by AI generated art than I am by AI vocals in an otherwise produced track.

Well the GPU architecture matters. This particular version of the game decompiled RDNA2 shaders into Vulkan SPIR-V.

Hold on, are you saying that being kind to a woman is ideology now? Are you a native English speaker?

The developers do not set the price nor do they own any of it. Their employers own absolutely everything.

My boyfriend begged me for a whole day to contribute to this repository. I finally cloned it in front of him and compiled on Linux with libwine and clang-cl using Claude. Only one line outside the build system had to change. I was willing to contribute that fix, but he immediately became concerned it could violate my NDA and begged me NOT to. I guess now I have a (rare-ish?) copy of that repo on my machine.

Google by in large doesn't hire based on the usual metrics of merit that most of the industry operates on. Imo they'd be better off trying for a 3rd party exploit development shop.

Any form of contracts that are inferior to contracts in other languages, like Verus or Creusot, is a failure at accomplishing this goal.

A few years ago a C friend of mine had just discovered Splint and talked like it was state of the art.

Yeah, exactly my point.

Look at clang tidy, it is right there in the compiler, and yet.


This is in the C23 standard library as well, just without nice sum types sadly.

It is very easy to add one yourself though.

https://uecker.codeberg.page/2026-10-24.html


I only looked a little bit, but I noticed some things like the integer types and OS #ifdefs look different from "normal" C. Is this compatible with generic C code out there today? A bit hard to tell how compatible it is with C idioms besides what the standard strictly requires. Impressive results, this is great!

Yeah, I probably could have been a bit clearer on that front :) This is what's going on...

1) If you compile a program named myfile.xc, then xcc will run natively, it wants to see 'xc' style types (u8, u16, i32, float, etc). This is xc compiling its own language.

2) If you compile a program named myfile.c, then xcc will look up how to compile a non-native type (in this case .c) and find it has a rule to "run clang with various options to produce LLVM Intermediate Representation (IR)'. It does that, then reads and parses the LLVM IR into its own IR, and everything else proceeds as normal.

Basically it's a "proper C" front-end to the compiler's optimisation stages and eventual linker/app-production stage.

So if you have a plain unadorned C file, it gets all the auto-parallelisation, auto-vectorisation and runtime management of the best execution-method on this hardware, etc without any developer tuning or boilerplate-writing.

As for why we go through LLVM, well it seems to me that LLVM IR is "kind of" a universal assembly-language, clang, zig (for now, at least), flang, clang++ amongst others all resolve to LLVM IR as an initial step towards the executable, and if xcc can read and parse that, it becomes useful as a back-end to all these languages. The obvious "easy" case was "C", and I'm looking at C++ right now, which exercises more of the LLVM IR space. I wouldn't call it production-ready yet for C++ but it does do most of the cases I want to cover.

For the sort of thing that xc is designed for - lots of cross-platform data-parallel code, explicitly knowing the width of the types is useful, so they're annotated into the type. You do get typedef in xc if you really want 'int' rather than 'i32' (or would you prefer 'i64' ? Which is sort of the point :)

In fact, I'm in the middle of a 'consolidation' pass after 1.0 was released, which I'll take another week over or so, but next up is to do the same thing for floats - so we end up with f64, f32, f16, f8 and f4 (possibly with fp... aliases, not sure yet). That's going to be part of the next minor update along with a native tensor type (and the degenerate 2D matrix type) and operator overloading. I'll deprecate 'float' as an alias to 'f32' and 'double' as an alias to 'f64' at that point.

I've been most-recently working on the operator-overloading spec, and I think it's coming together pretty well now - the goal is to be able to declare methods as operators, so if M and Z were tensors, you could have

    tensor result = M @ Z;
... all of which would then be operated on in (probably) GPU space unless your GPU wasn't great, or the tensors were quite small :)

Hope that clears things up a bit!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: