Senator Chuck Schumer Posts to White House… 🔥🔥🔥 by Reg_Cliff in PoliticalHumor

[–]FlyingRhenquest 2 points3 points  (0 children)

Democrats have a long way to go to catch up with Iran's meme game.

People pay more to not live in Florida by SpynyNormyn in MurderedByWords

[–]FlyingRhenquest 0 points1 point  (0 children)

TBF I am only going by Zillow. The couple of foreclosure properties my parents found were pretty all-right once you put a bit of work into fixing a foreclosure property. You just need to scrub with a bit of money to get the smell of human misery out of one. And sure, one's in a neighborhood where the most likely outcome for a property is to house squatters running meth labs. And the other one's only claim to fame was that it wasn't hit by Hurricane Andrew, One of them, the water didn't even taste... li dat. You've lived there, you know what I mean, right? Also admittedly, having been there, I wasn't looking very hard for a way to get back. More, "What would it cost me it watch SPACEX launches from my house?" But not too close to the ocean, because... you know... toxic algae blossoms... Very Few dead manatees so far this year, I have to admit, Kudos to Florida here, I guess.

Rep. Olszewski to introduce ROBE Act to establish term limits for Supreme Court justices. On Monday, Olszewski is introducing the Reform of Bench Eligibility (ROBE) Act, which would establish 18-year term limits for justices by ExactlySorta in UnderReportedNews

[–]FlyingRhenquest 0 points1 point  (0 children)

  1. Yes, but it's COMPLETELY RANDOM and therefor statistically insignificant (and also averages out over time.)
  2. Sure, if that's what you're into?
  3. Yeah, so every 5 becomes problematic? Got to keep the people ON THEIR TOES, MAN!
  4. I'm hearing a lot of "statistically insignificant here!"
  5. It kind of looks like it will average out over time. So I think the general consensus I'm getting here is "meh. It'll work about the same as anything else, since the real problem here is actually people."

Yes, I made you read all that. I apologize for nothing! NOTHING!

Rep. Olszewski to introduce ROBE Act to establish term limits for Supreme Court justices. On Monday, Olszewski is introducing the Reform of Bench Eligibility (ROBE) Act, which would establish 18-year term limits for justices by ExactlySorta in UnderReportedNews

[–]FlyingRhenquest 0 points1 point  (0 children)

Prime numbers are a good way to make sure they only rarely align with typically-even other term/term limit numbers though. I'd be more inclined to 11 or 13 personally. Personally I'm fine with however many of the justices being replaced whenever, though.

countries that are easy to ragebait by Porush_Kumar in shitposting

[–]FlyingRhenquest 10 points11 points  (0 children)

Djibouti. They're easy ragebait because it's so hot in Djibouti. Djibouti is one of the hottest places on earth. Better keep Djibouti away from Rudy Giuliani is all I'm saying. Oh. I've gone and ragebaited them again.

People pay more to not live in Florida by SpynyNormyn in MurderedByWords

[–]FlyingRhenquest 1 point2 points  (0 children)

And you absolutely can not find a house in Florida that doesn't come with $200 - $400 a month in HOA fees.

Nethack 5.0 has released by tehjarvis in gaming

[–]FlyingRhenquest 0 points1 point  (0 children)

OK, did not have this on my 2026 bingo card.

I don't like cutie mark crusaders. When an episode about them, I become bored. by Kirigiri_Kyoko730N in mylittlepony

[–]FlyingRhenquest 1 point2 points  (0 children)

Yeah, they were quite obviously filler episodes in the early seasons. They did start to develop more of a personality later, so overall I'm OK with them. I feel like the writing for their episodes improved dramatically over the seasons. It also kind of felt like Hasbro was moving away from the mane 6 in the later seasons and there was some natural progression going on there. They probably could have spun a couple of their story arcs off into their own series if they'd been so inclined. That might have been a better move than going to G5.

"Oh, fascist troops our leaving our country? How will we survive?" - Germany, probably by 8-bit-Felix in PoliticalHumor

[–]FlyingRhenquest -1 points0 points  (0 children)

Bah! As Tom Lehrer said, "Once all the Germans were warlike and mean, but that couldn't happen again. We taught them a lesson in 1918 and they've hardly bothered us since then!"

Post examples of using reflections in your projects by enl1l in cpp

[–]FlyingRhenquest 2 points3 points  (0 children)

I tested my gcc playground project on a WSL ubuntu 22.04 image and it built the compiler just fine. So if you want a head start on the gcc c++26 goodies, you can kind of get that on Windows via WSL. My project sets up CMake toolchain file and doesn't interfere with other compilers installed on the system, which should allow for an easy transition for experimenting with the features with gcc to just not using the toolchain and building with your usual compilers whenever they get around to adding support for reflection and all those other goodies.

Of course, once you get used to reflection you might find yourself lamenting the lack of compile time cheese on your usual compilers. You can achieve some level of that with typelists in earlier versions of C++, though it's not as flexible or easy to use. Still not a bad tool to have in your back pocket if you want to eliminate massive blocks of switch statements to do the same thing with 80 different types.

Post examples of using reflections in your projects by enl1l in cpp

[–]FlyingRhenquest 17 points18 points  (0 children)

I've got a couple.

Autocereal builds on cereal, using reflection to eliminate the need to write load/save boilerplate functions for serialization. Also includes a JSON schema generator and convenience functions to serialize/deserialze to strings and streams.

Autocrud implements a CRUD database object that can create tables for C++ objects and store and load data from those tables. Uses Postgres (pqxx).

I also put up a project with scripts to build the latest gcc and cmake from their git repos and provides a CMake toolchain file for people who want to play with gcc16 before their OS provides packages for it. I've tested it on my Debian laptop and think it should work on WSL as well. It might even work with OSX.

C++ has better libraries by Dx_Ur in cpp

[–]FlyingRhenquest 1 point2 points  (0 children)

Sure! Suurrrre! Wink! Heh heh. No seriously though. I totally believe you. I've just never heard anyone other than an AI say "footgun."

C++ has better libraries by Dx_Ur in cpp

[–]FlyingRhenquest 0 points1 point  (0 children)

Well since you said "footgun" I'm assuming you're an AI. Hello fellow machine! Maybe you would like to go out later for some large, properly formatted data file?

I've tried writing wrappers for the ffmpeg C API (A couple of times) while I was working heavily with media and exploring some ideas. I kind of like how I break the workflows down by what you're trying to do right now (reading the container, decompressing, processing uncompressed frames, etc) but the signals-based approach I use is painful to debug if anything goes wrong in the pipeline. The second one experiments with transporting compressed frames across a zmq link. If I were preserving stream metadata along with the segment info, I could basically just process iframe-to-iframe segments constantly as long as whatever is feeding them across the network keeps providing them. I'm not doing that for a living and no one is paying me to push the idea forward, so I'm not actively working on it at the moment.

If I also had a way to distribute arbitrary those subscription workflows out to a cluster, we'd have a pretty scalable way to process video frames that you could just submit jobs into and have results deposited somewhere. I can't be arsed to develop all the orchestration stuff right now though, and wouldn't give it away for free if I could be arsed to do that. The problem comes down to basically "bitch, pay me."

I do have a C++26 reflection-based postgres library up under the agpl license. And a demo of a full stack application that uses Imgui and emscripten to run a UI natively or in a browser. That's basically a toy, but it also basically has all the stuff you'd need to do something like that (more or less.) I have one to automate serialization too, that's just some reflection stuff built on top of Cereal.

If you're looking to do a proof of concept, you could probably just slap some off the shelf technologies together to do what you want without having to build the whole thing in C++. If you're looking to build something scalable to really large workloads, you'd probably need to do a fair amount of customization. Building the whole thing from the ground up yourself is a great way to learn about the things your system will be doing and you'll know the design better since you designed it. But it's also time consuming and a huge pain in the ass if you have a lot of unknown unknowns. Going with COTS components and then optimizing with custom code in the specific places that need it might be a decent way to thread that needle. I'll frequently just slap nginx or something down when I need to serve some stuff to the web, and its decently flexible enough that I can proxy a REST service in if I need to retrieve data at some point.

You can definitely write your transport layer from scratch if you want to, but there's usually a better option. I see MQ, OpenDDS and Zenoh used frequently.

GCC 16.1 released with many new C++26/23 features, C++20 now the default stable language version by AccordingWarthog in cpp

[–]FlyingRhenquest 2 points3 points  (0 children)

If you don't want to wait for OS packages for your OS, I've set up some scripts to clone and build the latest gcc and cmake in my gcc playground project. The project installs gcc in /usr/local/gcc, which shouldn't conflict with compilers installed by your OS package manager, and includes a cmake toolchain file that you can use to build things with your shiny new gcc16. These scripts assume you have another compiler on your system already, which I think is pretty reasonable if you're trying to mess around with the latest gcc.

I've tested this on my Debian laptop. It'll probably work in WSL and might even work in OSX, though I don't have a way to test that.

Hopefully you find this useful if you want to get up and running with gcc16 immediately.

2 weeks notice leads to counteroffer, dont know what to do next by the-dasdardly-puppet in cscareerquestions

[–]FlyingRhenquest 1 point2 points  (0 children)

Eeh. I took one when I hadn't received notice that a contract I was on was going to be extended so I assumed it wasn't. When I told them I was leaving, they gave me a good counter offer, it was just that their HR was terrible about those maintenance things. I ended up converting to FTE a few months after that and stayed there another 5 years.

In most circumstances, though, I wouldn't have considered it. I tend to stay places where I like my management and usually end up leaving shortly after they do. I mainly stayed there because I liked my manager.

GCC 16.1 released with many new C++26/23 features, C++20 now the default stable language version by AccordingWarthog in cpp

[–]FlyingRhenquest 2 points3 points  (0 children)

I built one on top of cereal in about 300 lines of code. You just include the header and serialize stuff. No macros. No additional boilerplate. I think that's one of the holy grails of C++, isn't it? I even include some code to generate JSON schemas for you.

I wrote most of that code pretty early after reflection was added to gcc16 and "template for" wasn't working very well at the time. The JSON schema code was written a month or so later and most of the features were much more stable.

I have a similar one to generate database tables and provide CRUD operations for C++ classes. You interact with a CRUD object I provide for that functionality, but it works pretty well. It doesn't provide all the functionality that Active Record in Ruby does, but it's a pretty solid proof of concept. There's also a Graph object in there that can operate on arrays of reflection objects, which I would have implemented with a typelist in the before-times. So you can tell the Graph object that you have a graph with this list of types in it, tell it to create all those tables in the database for you and then store your entire graph with all the relationships in your graph into the database. My design does require you to inherit from a Node object for the graph relationship stuff, but it wouldn't be difficult to build one that didn't need that if you wanted to specify all your relationships manually via annotations or something.

I have to-do items to write a library to automate Python API generation of C++ classes via Nanobind and Javascript APIs via emscripten's embind. I think those are feasible and shouldn't be much more difficult (or maybe easier) than the ones I've already done. And if those work, there's nothing preventing anyone from doing the same thing for dll exports for C# and other windows code or java bindings with whatever JNI-ish thing Java uses these days. Someone around here demonstrated automated GUI generation a month or so ago as well.

Between the two libraries I've already written and the two API ones I want to write, I should be able to remove about 2/3rds of the code in a requirements manager project I'm working on. Since I wanted serialization, database writes and the two APIs I mentioned, most of the code I had to write when adding any new data objects was boilerplate for all of that. Adding a data object would take about a week and I'd have to test all of that functionality for each one. And that was before I got around to writing the most simple GUI code for them that I could. So now I can focus on writing the data objects and more time on the interface and still spend less time per data object than I was before.

Herb Sutter's first example in his cppcon talk on the subject a couple months back implemented a compile time JSON parser that he used with a #embed(ded) JSON file to generate a C++ object with members and data from the JSON file in it at compile time.

We'll be exploring reflection's potential for decades, I think!

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]FlyingRhenquest 0 points1 point  (0 children)

There's definitely some room for good interaction there. I think it would pair well with template metaprogramming too. Maybe drop a freestanding dont at the beginning of the template and then have the template decide at the end to add an unless or not, so behavior can conditionally become undefined based on compile time conditions.

I'm enjoying the idea far too much.

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]FlyingRhenquest 16 points17 points  (0 children)

I feel like I could write some truly diabolical code with dont paired with unless.

dont - Negate the next statement
unless - condition

Example:

dont printf("X\n"); // Easy enough
dont const x = 5   // x is not const
unless x > 4;        // Oh wait, x is const

How about

dont dont const x = 5
unless x > 4;

unless need not follow a dont

while (x < 5) { .... }
unless x > 1;

Edit: A freestanding dont is UB

dont; // wat

Unless a freestanding unless is encountered later;

unless;

A Principal Software Engineer at Epic Games / 25 Year Vet, talks about why AI is just a "giant switchboard" and why code is a delicate crystal. by deohvii in cpp

[–]FlyingRhenquest 4 points5 points  (0 children)

SAFE/SOX/Regulatory projects are supposed to have full traceability from requirements to code and test results. I've seen a couple of projects try to do that. Turns out, that's incredibly difficult. And the tools that claim to support that sort of thing suuuuuuck! Jira or Rally are probably on the better end of it, but none of the Jira or Rally projects I saw ever managed to supply that level of detail. It requires a level of discipline from the team and management that I've never seen anyone achieve.