@code_disaster@mastodon.gamedev.place
@code_disaster@mastodon.gamedev.place avatar

code_disaster

@code_disaster@mastodon.gamedev.place

Coding cowboy @ Robotality. Demoscene lurker & cross-platform hacker at night.

May toot about non-technical stuff in German now and then.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

This is very helpful, Visual Studio.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

Remember my Linux desktop hard-crashing when compiling large C++ code bases?

And that I nuked Pop!OS, installed Debian 12, and ran memtest86 for a night?

It's still crashing. So is the CLion IDE when doing "heavy work", like indexing.

I figured out that I can get past the crashes when compiling with only two cores.

So looks like it might be the CPU (a i7-4790K) that is dying.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

Had a brief look at Tilde, the compiler backend library for Cuik:

https://github.com/RealNeGate/Cuik

Its C API is very clean. I'm compiling/writing a simple executable, one which returns 42, in just about 15 lines of code.

Could now start emitting functions & instructions. You know, to have the program actually do something.

Please don't tell @badlogic .

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

There's an email in my spam filter, received last night, about a topic I did an online search just two hours ago.

I don't remember ever looking up that topic before.

This is fine.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

I now know two reliable ways already to hard-crash my Pop!OS desktop by just compiling some piece of software.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@Doomed_Daniel No, but my brief tests didn't show any errors. Yet.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@Doomed_Daniel All green after about 8 hours of memtest86.

Might try switching off of Pop!OS. Debian 12 with Xfce maybe.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

At some point last night my Linux PC decided to start/reboot(?) from suspend and happily kept running to greet me in the morning.

Just like any grown-up desktop OS. 😜

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@Doomed_Daniel I might have shaken the system up a bit lately.

For example, I'm able to crash the desktop, hard, and reproducible, by compiling a fairly large C++ codebase in CLion in Release mode.

It's like the worst superpower.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

Hi! I'm Daniel. I write code "professionally" since 24 years now.

It just took me a good chunk of an hour to figure out how to use basic_iostream correctly(*).

(*) and with "correctly" I mean "it works now", but I honestly can't tell if I've done it right.

djlink, to random
@djlink@mastodon.gamedev.place avatar

a few movies that flopped at box office but are actually great:

Blade Runner
Blade Runner 2049
Shawshank Redemption
Children of Men
Fight Club
Iron Giant
The Thing
Office Space
Dredd (Karl Urban one)
Scott Pilgrim vs World

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@djlink Shawshank Redemption is one of the greatest movies ever made in my personal list.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

What's the matter with Debian 11, with all patches applied, is still on GLIBC version 2.31, which was released in Feb 2020?

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@AngryAnt I want to build a binary and test/run it on a remote machine. The number of stumbling stones and "oh, don't do that!" blockers along the way is astonishing.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@AngryAnt Static link glibc? "You don't want to do that."

Build with an older GLIBC version on my desktop system? Descriptions I found look terrible.

Downgrade my Debian-based desktop which apparently received updates in the past three years?

Build on a different remote PC (CI) and copy/deploy from there works. 😴

I'm about to try setting up Docker to create a container running Debian 11 to build the binary to copy to the remote server.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@AngryAnt Of course I can setup my whole dev environment on the remote server, clone the code and build. You know, the Linux Way (tm).

But this is a vServer I pay a few bucks/month, has 1 vCPU and 2 GB, and I don't want to pay more just to toy with it.

And all of that's because some weird runtime library version mechanism with no easy (sane?) way around it.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@Doomed_Daniel @AngryAnt Interesting. Never heard of that before. Thanks for the tip.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

I'm in OpenSSL version/dependency hell.

It's kinda hot down here.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

I'm trying to call a C++ function which takes an argument of type std::istream, and I've not felt so much pain and despair in a very long time...

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

So instead of calling foo(bytes, len), I'm now wrapping a couple of data types/classes for the sole purpose of being able to call The Thing.

Oh, and it probably does a few extra copies too. I didn't dare to debug step through it yet.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

Dear C++ standard library people, rdbuf() and setg() are not exactly catchy function names.

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

I recommend "reading" the <streambuf> header.

Sputn gptr _Gnavail.

code_disaster, to random
@code_disaster@mastodon.gamedev.place avatar

I'm about to rediscover the horror that is trying to link anything to mysqlclient.lib on Windows.

What's the hot shit for connecting to a database using C/C++ these days? Is this Connector/C++ thingy any good? (maybe I shouldn't even bother asking since there's an Oracle stamp on it.)

code_disaster,
@code_disaster@mastodon.gamedev.place avatar

@Doomed_Daniel I don't know. Probably not. I want to "port" some existing code which issues MySQL queries. No need to introduce yet another abstraction layer.

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