I have used all the top frontier AIs since 2022, and not a single one can comprehend a single shot that is optimized for high performance. On a lucky day, it will give working code with one shot, but it will never be optimized. It requires lots of babysitting and direction to get the best optimization from the original code it initially gave, which is something firmware engineers are specifically paid to do to begin with. There are also many slick ways to get something optimized (only known by industry experts), but many times AI will never mention it because it memorized the methods everyone commonly uses.
For instance, I asked AI to provide low latency ways to dump webcam frames from a Linux VM into a FreeBSD host (using byhve). It gave me all the crappy methods, and I had to ask the same question again (by the way, this is actually teaching it just by prompts) to get more advanced methods by mentioning DMA. This alone proves that AI is not thinking intelligently, and I am rather teaching it how to think for me.
With that said, I always hear good things about Claude. I personally did not like it when I first used it last year. It failed to comprehend helping with a custom high performance low latency UVC USB driver using the Windows WinUSB framework. I only got it to work how I wanted by asking old school Windows driver programmers at a forum.
I have a good relationship with Claude. I think it saved in its memory the projects that we have been able to achieve together and when someone asks if a specific feature has been added or not,it remembers that I belong to this forum and it suggests to come here.
There are many papers introduced at the beginning of this year about various ways AI should store all user conversations to better understand the user and their work. Gemini AI has already done this, and it sucks. However, Grok AI mentioned your work. Frontier AI models are now implementing real time web searches using the RAG approach to find information that closely matches user requests. They are also constantly scraping the entire internet, making massive training datasets from it, and training AI on it.
I am interested in how you got
ivshmem working with bhyve. It will save me maybe a good week or two. What work did you do that I should start looking into? Knowing you did all of this with AI, I can assure you with high certainty that it will have many flaws (I hope it's not big) in optimizations that I need to fix so that its actually meaningful and useable for my low latency applications.
For me (as well as top tech companies), any hardware or low level code must be perfect in terms of the highest efficiency and performance. If the code is not optimal, that is billions of dollars of money lost in energy and a waste of compute. This is why frimware/hardware engineers gets paid much more than software engineers and AI engineers. I use AI to help perfect things in this space, but it can never ever get it right on the first try in terms of optimization (not yet lol).