I am also a very avid C++ avoider but if I am in a meeting with this author and they tell me we need to use C++ for something, I'll take it.
Because I trust pain more than smarts. And I do agree that we are coming to a point there will be a better compiled language. Rust actually broke the untouchable status of C/C++. In my opinion the final popularity blow will come from something else. I wish I knew what it was.
In what way? "Beowulf clusters" were built out of off-the-shelf machines connected through relatively normal (if high-speed) networking, running MPI programs on Linux. That's what distinguished them from the more expensive, more custom HPC systems of the day.
In the way of it being a pipe dream relentlessly pursued…in words only…by many nerd types. So much so it turned into a meme during the 90’s. Like someone would mention a hamburger and someone else would say imagine a Beowulf cluster of those.
I kinda doubt ggp’s Plan 9-linked idea has enough legs to take it that far though.
DuckDB is what I used in the blog post. Re-running this query simply recomputes everything from the start. I didn't store intermediary that would allow starting off from where the query stopped. But it's possible!
I don't think that this approach is that good. First of all, you need to write a custom "interface" file. Then, you need to integrate running of swig into your build process, which makes the build complicated.
With sol, it's much easier - you just register function/classes in your C++ code - it's much easier to do than with Lua C API and doesn't require running any "post-processing" steps at all.
Have you tried sol2? It's vastly more capable and transparent. It's also 100% native C++ code, so is just part of your application, with no extra tooling required.
https://www.goodreads.com/en/book/show/43889703
https://www.goodreads.com/en/book/show/25733505
And some of the myths you have may be dispelled :-)