Re:Show HN: A modern C++20 AI SDK (GPT‑4o, Claude 3.5, tool‑...
by fsloth on Wednesday July 02, 2025 @08:20AM
(#44442828)
“mapping plain functions → JSON schemas”
In general I’ve found it’s much better in C++ to be verbose and plain rather than succinct and elegant.
Javascript and python lack typing so being pithy&clever in those languages has entirely different implications than in C++.
“How can I express this in the most basic, unsurprising and plainspoken C++” is usually the right question to ask. “How can I make this more elegant” is a question better suited for other languages imho.
In general I’ve found it’s much better in C++ to be verbose and plain rather than succinct and elegant.
Javascript and python lack typing so being pithy&clever in those languages has entirely different implications than in C++.
“How can I express this in the most basic, unsurprising and plainspoken C++” is usually the right question to ask. “How can I make this more elegant” is a question better suited for other languages imho.
The best C++ API when in doubt is a C style API.