Andreas Fertig

I will be speaking at Meeting C++ 2025! The talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!

#cpp #cpp20 #cplusplus

Gareth Lloyd (He/him)

I spent all day digging into code to discover and fix this issue.

auto make_func(int v) {
auto f1 = [&] { return v; }; // OK
auto f2 = [=] { return f1(); }; // OK
return f2; // DANGER (has reference to local `v`)
}

int main() {
auto f = make_func(42);
return f();
}

I'm glad I found it, but is there any tooling that would save future me from spending so much time?

#programming #cpp #cplusplus

Jul 23, 2025, 15:57 · · · 0 · 0
Perpetuaλ β 🇺🇦 :emacs:

Unfortunately the state of graphics programming frameworks in #commonlisp is not quite there yet, so it seems I'll be crawling back to #cpp and #openframeworks for my graphics needs.

Bits and pieces are there in the lisp ecosystem, but there's nothing at the moment that ties it all together in the way that oF or Processing does. In the future I might think of going down the Clojure/quill route, as it seems I should be able to leverage the full power of a lisp and all of Java/Processing.