Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
Hi.
CMake sucks. as a person who used C++ for multiple years i hope the developers of this abomination do not sleep well at night and just live to genuinely make life as hard as it already is.
link? what is linking?
link deez nuts7 -
I'm tired, I have nausea, my head hurts, my nose is clogged, my boss isn't happy, I'm marrying in 5 days from now, nothing is ready.8
-
I've probably suggested this before, but people who introduce arbitrary factors of 100 into calculations for no good reason should have their genitals removed with a wooden spoon.
And if they don't make it clear that they've introduced a factor of 100, then the removed genitals should be pyrotechnically reinserted into them.6 -
Just a good old rant: I'm seriously impressed (depressed) on how much cringe of bullshit there is on Linkedin, each time I open the app I feel like I'm one shotgun mouthwash from stopping on using it.2
-
Trying out the new version of fasm, I realize it's good, and conclude I should update my code to work with it as there's small incompatibilities with the syntax.
So, quick flat assembler lesson: the macro system is freaking nuts, but there are limitations on the old version.
One issue, for instance, is recursive macros aren't easily possible. By "easily" I mean without resorting to black magic, of course. Utilizing the arcane power of crack, I can automatically define the same macro multiple times, up to a maximum recursion depth. But it's a flimsy patch, on top of stupid, and also has limitations. New version fixes this.
Another problem is capturing lines of code. It's not impossible, again, but a pain in the ass that requires too much drug-addled wizardry to deal with. Also fixed in new version.
Why would you want to capture lines of code? Well, because I can do this, for instance:
macro parse line {
··match a =+ b , line \{
····add a,b;
··\}
};
You can process lines of code like this. The above is a trivial example that makes no fucking sense, but essentially the assembler allows you define your own syntax, and with sufficient patience, you can use this feature to develop absolutely super fucking humongous galactic unrolls, so it's a fantastic code emitter.
Anyway, the third major issue is `{}` curlies have to be escaped according to the nesting level as seen in the example; this is due to a parser limitation. [#] hashes and [`] backticks, which are used to concatenate and stringify tokens respectively, have to be escaped as well depending on the nesting level at which the token originates. This was also fixed.
There's other minor problems but that gives you sufficient context. What happens is the new version of fasm fixes all of these problems that were either annoying me, forcing me to write much more mystical code than I'd normally agree to, and in some rare cases even limiting me in what I could do...
But "limiting" needs to be contextualized as well: I understand fasm macros well enough to write a virtual machine with them. Wish I was kidding. I called it the Arcane 9 Machine, A9M for short. Here, bitch was the prototype for the VM my fucking compiler uses: https://github.com/Liebranca/forge/...
So how am I """limited""", then? You wouldn't understand. As much as I hate to say it, that which should immediately be called into question, you're gonna have to trust me. There are many further extravagant affronts to humanity that I yearn to commit with absolute impunity, and I will NOT be DENIED.
Point is code can be rewritten in much simpler, shorter, cleaner form.
Logic can be much more intricate and sophisticated.
Recursion is no longer a problem.
Namespaces are now a thing.
Capturing -- and processing -- lines of code is easier than ever...
Nearly every problem I had with fasm is gone with this update: thusly, my power grows rather... exponentially.
And I SWEAR that I will NOT use it for good. I shall be the most corrupt, bloodthirsty, deranged tyrant ever known to this accursed digital landscape of broken souls and forgotten dreams.
*I* will reforge the world with black smoldering flame.
*I* will bury my enemies in ill-and-damned obsidian caskets.
And *I* will feed their armies to a gigantic, ravenous mass grave...
Yes... YES! This is the moment!
PREPARE THE RITUAL ROOM (https://youtube.com/watch/...)
Couriers! Ride towards the homeland! Bring word of our success.
And you, page, fetch me my sombersteel graver...
I shall inscribe the spell into these very walls...
in the ELEVENTH degree!
** MANIACAL EVIL LAUGHTER ** -
It is 2024 and C# doesn't seem to have a simple way to parse json data into dynamic objects. It wants some husk classes to read into. I will have to find a good third party library for this. I was thinking C# would have this, but no. I see there is something from asp stuff, but I have no clue what I have to import to get that.8
-
It's nice to see people waking up and realizing the fallacies of AI.
Given that I've been against AI since day 1, it's giving me a little superiority complex ngl.18 -
Got any git tips that everyone might not be aware of?
My tip is fixup and autosquash!
If I'm working in a branch with many commits and I notice that 5 commits ago I made a tiny mistake on commit 'abc123' then I'll just do `git commit --fixup abc123`.
It's similar to `--amend` but you can do it for any commit.
At first this would be a separate commit. But next time I wanna rebase I'd just do `git rebase -i --autosquash origin/master` and it'll be squashed into abc123
Some article that explains further details:
* https://gist.github.com/naviat/...
* https://blog.sebastian-daschner.com/...
After discovering I had been unaware of this for years I figure there must be other similar useful git things I might be unaware of3 -
I am experiencing deju vu:
https://reddit.com/r/csharp/...
dude: Why doesn't C# do this dynamic "like" thing?
community: How dare you like something from another language?! Don't you know C# is strongly type?! Dynamic is a curse on your children! <gets out torches and pitchforks>
random dude: Why don't you use <this method> to do this?
dude: Thanks "random dude", this does what I was looking for with a bit different syntax than I was expecting.
lol
Programmers are awesome!10 -
I fucking despise default open firewalls! Just let me define what I can do and block everything else. I don't want to play whack-a-mole networking by havin to close so many goddamn holes! If I ever see any router doing that again, I swear Mccarthy will think the communists won from all the red from blood!
-
It's always the 'Poll Of The Day' on some other site that reminds me that there's an actual word for the fear of the Friday the 13th...24
-
Let's start a discussion about decentralized. EveRyOne caN hOsT hiS oWn ServEr. Do you mean the freaking internet in general? By definition, the internet is decentralized. "Decentralization has a protocol we all use to stay in sync". That existed already, it's called IP, TCP and UDP.. The decentralization protocols are on top of those making it only more limiting. Good, many nodes in sync. Yeah, replicating SQL servers exist for a long time.
People who 'invented' decentralized did just not realize how the internet works. Adding a network on top of a network ending up in a smaller network making it more centralized. "Decentralized" stuff has nothing to add. Just some word for replication protocol or smth.
I'm too sober to fall for this shit.14 -
every time my brain's functionality perks up even a little bit and I regain some functionality I used to have I literally end up insatiably spiraling through the new abilities and God complex all over the place
if you were a god, what kind of god would you be?13 -
wish there were c/c++-like forums and communities but for rust
such a dead gen z language goddamn35