frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: A modern C++20 AI SDK (GPT‑4o, Claude 3.5, tool‑calling)

1•cauchyk•4h ago
Hi all,

I’m hacking on new features for the ClickHouse native client and wanted the same “just call the model” ergonomics JavaScript and Python now enjoy. It didn’t exist for modern C++, so I wrote one.

ai‑sdk‑cpp (Apache‑2.0) gives you:

- Unified calls to OpenAI (GPT‑4o) and Anthropic (Claude 3.5) with a single C++20 API. - Streaming, multi‑turn chat, error handling—all std::optional/std::variant, no macros. - Tool calling (function‑calling) so the model can hit real APIs; sync or async, runs in parallel.

The tricky bit: C++ still lacks real reflection, so mapping plain functions → JSON schemas isn’t as automatic as, say, TypeScript decorators. I’d love fresh eyes on that part. Try the examples and tell me where it feels clunky. This is inspired by Vercel's AI SDK [1], and litellm [2].

Repo live here: https://github.com/ClickHouse/ai-sdk-cpp, feedback welcome!

[1] https://github.com/vercel/ai [2] https://github.com/BerriAI/litellm

Magma

https://en.wikipedia.org/wiki/Magma_(algebra)
1•based2•53s ago•0 comments

Confidence Slop

https://tobiaswirtz.github.io/writing/2025/06/29/confidence-slop.html
1•tobessebot•1m ago•0 comments

Apple pushed Wallet notifications with F1 offer, sparking backlash

https://9to5mac.com/2025/06/24/apple-pushed-wallet-notifications-with-f1-offer-sparking-backlash/
2•ColinWright•5m ago•0 comments

Unlocking Context: Using Gemini CLI as a Data Engine for Claude Code

https://old.reddit.com/r/ChatGPTCoding/comments/1lm3fxq/gemini_cli_is_awesome_but_only_when_you_make/
1•0x79de•8m ago•0 comments

We catch viral deepfakes by making CLIP, Whisper, and Gemini vote on what's real

https://fake-check.mixpeek.com/
1•philipbankier1•12m ago•1 comments

New Blood Type Discovered in France Offers Breakthrough in Transfusion Medicine

https://www.discovermagazine.com:443/health/new-blood-type-discovered-in-france-and-offers-a-breakthrough-in-transfusion
1•bookofjoe•12m ago•0 comments

I made a tool for sharing Claude Code conversations online

https://runlog.io
1•tensorpoet•13m ago•1 comments

Trump says he has group of wealthy people to buy TikTok

https://www.reuters.com/sustainability/society-equity/trump-says-fox-interview-he-has-group-wealthy-people-buy-tiktok-2025-06-29/
5•geox•17m ago•0 comments

When Earth iced over, early life may have sheltered in meltwater ponds

https://news.mit.edu/2025/when-earth-iced-over-early-life-may-have-sheltered-meltwater-ponds-0619
2•gmays•20m ago•0 comments

Show HN: Ketcher Docker – Self-Hosting Advanced Chemical Structure Editor

https://github.com/mireklzicar/ketcher-docker
1•mireklzicar•21m ago•0 comments

SongBloom: Coherent Song Generation

https://github.com/Cypress-Yang/SongBloom
1•mdrzn•26m ago•0 comments

A history of the Fillmore neighborhood in San Francisco

https://www.youtube.com/watch?v=a8h2meDtdm8
1•kaycebasques•26m ago•0 comments

Substack Is Having a Moment–Again. But Time Is Running Out

https://www.wired.com/story/substack-is-having-a-moment-again-but-time-is-running-out/
2•mdhb•27m ago•0 comments

I Transformed My Flat into a Smart Home with Home Assistant

https://jonathas.com/how-i-transformed-my-flat-into-a-smart-home-with-home-assistant/
3•jonathasrr•29m ago•1 comments

Why Artificial Integrity Must Overtake Artificial Intelligence

https://www.forbes.com/sites/hamiltonmann/2025/06/29/why-artificial-integrity-must-overtake-artificial-intelligence/
2•grigri907•32m ago•0 comments

Checking your ChatGPT traffic in 2 min and 5 clicks

https://ottic.ai/blog/how-to-check-your-chatgpt-traffic/
1•rafaepta•34m ago•0 comments

EPA plans to end the Energy Star program, with costs to US homeowners uncertain

https://www.cnbc.com/2025/06/29/trump-energy-star-homeowner-appliances-electric-bill-cost.html
3•rntn•34m ago•1 comments

Computer Simulations Reveal the Wheel's Unlikely Birth Nearly 6k Years Ago

https://singularityhub.com/2025/06/28/how-was-the-wheel-invented-computer-simulations-reveal-its-unlikely-birth-nearly-6000-years-ago/
1•Brajeshwar•36m ago•1 comments

Europe's First Exascale Supercomputer Powers Up

https://spectrum.ieee.org/jupiter-exascale-supercomputer-europe
2•Brajeshwar•36m ago•1 comments

Night lizards survived the asteroid that ended the dinosaurs

https://phys.org/news/2025-06-night-lizards-survived-asteroid-dinosaurs.html
2•Brajeshwar•36m ago•1 comments

OpenID Connect Single Sign-On Identity and Access Management

https://github.com/sebadob/rauthy
1•alex_hirner•37m ago•0 comments

Gene Drive: an alternative approach to malaria control?

https://www.nature.com/articles/s41434-024-00468-8
1•simonebrunozzi•37m ago•0 comments

Is chat a good UI for AI? A Socratic dialogue

https://www.geoffreylitt.com/2025/06/29/chat-ai-dialogue
1•lucis•41m ago•0 comments

I'm Done with Google [video]

https://www.youtube.com/watch?v=u_Lxkt50xOg
4•LorenDB•44m ago•0 comments

Autoship.dev – Development Database Setup with Instant Branches

https://autoship.dev/
1•aayush-kosh•44m ago•1 comments

Show HN: I created a popular word game using an AI coding assistant

https://ws.wordsdescrambler.com/wordsearch
2•gogo61•46m ago•0 comments

Show HN: EliteSaaS – Self-Contained SaaS Starter (Auth, Billing, Email, Launch)

https://www.elitesaas.dev
1•eibrahim•48m ago•0 comments

We accidentally solved robotics by watching 1M hours of YouTube

https://ksagar.bearblog.dev/vjepa/
29•alexcos•49m ago•34 comments

Beyond the Hook: A Technical Deep Dive into Modern Phishing Methodologies

https://blog.quarkslab.com/./technical-dive-into-modern-phishing.html
6•Metalnem•49m ago•1 comments

Algorithms for Modern Hardware

https://en.algorithmica.org/hpc/
1•djoldman•51m ago•1 comments