« first day (2048 days earlier)      last day (2901 days later) » 

nwp
9:03 PM
@Morwenn I like it
 
@sehe No.
 
Oh. I wondered why you would suggest it then
 
It appeared to me that you thought producing code faster is actually strictly better, or some kind of objective. Which with I disagreed. (That's not what you thought, no?)
 
user3790646
Hey, we read it too
 
9:13 PM
Nice spaghetti
 
I hope the person who maintains that gets a long regular vacation.
 
that's just terrible
 
Oh look, it even has "goto"s.
 
@Columbo Did I ever say something like it?
 
I though the source engine was pretty bad, but at least Valve's code is readable. This just takes the cake.
 
9:22 PM
18 mins ago, by Columbo
@sehe No.
 
So how come "It appeared to [you]" and you still want me to confirm
 
> IF (nents>nPrecompEntsAlloc, 0) delete[] pPrecompEnts, pPrecompEnts=new le_precomp_entity[nPrecompEntsAlloc=nents];
 
I am also wondering about the upper-case "IF"- Is it a macro?
 
user1804599
> Swedish police blame migrant sex attacks on 'Nordic alcohol culture' and European women's 'non-traditional gender roles' in new report
 
user1804599
RIP Sweden and RIP freedom
 
9:29 PM
hmmm, let's see: macro, purposefully obfuscated expressions, abusing comma operator, naming your type le_precomp_entity, ASSIGNMENT IN THE ARRAY SIZE EXPRESSION FOR NEW
 
presumably the 0 is the expected value for the purposes of __builtin_expect etc.
@milleniumbug le_good_naming_convention
 
I wonder how the statement above passed the code review
Maybe due to nop code reviews
 
@milleniumbug That answers your second question: There is no code review.
 
Ven
Hi lounge
 
Hi Ven
 
9:42 PM
@Nican Ewww, that function is in production code for one of the bigger game engines?
 
@Aaron3468 Not to say other game engines have long abominations, but this takes the cake for also obscurity.
 
Yeah, no kidding
That's usually where I'd declare 5 or 6 private/protected helper functions. Functions are meant to be one of the simpler compositional elements of code T.T
 
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
Why does everyone need to define their own min and max?
Seriously, they define both a MIN macro and a min function in the same file u____u
 
because they suck
 
user3790646
@Morwenn That's a creepy emoji.
 
9:53 PM
too lazy to import a math library?
 
ha, I found why it doesn't work
 
/人◕ ‿‿ ◕人\
 
std::sort doesn't always call the custom swap function.... - cool, no clue how to approach this now
 
> int32 iszero(int32 x) { return -(x >> 31 ^ (x - 1) >> 31); }
4
wat
 
9:55 PM
why
 
IRTA ишеро
 
branchless
 
user3790646
Wow
 
So, there was a gas leak near work. They shut the power down, which means those last few bugs we were frantically trying to fix just in time for a demo tomorrow? They're still there.
 
9:56 PM
@milleniumbug If I'm not mistaken return x == 0; is branchless too.
 
@milleniumbug Yeah, looks like the kind of code that would be used in embedded, but most compilers can optimize into branchless code for simple ifs
 
No wonder every module start with "Cry".
 
@EtiennedeMartel Bugs are harmless when all servers are powered down
 
9:59 PM
@sehe Yeah. Anyway, we moved the demo forward.
 
Look ma, no branching.
 
Because we sure as hell won't be ready if we can't work tonight.
 
@Aaron3468 Embedded does not really require retarded compilers, and it would be nice if people let this notion go.
 
LET IT GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
 
It's only nice in development environments stuck in the 90s. Not really related to what they're developing.
 
nwp
10:00 PM
when I search how to get clang-tidy to work with c++1z I get this (second link)
 
@R.MartinhoFernandes Okay, it seems that this could be the misguided reason such thing could be introduced, yes
If there's no comment why does this function exist, then, indeed, that's broken enough
whatever == 0 is more clear than iszero(whatever)
 
@milleniumbug There are three additional overloads to handle 64-bit integers of several platforms.
 
I think the rational way for a programmer to think about this is ask why the compiler isn't doing such a trivial optimization already.
 
@Morwenn Why don't they just use asm statements directly? That's the only way to be sure.
 
10:03 PM
@R.MartinhoFernandes Exactly the point. A good compiler alleviates the need to twiddle your bits
 
@R.MartinhoFernandes « But we want those to be optimized for -O0 too! »
 
@R.MartinhoFernandes Shiny :D
 
What gets optimised from -O0 to -O3 are the preambles.
The comparison itself is implemented the same.
 
> // The radix sort code below does not work (yet) on big-endian machines.
 
10:06 PM
Oh, it's from CryEngine?
All explained.
 
Yup.
 
More like ShitEngine amirite
 
@Morwenn I preemptively declare the code to be shit.
 
Lounge project: rewrite CryEngine
but better
 
Nope.
 
10:07 PM
Maybe VC++ sucks and doesn't optimise properly.
@набиячлэвэлиь Is it on GitHub?
 
Oh, it is.
Maybe I'll post nasty review comments.
 
Yeah, they clearly have a job opening for code review. How can they complain if someone volunteers :)
 
@R.MartinhoFernandes What caught my attention was this: github.com/CRYTEK-CRYENGINE/CRYENGINE/blob/release/Code/…
 
Hm, GitHub's interface can't handle the initial diff, so I can't post nasty comments.
 
10:11 PM
> If you were anymore inbred you'd be a sandwich.
 
@Morwenn I do not get it.
 
inbred inbread in bread
 
^that
 
@набиячлэвэлиь makes sense
 
Meh, I need to go to sleep. Why do I have to go to sleep? -_-
 
10:23 PM
@Morwenn try polyphasic sleep
Polyphasic sleep is the practice of sleeping multiple times in a 24-hour period—usually more than two, in contrast to biphasic sleep (twice per day) or monophasic sleep (once per day). The term was first used in the early 20th-century by psychologist J. S. Szymanski, who observed daily fluctuations in activity patterns (Stampi 1992). It does not imply any particular sleep schedule. The circadian rhythm disorder known as irregular sleep-wake syndrome is an example of polyphasic sleep in humans. Polyphasic sleep is common in many animals, and is believed to be the ancestral sleep state for mammals...
You can reduce your total-sleep-time to 2 hours
 
I'm already sleeping at work, but I still need to sleep at night.
 
Ven
The standard
 
@набиячлэвэлиь The best person in the world ♥
aka myself
 
Ven
Fair enough
sings "it's a small world"
 
10:26 PM
@Ven God Save The Committee
 
Today I have too check my weight. Last time I did that was one year ago.
Turns out my weight is exactly the same.
 
Homeostasis is the best state to be in. Maybe your biological age is exactly the same too :D
 
Sadly not ç_ç
Anyway, I'm going to sleep. Bye.
 
@Morwenn idgi =/
 
@Aaron3468 homie-hoe-stasis?
 
10:38 PM
?
 
@набиячлэвэлиь Ya that'll go well... like every other lounge project
 
Look at this man, so negative I can see his sign showing!
 
Ven
@Morwenn bai ❤️
 
10:56 PM
Ay sup guys :)
 
Ven
Yo
 
how was your day? Yesterday after I left work with twitching fingers I slept for 11 hours and am currently trying to scramble to finish my homework haha
 
11:12 PM
@Columbo Have you considered the possibility that either the coder or the code could be traveling at speeds near the speed of light?
 
Just summarized a fresh c++ pupil's first lesson
> Yup. Think twice. Review. Test. Regret. Repeat.
 
Don't forget
> repent
 
Oops. Forgot about that one.
 
11:29 PM
lol
 
Night all
 
night sehe
sleep well. :)
 
11:44 PM
@sehe Night sehe!
 
user5378087
std::cout << "Hello i'm new here";
 
don't forget to flush the buffer or at least to start a new line
 
@FernandoK. repent thy sins now and flee, traveler, before the C++ madness takes you fully in hand!
Abandon us to our fate, for we are already damned.
 

« first day (2048 days earlier)      last day (2901 days later) »