taxorubio, to programming
@taxorubio@fosstodon.org avatar

It's one of those Mondays...

taxorubio,
@taxorubio@fosstodon.org avatar

I hereby declare war on int.

numeredevs,
@numeredevs@fosstodon.org avatar

@taxorubio Yeah, especially important, if you write files in binary mode and don't lock the bit sizes. We had that problem also during the 64 bit migration

juulcat, to cpp
@juulcat@mastodon.gamedev.place avatar

Moving our games programming videos - currently Runtime Compiled C++ - to the new dedicated enkisoftware Youtube channel. Consider giving it a subscribe https://www.youtube.com/@enkisoftware

dougbinks, (edited ) to random
@dougbinks@mastodon.gamedev.place avatar

Rapid Development with Runtime Compiled C++ Talk & transcript:

This is a decent introduction to the RCC+ tech I developed with Matthew Jack, and have continued to develop and use in Avoyd. It's an old talk (Develop conf 2012) but still relevant.

Many thanks to @juulcat for videoing the talk and writing up the transcript.

https://www.enkisoftware.com/devlogpost-20240528-1-Rapid-Development-with-Runtime-Compiled-C++-Talk

cmaureir, to cpp
@cmaureir@mastodon.social avatar

Wanna join the development team in charge of the official Python bindings for the Qt Framework? 🐍

We have an opening for the Qt for Python team, which is currently developing PySide and Shiboken! 💻

If you know C++, Python, and perhaps a bit of CPython internals,

Join us! https://www.qt.io/open-positions/python-and-c-software-engineer-all-levels

#pyside #qt #shiboken #qtforpython #cpython #cpp #python

sos, to cpp
@sos@mastodon.gamedev.place avatar

Just looked up how to do callbacks in C++ and YOU CAN'T (unless you write a bunch of templates and wrappers yourself).

When you pass a pointer to non-static member function, yopu need to handle the class pointer yourself. This is like the simplest thing, why can't C++ have that?

Love how the ISO standard website just tells you "Don't". What a joke.

#cpp #programming

gracicot,
@gracicot@mastodon.social avatar

@sos @morten_skaaning If you want to create a callback just out of a member function and this the STL actually got it for you, no need for templates:

auto callback = std::bind_front(&type::member_function, this);

It's a bit like javascript where you need to bind a class function with an instance to properly use it as callback.

gracicot,
@gracicot@mastodon.social avatar

@sos @morten_skaaning The other answer would be of course "just use a lambda" because they work for pretty much all cases, even for C functions that can get a void*

professorhank, to cpp
@professorhank@sfba.social avatar

Come check out my latest C++ video. Leave a note in the YouTube comments letting me know how I did.

https://youtu.be/dArZpIrMftY

#LearnToCode #cpp #programmer #programming

br00t4c, to cpp
@br00t4c@mastodon.social avatar

CPP Investments CEO welcomes talk of how to make Canada more of a destination for investment

#cpp #post

https://thelogic.co/news/cpp-investments-ceo-welcomes-talk-of-how-to-make-canada-more-of-a-destination-for-investment/

jackwilliambell, to cpp
@jackwilliambell@rustedneuron.com avatar
molecularmusing, to gamedev
@molecularmusing@mastodon.gamedev.place avatar

Live++ 2.5.2 out now:
More robust PDB reader, source path filters for compilands, and a bugfix for hot-deoptimize.

smurthys, to cpp
@smurthys@hachyderm.io avatar

Y'all leave reminders like this too in your C++ code at end of day? 🤔

static_assert(false, "Complete this first. Don't get distracted");

#softwareDevelopment #management #focus #prioritization #cpp

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@smurthys
I prefer to leave a failing test of the next thing I plan to implement.

DanielaKEngert, to cpp
@DanielaKEngert@hachyderm.io avatar

Dear Fediverse,

in case you care, I'd love if you'd vote for this issue of mine:

https://developercommunity.visualstudio.com/t/Cconstant-evaluationModules-Cons/10661450

Serious constant evaluation and C++ modules seem to live on different planets.

Thanks, much appreciated! 🩷

darkcisum, to cpp
@darkcisum@swiss.social avatar

Cross-platform, cross-language development is quite tedious... 🙃

You need to wait for builds to finish, then test on three different OS with different ways to load things.

At least with a Windows machine, you get a Linux environment via WSL2 for free, although it doesn't launch via dotnet run.
And finally you also need access to macOS somehow.

But it's quite satisfying seeing the library build automatically on all the different configurations: https://github.com/SFML/CSFML/pull/249

#c

jbzfn, to cpp
@jbzfn@mastodon.social avatar

🧑‍💻 Butano: Modern C++ high level GBA engine
— GValiente

https://github.com/GValiente/butano

sinbad, to cpp
@sinbad@mastodon.gamedev.place avatar

Ooh, I do like the new "Sticky Lines" feature in Rider 2024

julienbarnoin, to cpp
@julienbarnoin@mastodon.gamedev.place avatar

All this time I've been using the return value of snprintf as the number of characters actually written, when it's in fact the number of characters that would be written if the max size passed in were large enough.

In fact: "If the resulting string would be longer than n-1 characters, the remaining characters are discarded and not stored, but counted for the value returned by the function."

BRB, got a bunch of files to go back over... 😓

#c #cpp #programming #gamedev

gfxstrand,
@gfxstrand@mastodon.gamedev.place avatar

@julienbarnoin Yeah, IIRC Windows just returns -1 if there's an overflow.

julienbarnoin,
@julienbarnoin@mastodon.gamedev.place avatar

@gfxstrand Good to know, will definitely be checking that.
Of course to be sure I should check the behaviour on Windows 11, Windows 10... Windows 8.1, Windows 8... Windows XP, 2000... Windows Me, no just kidding on that last one.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines