« first day (907 days earlier)      last day (4053 days later) » 

12:00 AM
ewwww
please stop talking about your loaders
 
Okay.
 
firstly
and secondly
you're doing it wrong
 
I think it would make it easier to load a lot of this data if I had an inde WAIT
Data
GPU's don't take multiple index buffers
So interleaved data is the only way to send data to the graphics device
 
I love you guys
4
 
12:04 AM
Since you can't have index buffers for each vertex stream.
@Rapptz Fool me once, shame on me. Fool me twice...
 
What!
 
<3
 
@ThePhD what's happening
 
I was just messing with @Rap a little. :D
 
@Rapptz Hello, Crowz.
 
12:10 AM
Hey hey now.
 
Why am I being down rated? I want to use uncrustify, I just need to fix this issue. Your comment is very unhelpful. — JamHam 1 min ago
 
I didn't downvote him
Now I will though.
 
It actually just went up.
 
I profiled my code and 50% of samples is List<T> constructor
:v:
 
what code is that?
 
12:12 AM
@Mysticial Down rated?
 
lol
 
It's a backtracking CSP solver
I do a lot of clones so I don't have to think about what modifies what
 
Destructify...
 
Call tree is fun to navigate
 
@CatPlusPlus You create way too many lists.
 
12:16 AM
hey
anybody know how to deep compare two objects ?
 
o.0
 
By staring in their eyes
 
@Nathvi Depends on the object.
 
In turn of course
 
@Nathvi You take a philosophy class and then compose poetry of their innermost workings and elements.
 
12:17 AM
There's no generic way of doing such a comparison.
 
damn...
 
Unless you're using C# or something.
 
what about java?
 
@ThePhD No.
That's why there's IEquatable<T>.
Object.Equals compares the references.
 
12:18 AM
Arrows
 
@EtiennedeMartel I meant you could write an utterly generic one by doing reflection and blah blah blah etc.ec.
 
@ScottW You need to override it.
@ThePhD GL HF.
 
@EtiennedeMartel I know, I never said ti was going to be easy lulz.
@CatPlusPlus o.0
Why so many LISTS?!
And why so many new List()s ?!
 
Partial solutions
 
@EtiennedeMartel Today I've seen "compilator" and "deconstructor", so downrated is still ok lol
 
12:20 AM
Well, is it fast enough that you don't have to care that you're making a bajamilion copies?
 
user142019
@ThePhD wat
 
user142019
That would be very bad.
 
@Zoidberg It would be horrible.
I agree.
 
user142019
That's as bad as reflection-based serialization.
 
So @Nathvi should just do it like a normal person and compare everything individually!
Yay, glad we got that out of the way. :D
 
12:21 AM
Reflection-based serialisation is good enough for in-process ephemeral stuff, just not for storage
@ThePhD Well
 
How often is recursion useful?
 
@Pawnguy7 It's as useful as often as its useful.
 
Clever.
 
For all values of Useful.
 
Depends what it's used for
 
12:23 AM
I am yet to stumble across a useful occurence, so I wondered.
 
TMP/Variadic templates?
 
@Rapptz I don't know what this is.
 
I guess I could preallocate partial lists for every k since I'm not gonna bother parallelising this crap
@ScottW What
It works fine
 
12:26 AM
That's not really real recursion
 
oh wrong one
 
Just so we're clear, "Aarthi wants to burninate children". — Tim Stone 1 min ago
 
that one was one up
 
You're technically calling different function at every step
But w/e recursion is useful for recursive things
 
It's hard to find a decent recursion example outside of the traditional crappy ones, i.e. Towers of Hanoi and Fibonacci
 
12:28 AM
Rays in a ray tracers can be called and computed recursively.
 
I'm writing a recursive thing right now
 
Oh and gcd too I guess.
 
For example, you shoot a ray out from your eye into the world.
Eventually, it hits something (your computer screen).
 
Wouldn't recursively making templated functions be... kind of bloatish?
 
Also parsers, trees, recursive lists
~bloat~
(Don't use that word it's ridiculous)
 
12:29 AM
@ScottW I prefer it in my mouth. <3
 
user142019
@Pawnguy7 wat
 
Excessive generated code, say.
 
Also every loop could potentially be expressed as recursion
 
But it doesn't stop there. There's reflectance and shit on your (Crappy?) monitor, so even more rays have to be shot out from the ray-monitor collision.
 
It doesn't matter, stop thinking about it
 
12:30 AM
One of the rays from your monitor hits the wall.
But it's a shiny wall, so it has reflectance too.
So we shoot out another ray...
etc. etc. until light we've bounced the ray off the entire world and gotten the reflectance and color of the entire environment for that single ray from our eye.
 
Then we compute the color for that single ray.
 
I don't quite get it.
 
Than we go backwards.
 
Well was it white and sticky?
 
12:31 AM
That is only a single... link per recursive cycle, correct?
Not,, pyramid-ish branching?
 
@Pawnguy7 The ray-shooting function is the same.
So I'm recursively calling the ray-shooting function.
if ( Ray.HitShit ) {
     Ray r = BounceRay ( ray.ShitIHit );
     ShootRay( r, TheWorld );
}
 
user142019
@Pawnguy7 Hey, you need that code anyway, recursion or not.
 
I shifted the cloning somewhat and now bottleneck moved to reject()
You can optimise Math.Abs(varLast - varIdx) == Math.Abs(last - idx) for me
 
What is CSP?
 
Constraint satisfaction problem
 
12:33 AM
@Zoidberg That was weird
 
Ooh.
That thingy you linked before.
 
user142019
The example was bad.
 
user142019
Don't look at it.
 
Oh that was with -S never mind
 
LOOK AT ALL THAT ASSEMBLY BLOAT.
I can totally make it smaller !!1111
 
12:36 AM
Either that or I misunderstood templates when learning them.
 
The latter.
 
Templates are a basic tool in C++
~bloat~ is not a valid reason to avoid them
Well I shaved 2 seconds by doing (x^(x>>31))-(x>>31) for abs
 
Since when did the cat care about performance?
 
Since he started making 1 million lists.
 
:)
 
12:37 AM
The way I learned it was, it was about the same as manually writing out the code for the given type.
 
Since when did the cat stop stop talking about programming?
 
user142019
And this includes crap like calls.
 
I've gone from 11 seconds to 2 seconds on 13x13 board :smugdog:
 
@Zoidberg wut
 
12:38 AM
0
A: Possible optimization for compilers or defined behaviour

NeptharI'd say this falls in the area of "well defined undefined behavior"; it will probably work all the time (assuming that sizeof(int*) == sizeof(int)), but it's technically undefined and there's a real chance that some compiler could totally break it in the future. Another example of this is using a...

> well defined undefined behavior
 
user142019
@Rapptz NO "BLOAT"!
 
Oh never mind, assembly again
 
@Mysticial I always optimise when I finish stuff
 
I was confused why it printed 86.
 
I just never finish stuff in the first place
2
 
user142019
12:39 AM
@CatPlusPlus According to the vacuous truth, me too!
 
@CatPlusPlus Me.. ..too :(
 
Also I really value correctness over performance in all cases so I'm not going to attempt anything without a working base model
 
@Mysticial i wanna downvote him for that...
does that make me a bad person?
 
user1357851
why can I still ask question on meta when my rep is reduced to 1
 
user142019
No.
 
12:40 AM
@CatPlusPlus But can you make it go to 1 second? :O
 
@Borgleader I actually agree with that answer though. There are a number of things that everyone does that is technically UB.
 
user142019
Bad answers need to be downvoted.
 
user142019
Don't feel bad.
 
I was doing Gender wrong all of these years: forums.thedailywtf.com/forums/p/27442/319001.aspx#319001
 
The union type-punning thing is one example.
 
user142019
12:41 AM
@Mysticial not everyone does that.
 
user142019
It's a terrible idea to do it in the first place.
 
@Mysticial Like what?!
 
@Mysticial Yes but the concept of "well defined UB" is retarded... it's not well defined it's just UB that will that has a statistically higher chance of giving the expected outcome
 
@Zoidberg Well, union type-punning is still better than all the alternatives.
 
it's like playing russian roulette with a gun that has a bigger clip yet still one bullet. Sure you have better odds of survivaly, but youre still an idiot.
 
12:42 AM
@Nican Breasts is a int64?
 
@EtiennedeMartel Gotta be ready for aliens
 
user142019
@EtiennedeMartel number of breasts.
 
user142019
It's probably signed for a reason.
 
Also apparently aggressive inlining made things worse
 
user142019
No shit.
 
12:44 AM
@EtiennedeMartel 0xFFFFFFFFFFFFFFFF cup size?
 
Haha
 
user142019
@Rapptz UB!
 
Time for AGGRESSIVE OPTIMISATION
 
@CatPlusPlus How? did you reach the point where the code got long enough to outweigh the benefit of inlining? (something about instructions no longer fitting int he cache or something?)
 
Replacing resizeable lists with arrays :v:
 
user142019
12:45 AM
DON'T BE SO AGGRESSIVE.
 
@CatPlusPlus You have way too many news.
 
@EtiennedeMartel I shifted the bottleneck away from that
 
Passive agressive optimisation! :)
 
Moved .Clone and that reduced like N clones per candidate to 1
 
> occasion a ne pas rater !!!!!!!!!!!!!!!!!!!!!!11
I feel like this ad is taunting me.
 
user142019
12:48 AM
Use Objective-C and all your too-much-inlining problems will be gone forever!!!! :D
 
Given a slider bar...
How could I make use of mouse input to move it given that I can get if a button is down, and the position of the mouse at any time, but able to be drug if the click started on the bar, but does not need to remain there?
 
user142019
Using state.
 
Ell
Herro
 
user142019
Store the information in a variable.
 
user142019
It's the second thing you learned after hello world when you learned programming.
 
user142019
12:52 AM
@Ell Telkitty?
 
Well, yes...
sigh
 
Woo I broke it
Screw this then
You know VS would be a good tool if the editor wasn't so retarded
 
I feel like writing a novel, you guys. What should I write about?
 
user142019
I just found the ugliest GUI ever.
 
user142019
@Crowz Lounge<C++>
 
1:03 AM
@Zoidberg write a book about Lounge<C++>? There'll be 4 chapters on why not to use java
 
I'm happy that my code spends half of the time constructing lists
 
I nominate this.
 
user142019
> Since it can execute code live, it's potentially as dangerous as a terminal (i.e. don't try to delete files).
 
user142019
~dangerous~
 
user142019
1:05 AM
I can also delete files with Finder or iTunes.
 
user142019
Must be very dangerous tools.
 
@CatPlusPlus When you suck, blame the tools.
 
@EtiennedeMartel What
 
Come on. It's obvious you suck. We all know it.
 
VS editor can't insert newlines properly
 
1:07 AM
@Rapptz Gotta be near the top. Fuck, that's gruesome!
 
It's not the same league as vim and emacs come on
It's just bad
 
Woah... so many inputs...
 
Ell
I'm quire tispy
 
user142019
 
@Pawnguy7 ..zero use of colours to highlight panels
 
1:09 AM
I actually used it.
It's okay.
 
user142019
If I need to bulk rename I use Z shell.
 
I was on windows.
 
@Ell Well I'm sober as a developer who has had NO BEER tonight :((
 
user142019
Use PowerShell. :v
 
I wanted to use ren but holy hell does that suck or something
 
user142019
1:10 AM
Or… Z shell!
 
I wasn't sure how to do a wildcard replace with powershell :(
 
Imagine making something of such proportions as a web accout creation form... they will never make an accout again :D
 
user142019
Perl and regexen!
 
Is Z shell a thing, or something Zoidbergy?
 
zsh
 
user142019
1:11 AM
The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh. Origin The first version of zsh was written by Paul Falstad in 1990 when he was a student at Princeton University. The name zsh derives from Yale professor Zhong Shao's (then a teaching assistant at Princeton University) name — Paul Falstad thought that Shao's login name, "zsh", was a good name for a shell. Featu...
 
user142019
Best shell ever.
 
Anything but Bash.
 
user142019
sh?!
 
Is there a way I could, in VS, somehow get a total LoC from all files?
 
what's wrong with Bash?
 
1:21 AM
@Pawnguy7 y u no use cloc ?
 
Didn't hear of it till now. I will look into that.
Not that LoC is a valid indicator, but... well, more lines of code done encourage me to not give up, so I figured it would be good.
 
user1357851
bye doggie
 
I seem to recall in Java, you could go... was it 0b? and then have a binary number.
Can you do this in C++?
I know we have 0 and 0x, but...
 
Directly? No
 
What would indirectly be?
 
1:32 AM
gah... anyone familiar with how to format google docs?
 
Someone tell me why these two aren't equivalent because fuck if I see it ideone.com/NbEQzz
 
user142019
Blank page wat.
 
It's not blank
Or maybe I picked wrong privacy setting
 
user142019
Now it isn't. Stupid Internet.
 
value == domainValue
where domainValue != value
seems weird to me
 
user142019
1:37 AM
@Borgleader See line 8.
 
oh wait yeah i get it now
 
user142019
@CatPlusPlus Is -1 a valid domain? :v
 
Wow.
I made a slider bar, and it WORKS.
Who would have thought :D
 
goddamn it. Stupid question. How would you make one part of a document right aligned and some other text on the same line left aligned?
 
1:43 AM
Idontgeddit
It looks the same :.
What am I missing waah
Here's the fun thing
SequenceEqual says that whatever that LINQ query returns and whatever I get after those removals is equal
 
user1357851
Da C@ never sleeps
 
Ah fuck it
 
I cant find any problems with the first one either but I like the second version better anyway
 
user142019
What about domains[idx].RemoveAll((x) => x == value || OptMath.Abs(x - value) == OptMath.Abs(current - idx));?
 
It's the bottleneck currently so
@Zoidberg value not domainValue and doesn't work either
 
user142019
1:50 AM
Oh right.
 
Error occurred.
Forbidden
 
user142019
 
Yeah oops.
 
I never got why the guys at Wt felt like copying Qt was good design.
 
1:53 AM
Yeah I'm looking at this going "wut"
 
Because it's cute :P
also why is this C++11 in a file called hello.C ?
 
@Borgleader Upppercase C: C++.
 
user142019
Because .C is C++.
 
Since when?
 
Not commonly used because it doesn't work on Windows.
 
user142019
1:54 AM
Since the fuck do I know.
 
@Pawnguy7 It's just a convention.
 
Stick to .cpp or .cc
 
Or .c++ if you're the robot
 
user142019
.cplusplus ftw
 
1:55 AM
Well, in terms of, for example, file extensions an IDE might look for.
 
user142019
You can configure that.
 
user142019
Unless you use an abysmal editor.
 
Probably.
 
VS doesn't count .c++/.h++ as c++ file extensions iirc
 
You can have a + in the filename?
 
1:55 AM
yes
 
Or maybe I am thinking of a different symbol.
 
user142019
@Pawnguy7 no, that's why people use .c++.
 
user142019
:facepalm:
 
Never seen that, either.
That is why I asked.
 
1:56 AM
Oh, yes, you cannot have a #. I was trying to make a log file numbering scheme thing.
 
Ahahaha now less efficient algorithm takes less time than more efficient one
 
user142019
@CatPlusPlus either the compiler is broken, the library is broken, == and != aren't correctly overloaded for whatever type you use, something else in your code breaks it, or I'm blind. Stack Overflow
 
This shit sucks
> Candidates searched: -1762218975
Welp
 
user142019
Overflow. :v
 

« first day (907 days earlier)      last day (4053 days later) »