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!
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.
Well, my attempts at mode 7 rendering are getting... somewhere. Obviously my math is screwed up. If anyone wants to take a look at it, I'd love some help: https://codeberg.org/KelvinShadewing/brux-gdk/src/branch/main/rte/src/brux/flop.cpp
#GameDev #CPP #SDL #Linux #OpenSource
"C is a simple language. This is fact I agree with and appreciate. It is the reason for C's endurance. If someone posts a patch or submits a PR to a codebase written in C, it is easier to review than any other mainstream language. There is no spooky at a distance."
“I can stick with the [Canadian Pension Plan], which is one of the most effective things in the world, or I can gamble with you idiots."
#canPoli #CdnPoli #ABPoli #CPP #pension #AlbertaNext
https://www.cbc.ca/news/canada/edmonton/alta-next-panel-1.7587269
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.
Visual Studio 2022 Version 17.14.9 Release Notes | Microsoft Learn.
buff.ly/A0xM00n
#vs2022 #visualstudio #dotnet #githubcopilot #productivity #cpp #xaml
Visual Studio 2022 Release Not...
Visual Studio 2022 Version 17.14.9 Release Notes | Microsoft Learn.
https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes?tabs=allfeatures#17.14.9
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] https://github.com/OpenSourceSourceTrail/Sourcetrail
[2] https://codeberg.org/guix/guix/pulls/1229
After few years, a new big release of Deer Portal has just arrived - 0.9.1.
About news such migration to SFML 3, optimisations and rewritten GitHub actions system you can read here: https://devcarpet.itch.io/deer-portal/devlog/985516/new-release-091-deer-god-resurrection
#DeerPortal #GameDev #SFML #CPP #BoardGame #BoardGames @sfml
@mage_of_dragons Curious, why/how would implementing a chain of six abstract Java classes turn that chain into a tree if implemented in C++?
Every time you see an inheritance chain of six abstract classes in Java, don't be mad. Be happy that the project wasn't in C++ where you'd have to debug an inheritance tree instead of a simple chain.
Has someone performed any micro benchmarking of COM/WinRT against PInvoke?
I.e. I have a wrapper in WinRT, and call some Win32-function, vs calling the Win32 function directly from C#?
Smarter, workspace-aware code completions for C++ in VS Code.
https://devblogs.microsoft.com/cppblog/smarter-workspace-aware-code-completions-for-c-in-vs-code/
So... I decided to rebase the project codebase.
The results of my work you can see here https://gitlab.com/xolatgames/birdy-wants-crisps
So as you can see - the work on the project is in full swing
But while I "rebase" the source code of the project - it can't will be running!
@JSAMcFarlane OTOH class templates: often (must be) written, almost always complicated.