On 11/18/26 12:41 PM, Andrew MacLeod wrote:
Yeah, my goal is to articulate what I can going forward instead of just
containing it locally in my head.
Another thing I'd like to have people think about as well... over the past couple of months as I
do ranger stuff, I've been consulting and shadowed by AI... both Anthropic and OepnAI. and I've
been building a .md file that has ranger skills that can be consulted when working on something..
It is "deep" in that it has not just information, but rationale for why A is better than
B, and common pitfalls when working with ranger, best practices, etc.. just whatever comes up in
day to day stuff. A "virtual Highlander" if you will..
Yea. Aldy has described this to me and I think it's fantastic. If we
weren't looking to rip out DOM I'd seriously consider doing the same in
that space -- it'd be a larger effort considering DOM's age.
There is no obvious place to put such a thing these days that I am aware. we
could check something into gcc/contrib I suppose. It could exist on the
wiki.. but then its pretty static. Does anyone have any thought about where
we might want to store such things? *IF* we want to store such things? Has
any one else been doing anything like this? I know the AI stuff is fairly new
to GCC, but it seems like building a repository for gcc skills might be quite
useful going forward...
This is a separate but related question. I'm in a similar boat in that
I've got a fledgling claude skill which looks at every pattern in a .md
file individually to try and verify input RTL semantics match the output
assembly/output RTL semantics. I've actually done a pass over the
entire RISC-V port with it and it's been well worth the effort and I
think a pass over another port is in order, then cleanup, then make
available to world. I suspect we should do the same kind of
investigatory work across match.pd (for example). In parallel I've
got an claude skill which will grub through assembly fragments and look
for opportunities to optimize the code -- which has also been well worth
the effort. Point being we need a way to start sharing this stuff so
everyone can benefit.
I also have a performance skill that I now use which I can just ask for any
given patch what the performance impact it... The AI can go to some other
machine, create a baseline compiler, apply the patch, and using
valgrind/callgrind and GCC's own sources, tell me what the general impact of
the patch is. If it causes a slowdown, it will drill down and analyze where
the slowdown is and what the root cause is. I use it on every patch I commit,
and its been quite handy. This sort of skill is also something that could be
useful to others.
Very cool. I haven't written a skill for it, but in the process of
target description review and assembly review I'm often using LLMs to
generate tests, reduce tests, toplevel evaluation of where to fix missed
optimizations, scanning .combine dumps, etc. There's a *ton* of useful
things we can be using LLMs for. Yours is just another great example.
jeff