Page 38 of 104

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 11:07 am
by Dooey Jo
Holy fuck! I was trying to figure out where an event called "Fuckballs" (lol not really) in a C# plugin actually got fired from and delved into the "C++" back-end, and found some code that seemed to be relevant.

Okay so it registers the OnFuckballs member function, let's see what it does...

wait a minute

There is no OnFuckballs what the christ! Furthermore the member variable nativeFuckballsCallback that registers the function doesn't even exist either! So I meticuously scan the class definition and find something that looks vaguely related

Code: Select all

SW_CALLBACK(CFucks, Fuckballs_t, Fuckballs);
what is this shit now. Welp let's go to "macros.hpp" and find out

Code: Select all

#define SW_CALLBACK(className, assType, callbackName) \
private: \
	CCallback<className, assType, false> native##callbackName##Callback; \
	void On##callbackName (assType *assData) \
	{ \
		CServices::Instance().CallManagedCallback(ECallbackID::callbackName, assData, sizeof(assType)); \
	}
:psypop:
changes access rules creates phantom variables and functions secretly depends on completely unrelated classes that are fucking singletons assumes a global enum value will exist fuuuuuuuuuuuuuuuck
ps the CFucks class itself is also a singleton and the CServices class secretly depends back on it too.

This brittle shit will break the minute someone who didn't invent it changes anything anywhere in the whole damn codebase.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 11:36 am
by Oxymoron

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 11:41 am
by Flagg
Remember The Alamo Iran Contra.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 11:46 am
by Big Orangutan

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 2:05 pm
by RyanThunder
Dooey Jo wrote:Holy fuck! I was trying to figure out where an event called "Fuckballs" (lol not really) in a C# plugin actually got fired from and delved into the "C++" back-end, and found some code that seemed to be relevant.

[...]

This brittle shit will break the minute someone who didn't invent it changes anything anywhere in the whole damn codebase.
Isn't third-party code fun? :sun:

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 6:24 pm
by RogueIce
You'll have to be more specific. Unless somehow thoughts of Reagan are somehow conjured by a joke about Equestria Girls which is the current comic as of this posting.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 6:31 pm
by Oxymoron
Reagan as a father figure helping a confused woman come to term with the fact she love another woman

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 7:21 pm
by RogueIce
I was talking about, y'know, maybe a link or something. But close enough I suppose.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 7:44 pm
by Dooey Jo
RyanThunder wrote:Isn't third-party code fun? :sun:
It's in-house code, but none of its developers are still here :poop:

Sadly we have lot of fucked up code. I was told not to use threads to make the 3DS projects not freeze when doing something because that's too dangerous. Years later I was assigned to this project and wondered where the hell are all these random reference exceptions coming from. Then I realised almost everything in the whole code is a coroutine (hundreds of functions); a thread in denial. And since it is in denial, the original developers wrote literally no code to handle race hazards (which contrary to popular belief is not only a hardware issue but more importantly a logical issue). And since it is not a RAII-enabled language, coroutine-local resources (like sounds or even other coroutines) can't automatically be cleaned up if the coroutine is stopped before reaching a point the developer assumed it would. It is a fucking mess.

I should re-write the library to make the coroutines at least take some sort of context object as a construction parameter that will always be "cleaned up" (ie. notified) whether the coroutine finishes normally or is aborted. That could fix all the bugs caused by coroutines depending on other coroutines still executing and whatnot. Too bad it's too late and we're better off patching this shit up and then silently putting it to sleep and never mentioning it again.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 7:51 pm
by RyanThunder
And this is why I don't work on game engines, I guess.

On the other hand, you should've seen some of the shit we got from this vendor once. Fancied himself some sort of genius. It's like he read this and used it as a guideline. It didn't even work. We're still cleaning up his mess.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 8:04 pm
by Oxymoron
RogueIce wrote:I was talking about, y'know, maybe a link or something. But close enough I suppose.
Given it develops and build (the reader's sympathy toward "Ronnie") over the course of the comic and several literal years worth of a webcomic published three times a week... That's going to be hard to pinpoint.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 8:11 pm
by Veef
I find it hard to believe Shortpacked could do anything about drama right.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 9:13 pm
by Oxymoron
's'not "drama", it's just finding sympathy for a character. But I guess when you archive binge 7 years worth of webcomic some things are cast in a different light than if you've read the thing as it happened.

Anyway, this seems topical.

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 10:08 pm
by RogueIce
So maybe it's just the whole raised Catholic thing, but every time someone says, "May the Force be with you," I want to reply, "And also with you."

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 10:33 pm
by Oxymoron
Maybe it's because I'm not big on Star Wars, but isn't it supposed to be what they do already ?

Or did I get confused with Star Trek ?

Re: Testing Chat IV: A New Hope

Posted: Thu May 30, 2013 10:37 pm
by adr
i have this d program that works without libraries. all it even wants from the operating system is write, exit, and mmap

so i wondered if i reimplement those three functions would it work without the operating system?

and the answer is yes! i used grub to boot it up, and my linux executable almost just worked, just a few different linker options then grub can load it

and boom the program runs w/o the OS. while still having much of D working, including exceptions and classes

pretty nice

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 12:12 am
by Flagg
RogueIce wrote:So maybe it's just the whole raised Catholic thing, but every time someone says, "May the Force be with you," I want to reply, "And also with you."
:lol: I have the same issue.

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 4:04 pm
by Count Chocula
Flagg wrote:
RogueIce wrote:So maybe it's just the whole raised Catholic thing, but every time someone says, "May the Force be with you," I want to reply, "And also with you."
:lol: I have the same issue.
Now we're supposed to respond, "And with your spirit." I'm still getting used to that.

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 4:14 pm
by Civil War Man
Count Chocula wrote:
Flagg wrote:
RogueIce wrote:So maybe it's just the whole raised Catholic thing, but every time someone says, "May the Force be with you," I want to reply, "And also with you."
:lol: I have the same issue.
Now we're supposed to respond, "And with your spirit." I'm still getting used to that.
That has fairly dark implications. Instead of wishing general goodwill, now it's just goodwill for the spirit.

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 5:17 pm
by Count Chocula
Civil War Man wrote:
Count Chocula wrote:
Flagg wrote:
RogueIce wrote:So maybe it's just the whole raised Catholic thing, but every time someone says, "May the Force be with you," I want to reply, "And also with you."
:lol: I have the same issue.
Now we're supposed to respond, "And with your spirit." I'm still getting used to that.
That has fairly dark implications. Instead of wishing general goodwill, now it's just goodwill for the spirit.
Yeah, and now during Eucharist one of the priest's lines is "...the Blood of the new and eternal covenant, which will be poured out for you and for MANY for the forgiveness of sins.(emphasis added)"

That line used to be "It will be shed for you and for ALL so that sins may be forgiven. (emphasis added)"

The change is supposed to better match the Old Testament, but it still sounds strange. Thanks Vatican! :poop:

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 9:40 pm
by Jung
From SDN:
KlavoHunter wrote:No, the "After Darkness" comic is already taking care of the Pon Farr thing. They're already at New Vulcan to deal with it.
KlavoHunter wrote:the "After Darkness" comic
KlavoHunter wrote:"After Darkness"
Seriously? Is this some kind of porn, or is it supposed to be a 'serious' thing?

Cause "After Darkness" sounds hilariously like a porno title to me.

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 9:45 pm
by evilsoup

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 10:16 pm
by RogueIce
Reminds me of 98% of STO Boff crews. :riker:

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 10:16 pm
by Bakustra
Image

Re: Testing Chat IV: A New Hope

Posted: Fri May 31, 2013 10:20 pm
by RogueIce
Is that referring to Spock...or Kirk? :v