logoalt Hacker News

julesrms • today at 2:56 PM • 3 replies • view on HN

Great to see what you're doing there, but speaking as a 30-year hardcore C++ veteran (to the extent of creating my own C++ GUI framework: https://juce.com)... When I was writing a code agent (https://github.com/juggler-ai/juggler), there's no way I'd have used C++ for an agent GUI!

Agent UIs are all markdown, HTML, big scrolling lists, text flow, unicode chars, and all the other stuff that C++ frameworks are terrible at, but which is a doddle in HTML/CSS/JS.. You are a brave man!


Replies

ia • today at 5:16 PM

This thread caused me to check out juggler. A couple hours later, I'm playing with it. This is awesome, really great work.

nico • today at 3:05 PM

> and all the other stuff that C++ frameworks are terrible at, but which is a doddle in HTML/CSS/JS

This is very interesting. I know that coding string-related stuff with C/C++ can be incredibly tedious and error prone (even hard security-wise). But all the stuff in the web-related stacks/libraries in other languages, is either already somehow being transcompiled to C to execute, or could be relatively easily ported/reused by directing an LLM/agent to do it

Do you think that could work to make C/C++ better at this? What things would you import/copy from elsewhere?

➕ show 1 reply
joshheitzman • today at 3:40 PM

I used the wxWidgets C++ GUI for my coding agent ( https://github.com/fluxmoot/fluximp ) not directly in C++ but in Python via wxPython. While wxWidgets doesn't have a full browser level implementation of HTML/CSS/JS it has enough HTML support for rendering markdown converted to HTML just fine. I'd imagine Qt would have no problem with markdown either.