« first day (841 days earlier)      last day (4109 days later) » 

7:00 PM
enum CallMe { Yes, Maybe, No };
 
@melak47 youre mean :( poor kitty
 
@JohannesSchaub-litb If it was a dog, it'd just eat the noodles. :D
 
(food waste).bad == true
 
lol it has a blue eye on the left and an orange eye on the right
 
Thinking with portals
 
7:01 PM
@ThePhD yes == 0?
 
@CatPlusPlus It does look like that doesn't it
very nice eyes
 
@doug65536 Of course. Legacy API and all.
 
@LightnessRacesinOrbit not loading ._.
 
@ThePhD looks like spaghetti
 
7:02 PM
@melak47 lies
 
Fun fact: Forth uses -1 as true because all bits are 1
2
 
@EtiennedeMartel NICE
 
Quebec City, circa 1894 ^
 
@LightnessRacesinOrbit looks like it was assimilated by Borgs
 
I would dig a partial hole in the center of that mountain
and dig it all the way down the road
And then be like "COOOOL RUNNIIIIIINGS."
 
7:03 PM
@CatPlusPlus and BASIC. allows "bitwise not" to also function as logical not
 
@ThePhD haha
@CatPlusPlus Makes sense.
 
hm, so, I just got up after going to bed at 8 in the morning....but I I'll need to be awake tomorrow afternoon...stay awake or go back to bed? :/
 
Staying awake is always a bad idea
 
it's only ~18 hours from now though
 
@melak47 I've done something like four all-nighters over the past two weeks to try to escape from such situations. None of them worked. What time is it for you?
 
7:06 PM
it's 20:06
 
Yeah you're screwed
 
user142019
s/6/7/
 
Go to bed at ~3am and try to sleep, but you won't be able to.
Or, if you're like me, you'll accidentally end up fucking about here until 8am again instead.
Then be forced to stay up, and feel really shitty.
 
user142019
It's not difficult to feel shitty if you are shitty. :)
 
1 min ago, by melak47
it's 20:06
 
7:08 PM
@Zoidberg what is that / thing?
 
Zoidnerd
 
user142019
@Crowz look up sed.
 
Also, general question... C++ can be used with OpenGL? OpenGL is the same exact thing in any language? And how would I go about getting OpenGL integrated with my IDE?
 
user142019
Or Vim.
 
@LightnessRacesinOrbit sounds like a plan ._.
@Crowz impossibru
 
7:09 PM
@Crowz yes - add opengl32.lib to your link libraries
 
user142019
Or Perl.
 
My body clock has no fucking clue what time it is any more
 
user142019
Of course can OpenGL be used with C++, you fool.
 
user142019
How else would they write all those games in C++ for non-Windows platforms.
 
I think I might have begun fixing my sleep cycle today but it's going to take a while to complete. And, in the meantime, my brain just doesn't know what 7pm is.
 
7:09 PM
With DirectX
 
@LightnessRacesinOrbit, Do you think this does any justice at all for non-example proof? pastebin.com/vMw3uhWm
 
@LightnessRacesinOrbit my sleep rhythm doesn't seem to want to be 24 hour aligned :/
 
@Zoidberg I thought people normally wrote in Direct3D
 
i wonder whether it is worth to make the bucket array entries be a bidirectional list or just a forward list
 
I think I should just force all the Optional brackets to be false for consistency.
 
user142019
7:10 PM
@Crowz yes that's really available in Linux and OS X and PS3.
 
No reason to try and jerry-rig it and have to test features.
 
directx architecture was idiotic until they copied opengl architecture with immediate mode
 
the former has the advantage that it is faster for insertion. but it has the disadvantage that it is slower for erase. and vice versa
 
@doug65536 ...wait, what
 
@Zoidberg yeah. I mean, I thought that was why Windows was much better for gaming
 
7:11 PM
immediate mode D:
 
Right now I have a working 3D game in Java, now I want to rewrite it in C
 
@JohannesSchaub-litb I've never seen a reason/use for a back pointer.
 
user142019
Windows is not better for gaming. It's just that most games are for Windows because developers target the platform with the most users.
 
oops
I appeared to have accidentally unignored Crowz
 
7:12 PM
@Zoidberg ... and because they don't have to target 999999 distributions.
... and because I've heard people working with X window system and it seriously sucks.
... and because OpenGL is terrible.
 
@JerryCoffin this is how it currently looks: ideone.com/m6qisL
 
@JohannesSchaub-litb: you're talking about hash tables? just insert at the beginning. No need for a back link
 
@JohannesSchaub-litb I made them a bidirectional list.
 
if the "Bucket" type has a "Bucket *prev", then in my void erase(iterator it) (which i haven't written yet), i can just erase the item from the bucket linked list
 
7:13 PM
@chris I find it a little hard to follow the way you've written it, if I'm honest. But factually and argumentatively* I believe it's sound.
 
@JohannesSchaub-litb Just make each bucket a std::vector or fixed-size array of iterators into a std::list.
 
* - in that it proves the point. I don't really know what word to use here.
 
then you don't have to deal with any of this yourself.
 
otherwise if it is only singly linked, i need to use the "_bucketHead" pointer of the iterator to first find the previous element in the list. however since collisions are not too likely, i think that may be a not too bad payoff
 
@LightnessRacesinOrbit, I'm finding it hard to write in a straightforward manner.
How far to go to prove things. I could probably leave it at the fact that a parameter-declaration is what it is in a function declaration, and then delegate it to knowledge that function declarations without default arguments can also have unnamed parameters.
 
7:15 PM
@DeadMG the good thing about a linke list is that rehashing is pretty efficient then because it just needs pointer adjustments
@DeadMG i need to write everything else. no std::vector and std.:list available :)
 
@JohannesSchaub-litb The principle is the same- just rewrite them first.
 
@doug65536 good morning! (...afternoon)
 
@chris I've done it now :P
 
@user1690130 hi
 
guess I'm staying up then
 
time for breakfast!
 
@chris Yeah, I don't think it needs more than that really. And that's from me who generally handles standard quotes as precisely as I possibly can.
 
@doug65536 how' s your stuff coming along?
 
@LightnessRacesinOrbit, That's much clearer, thanks.
 
7:18 PM
OKAY!
 
@user1690130 good
 
@melak47 the scene where he's in the shuttlecraft with Wesley?
 
All the graphical capabilities a card can have.
It's missing a few, but eh.
 
7:19 PM
@doug65536 yes
 
THOSE are the important ones.
Now to Regex-ish my way to victory with this table.
 
@melak47 I don't know if it's good or bad that I knew that
 
@doug65536 great, glad to hear! :)
 
"if we weren't so close to a medical facility, I surely would have died. Omnomnom "
2
 
@doug65536 i just want to thank you so much for ll of your help
 
7:21 PM
@ThePhD one struct to rule them all? :)
 
@melak47 A struct, and then an array.
 
@melak47 what episode?
 
2x17
 
@JohannesSchaub-litb Yes -- you should rarely have more than a couple or three items in the list. Also note that in most cases you can avoid starting from the _bucketHead anyway. Instead, swap the current item with the next item, then delete the next item. You only start from the beginning of the list when/if you need to delete the last item in the list.
 
ah, I skipped that one
 
7:24 PM
...
COLUMN-MAJOR DIE IN A FIIIIIRE
The feature-level table is column-major and thus I would have to transpose every entry in order to parse it with Regex and make it usable in C++.
 
@JerryCoffin hm swapping should only be more efficient if the key and mapped type is a primitive or empty class or something
 
@DeadMG see, you just knew that it wouldn't be useful. no need to watch it to find out! :P
 
@ThePhD column-majors die by hanging. Only column-lieutenant colonels and above die in fires.
 
@LightnessRacesinOrbit Eh, there are way too many episodes of TNG. I only downloaded the ones I knew in advance I wanted to watch.
 
7:27 PM
@JerryCoffin I chuckled.
 
MSVC, I release you!
 
@JohannesSchaub-litb Or if (as is fairly common) the linked list node only contains a pointer to the actual data being stored.
 
Begone ugly workarounds!
 
@JerryCoffin ohh i see
 
Now I need to transpose all htese columns in excel.
 
7:28 PM
@DeadMG > :P
 
.... I wonder how...
 
@ThePhD TRANSPOSE?
 
@LightnessRacesinOrbit I mean, I went on a DS9 binge and watched all of them, give or take.
about a week later I was like, "Fuck, don't make that mistake again."
 
@ThePhD Even though it seems like an obvious thing, as far as I've ever been able to find, Excel provides nothing to make it easy.
 
I've practically memorized ST:TNG
 
7:31 PM
@ThePhD It is fairly easy to write a matrix (or whatever name you prefer) class for C++ that handles column-major vs. row-major ordering.
 
@ThePhD copy the range, paste special, check "transpose"
 
I keep trying to paste special, as per the directions for MS 2010, but..
It won't let me. The only options are Unicode or Text formatting.
 
@JerryCoffin ideone.com/Xa2Bkw
 
AHHHHHHHHHHHHHHHHHHH
I had to paste it, re-copy it, and then paste it with the special formatting again.
Good thing this table isn't huge.
 
7:34 PM
hmm a DS9 marathon. I could do that. My problem is that if I try to pick-and-choose an episode once in a while, I just stare at the list for ten minutes going "seen that, seen that" because obviously I've seen them all many times and it becomes a competition of "which one have I not seen all that recently, that I haven't not seen all that recently because I didn't like it very much?"
Sometimes there's no answer and I go do something else.
Dejected.
Forlorn...
 
nyahaha
games > TV anyway
 
@LightnessRacesinOrbit when I feel picky about episodes, I choose one that focuses on a character (actor) that I like
 
@doug65536 a good idea
 
@doug65536 Like McKay for Stargate Atlantis.
 
...
Not sure if 2^32-1 is 2 ^ (32 - 1) or (2 ^ 32) - 1
I'll go with the first.
 
7:38 PM
@ThePhD second
 
2147483648 is much safer than 4 billion whateverwhatever
Gives me a 2 billion cushion
 
@ThePhD It's the maximum of a 32bit unsigned integer.
i.e., 4billion.
 
Or is it the max of a signed integer?!
 
2^(32-1) is out of range for signed too
 
HMMMMM?!
Either way I'll just stuck with 2^(32 - 1) - 1
I mean
It's 2 billion triangles only: how much harm can it do?
 
7:40 PM
well
you'd get only 4bits/triangle, even consuming the entire of VRAM, for 4 billion triangles.
 
You've lost me. o_O
 
well
how much VRAM does the average consumer have?
1GB? 2GB?
 
512 MB.
 
that's only half a byte per triangle, for 4 billion triangles
 
Ffffucking visual studio
 
7:42 PM
even ignoring book-keeping
2GB at 12bytes/triangle, the minimum you'll need for position, is 180million triangles.
 
Yeah, so I'm not hitting that maximum anytime soon...
 
no
so I think it's safe to say that you don't need to care about the D3D11 triangle limit.
the D3D10 and D3D9 limits, though, might be more realistically hit.
 
Yeah, 65535 is tiny.
 
yeah, quite realistic to fit in that many even fairly heavy triangles
 
Yerp.
Also,
Optional the things marked optional in the list...
 
7:49 PM
There
 
Should I just make them 'No', to be on the safe side?
 
Now are you guys happy? No more need for stakes, pitchforks, and firepits.
 
@ThePhD Well, you can't guarantee that they exist, so...
 
@rubenvb Oh we'll find something don't worry
 
Hm... ... false it is.
 
7:50 PM
lol, I don't doubt that. The more you find the more I can fix.
 
I'm going to bed though
 
@CatPlusPlus Can I come with you? <33
 
why is it considered bad practice to use "using namespace std" again?
 
Collisions
 
7:52 PM
@Crowz it causes unwanted naming conflicts everywhere. It's really only bad practice in headers.
 
@Crowz y u no check SO?
its been answered a bajillion times...
 
It's almost always bad practice
 
is using printf also considered wrong?
 
Yes, it's not type-safe
Rule of thumb: if it's in libc, it's bad
 
Saving this on Stacked Crooked, so I never have to think about or write it again, and for anyone else who needs capabilities:
 
7:54 PM
@CatPlusPlus I like libc :(
 
@ThePhD: did you finish working on your Property template?
 
libc is bad
 
@Borgleader Yes.
 
@Crowz Liking libc is bad and you should feel bad.
 
But...
 
7:55 PM
@ThePhD Is it hosted anywhere? With examples?
 
but but libc is ~~fast~~
 
I just think cout looks like the most awkward thing ever
 
@Borgleader =l .
 
False dichotomy
Also Boost.Format/FastFormat
Every time you use libc a kitten/puppy/something else dies
 
@CatPlusPlus That's an argurgument for it's usage...
 
8:05 PM
How do you use decltype again?
It's just decltype (var), right?
I'm not going insane?
 
decltype(expression)
 
Okay...
Hm.
So I think my thing is not lambda-proper.
Because lambdas for closure types don't have default constructors.
So I don't know how to get this thing to be alive.
 
what thing?
 
@doug65536 Will you be my new best friend?
 
 auto myget = [] (int& n) -> int {
        return n + 100;
    };

    property<int, decltype(myget)> prop = 200;
@DeadMG ^
The myget is used like this:
	T get () {
		TGetter getter;
		return getter( val );
	}
myget doesn't have a default constructor, though.
So I'm wondering how to make it work.
 
8:12 PM
you have to store an instance of TGetter and construct it from an instance passed in to your constructor.
 
That... sounds grossly inconvenient.
Ah well, that's the price to pay.
 
is how all Standard types do it
how else could you ever use, say, non-default-constructible allocators?
 
By making them all default-constructible, of course!
But that is a silly notion, so... back to patching up the property class..
Ugggh now I have to store these structs?
Totally adds overhead, maaan.
Maybe I could do some type magic.
std::is_default_constructible might save me.
Are lambas movable and copy-constructible?
Or just copy-constructible?
 
Ell
No idea :S
 
Hello, World!
 
8:31 PM
@ThePhD Movable if their captures are movable; copyable if their captures are copyable.
@ThePhD There is type magic for this, but it's complex and not worth doing unless desperate.
 
@DeadMG Already doing. :D
 
well fuck you with a twelve foot pole
:P
 
Mmm, sounds fun.
 
Best C++ error message I've seen in a while:
> "QNitroShareAccount.cpp:49:7: error: type 'QNitroShareAccount' is not a direct base of 'QNitroShareAccount'"
So apparently that's because GCC 4.6 doesn't support delegating constructors.
That was first introduced in GCC 4.7.
 
well
the error message is quite accurate
 
8:45 PM
@Borgleader Here you go. I fixed it up and made it nice JUST FOR YOU: stacked-crooked.com/view?id=783a2dc77bab3f21789d98c467b18c40 /cc @DeadMG I only did some of the type magic necessary.
 
YAY! :D
 
Not all of it, though.
Right now it will force you to pass ALL of the getters and setters as default arguments if even one of them is not default-constructible, which is a bit of a waste.
 
0
Q: how to set default g++?

Joe Coder GuyMy host has installed c++11 and g++ 5.7.2 (I'm told), but we can't figure out how to set 5.7.2 to default as g++ --version still says I'm 4.1.2. Stack has shown me that I can't sort multidimensional vector of ints? without cc1plus: error: unrecognized command line option "-std=c++11" w...

Welcome to the future.
Also, hi.
 
Hiiiiiii Robot
How're you?
 
@R.MartinhoFernandes: heyoo
 
8:51 PM
@ThePhD decltype is exactly like sizeof, but instead of resulting in a size, it gives the type of the result of the expression
 
Not exactly.
 
@doug65536, umm. size_of gives you a size_t. decltype gives you nothing you can use at runtime.
 
the implementation of sizeof we've had for years already did most of the work of decltype, then it got the size of that type instead of returning the type itself
 
yes, but you can't "return the type". Well, you could return a representation of the type, but decltype doesn't.
 
yes, I know "return" isn't exactly the right term, you know what I mean
 
8:54 PM
@rici Of course it does. How else could the compiler instantiate a type which was given by decltype?
 
@DeadMG it returns the type in the same way that a macro returns its expansion. I don't regard either of those as in the same category as size_of
 
I'm talking about sizeof, not size_of btw
 
@rici They're not, but they are still functions and they still return values.
 
sorry
in what sense are they functions?
 
actually, I'm not sure if the preprocessor is Turing-Complete and if function-like macros are actually functions.
but decltype is most assuredly a real function.
@rici It takes an input, it gives an output, it is part of a Turing-Complete system.
 
user142019
8:56 PM
The worst narrator of The Netherlands is on TV. Yay.
 
in what possible sense is it not a function?
 
there's no requirement for a function to be part of a turing complete system, if you're talking about mathematical functions.
 
@DeadMG control doesn't go into code that computes
 
but they're not functions in the use of "function" defined by the c++ standard
 
@doug65536 Of course it does. It goes into the implementation of decltype.
 
8:58 PM
@ThePhD Fine, thanks.
 
typeid provides the representation of a type
 
@rici It is true that "function" is given a rather restricted use by the C++ Standard- much more restricted than functions actually are.
 
@DeadMG you should read about how compilers work, or stop trolling me lol
 
it's not a function either, it's a syntactic entity like sizeof
@doug65536: he's trolling me, not you.
 
it is most assuredly not a syntactic entity.
 
8:59 PM
:)
 
how can a syntactic entity have a semantic effect? it can't.
 
"The result of a typeid expression is an lvalue..."
 
only semantic entities can have semantic effects.
 
Technically, it is a function. It's just one that is run at compile-time, instead of run-time. It's still technically a function.
 
right
 

« first day (841 days earlier)      last day (4109 days later) »