Hacker News new | ask | show | jobs
by antonvs 24 days ago
When did you try that? The rate of improvement of models has been hard to keep up with.

I recently asked Gemini 4 Argon a question about a gcloud api, and to answer the question it decompiled the Google Java client library (without me asking) and figured out how it worked.

I do wonder if models struggle with .NET IR because there may be less info about it in its training data. When you’re working with open source systems it has much more to go on.

I’ve used models to generate ONNX IR (executable format for deep learning models), and that worked well. But the ONNX IR is much simpler.

2 comments

This was about 2 months ago using 5.6 Sol and 6.0 Astra (I used Astra for the initial steps and setup and discussion and used separate prompts with Sol in the Codex desktop app afterwards).

The issue that it ran into is that it needed to keep track of .NET assembly and type information to do do generic calls (you need a reference to the actual type/method information, which you would need to collect and keep for lookup when compiling your AST into .NET). I didn't ask it to do generics until a handful of prompts in, and the codebase was not terrible but sketchy enough that once the LLM realized it needed type information it hadn't been tracking, it tried, flopped a couple times, and reached for reflection to avoid the problem

This is the kind of thing I might have considered to flag to the LLM ahead of time if I had written a .NET IR generator before, but I'm just a long time user/typically focus on native code or transpilation. If I was writing it myself I would have noticed early on that generics should be filed under "weird shit to verify" given it requires me to track info that is not in my AST, but when I'm prompting an LLM my mind is not on that, I'm focused on the higher level constraints + semantics (ie how suspend/resume works or rules around product types etc), and not details like that

I think it could been affected by a lack of training data, I don't know how many feature complete compilers for typed languages exist out there for .NET. C# and F# of course, and there are compilers for SML, Koka, and maybe some others I cant think of, but most were for dynamic languages written many years ago.

.NET IR was standardized before .NET core even IIRC and everything I use in the .NET stack has been MIT for a long time now

I wanted to reply to this point separately instead of one massive reply

> I recently asked Gemini 4 Argon a question about a gcloud api, and to answer the question it decompiled the Google Java client library (without me asking) and figured out how it worked.

I've noticed the same sorts of things happen and its kind of funny, because at times it is the right move, and others I have to interrupt the model and remind it that there is a uh, documentation, it can just skim real quick

It is super handy but also a little funny how quick they are to "let me just reverse engineer this real quick" before considering a short search