toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#cpp

6 posts6 participants0 posts today
RobfromCalgary<p>Perhaps most questionable, the fiscal projections appear to treat investment income from a separate Alberta Pension Plan as government revenue available to cover general expenses. <a href="https://mstdn.ca/tags/abpoli" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>abpoli</span></a> <a href="https://mstdn.ca/tags/ableg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ableg</span></a> <a href="https://mstdn.ca/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> <a href="https://mstdn.ca/tags/app" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>app</span></a></p><p><a href="https://thehub.ca/2025/07/24/trevor-tombe-a-separate-alberta-would-be-a-poorer-alberta/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thehub.ca/2025/07/24/trevor-to</span><span class="invisible">mbe-a-separate-alberta-would-be-a-poorer-alberta/</span></a></p>

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 have saved me time in the future?

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.

hm. VScode Intellisense doesn't seem to be able to autocomplete "acorss namespaces", i.e. it won't suggest symbols in other namespaces.

Which may have catastrophic consequences if it did, but I still want it,since I put everything in namespaces for my project.

Oh, and codeblocks doesn't manage nested namespaces at all.

Just submitted a patch to #Guix adding Sourcetrail[1]! (PR #1129 [2]) It's a cool little tool and it was fun packaging it. Walking around a C/C++ project with a graphical tool is a great way to try and get a handle on what the big important functions and data structures are.

[1] github.com/OpenSourceSourceTra
[2] codeberg.org/guix/guix/pulls/1

Sourcetrail - free and open-source interactive source explorer - OpenSourceSourceTrail/Sourcetrail
GitHubGitHub - OpenSourceSourceTrail/Sourcetrail: Sourcetrail - free and open-source interactive source explorerSourcetrail - free and open-source interactive source explorer - OpenSourceSourceTrail/Sourcetrail