« first day (1140 days earlier)      last day (3799 days later) » 

12:03 AM
@LightnessRacesinOrbit meh, too easy with TinEye firefox plugin
good night!
 
@LightnessRacesinOrbit it's a private meme :/
 
12:39 AM
Gone.
 
Ell
Night all
 
Let's talk a little bit about my heap sort implementation.
It's broken!
 
zch
Why is your name in caps?
 
@Ell Nite beauty :)
@zch It's not, refresh the page.
 
zch
@Jefffrey is it std::heap* sort or custom heap?
 
12:47 AM
@zch custom heap
@sehe Not on super user.
 
zch
Are you aware that 0-based heap operations are a bit different than with 1-based heap?
 
yup, of course
 
if (!(stuff.transition.transitioningIn || stuff.transition.transitioningOut))
Feels strange to add this to all my clicks :\
 
@Jefffrey lol
 
My code has a bunch of strange inconsistencies.
 
1:02 AM
can anyone explain why this prints destruct twice on my machine? coliru.stacked-crooked.com/a/7b7ba2375627c75d
 
Do you have more than one thread? Not sure.
 
no
that is the full code
 
zch
clang doesn't even compile it
 
try g++
 
zch
g++ works as expected
 
1:04 AM
linux or windows?
I'm using windows
 
zch
linux
Do you have the same thing with thread_local tls tls_obj;?
 
sec
yep
this might be a gcc in windows bug
wow, it really is a double-free
I changed the code to this:
std::cout << "destruct " << this << "\n";
construct 0x7b7f38
destruct 0x7b7f38
destruct 0x7b7f38
 
@nightcracker Doesn't on my machine (also Windows)
 
@Rapptz what version of g++ do you use?
 
4.8.1
 
1:09 AM
gcc version 4.8.1 (rev5, Built by MinGW-W64 project) ?
try using my compile flags: g++ -std=c++11 -O3 -m64 -march=native
 
zch
Must be a bug. But better don't use thread_local.
 
@nightcracker still the same output
 
@Rapptz can you give me the assembly output so I can compare?
 
what's the at&t syntax flag again?
 
(-S in case you didn't know)
please no intel
 
1:11 AM
wrong thought
oh wait it's at&t default
okay
 
pastebin
 
what?
 
ok what the fuck
if I literally compile your assembly output
it still says double destruct
 
>main
construct
destruct
 
2 c > programming > c++ > pool_alloc | a
construct
destruct
destruct
woops
now that's weird
(the assembly outputs are identical btw: gist.github.com/nightcracker/7700283/revisions)
could you send me your binary?
 
1:19 AM
uh ok
same compiler flags as you btw obviously.
 
k thx
sec
fuck you
I fell for an ad
 
zch
I have an idea. Try to write "destruct1\ndestruct2"
 
@nightcracker ?
 
zch
I think it might be about static destructor order.
 
After 6 months with Qt, I can say: I kind of miss HTML/CSS.
 
1:29 AM
I'm actually really worried
I mindlessly executed the .exe
some download "helper"
you bet your ass it's a virus =/
(not blaming you, these ads are brutal)
 
Send it to virustotal.
 
You browse the internet without adblock? :s
I didn't even know that site had ads lol
 
I have it installed
 
I do not see the icon on your address bar. :x
 
Thanks for the heads up though :/ I'll stop using it now if it has those retarded fucking fake download buttons.
 
1:30 AM
wtf
adblock is gone
on a side note
on my PC
double destruct
 
hm. weird
 
also for some reason
your executable is 250kb, mine is 49kb
wait a sec, could you statically link libc++?
 
yeah with -static-libstdc++
but I don't think I did that
 
I mean, could YOU try that and send me it?
I have a suspicion that my LIBSTDC++-6.DLL is broken
 
it's now 1.7 MB if I statically link lol
 
1:35 AM
well duh
c++ runtime is huge
 
zch
Is it possible that your runtime calls std::cout.~... before ~tls and it causes weird things?
 
what's a good site to upload without um
all the fake buttons
 
just upload there
I won't make the same mistake twice
or mediafire
 
mk
green button in the bottom :v
 
I am yet to see a fileshare site without them.
Not sure on dropbox though.
 
1:44 AM
tada!
 
I always use adblock.
 
double-destruct is gone
so my suspicion was correct
my libstdc++ implementation is broken
what distribution do you use?
 
mine's old
I was thinking of switching to mingw-builds when GCC 4.9.0 comes out.
 
@Jefffrey How is that not accurate?!
 
ugh I hate sourceforge
lolwut?
"Projects joined MinGW-W64, and the new builds will be available on the MinGW-W64(sourceforge.net/projects/mingw-w64) site."
 
1:58 AM
So much copy-paste :\
 
2:16 AM
There's something about the Nadesico anime. It struck a chord...
 
@StackedCrooked ?
 
It's an sci-fi/comedy anime that I watched about a year ago.
According to Wikipedia, it aired in 1997.
It's not a universally appreciated anime. The reviews are mixed.
However, IMO, it's just so great.
@Nican you should watch it :D
 
2:41 AM
welp now it crashes
 
"welp" in Dutch means something very different
 
no it doesn't
 
yes
so does it in english
 
really?
welp is an English word which means the same as cub?
 
2:45 AM
oh that's whelp
 
still that's surprising for me
 
0
Q: Size of long in C++

the_pwner224After searching on the Interwebs, I found out (correct me if I am wrong) that on Windows compilers, both ints and longs are 32 bits long, but on most Linux compilers ints are 32 bit and longs are 64 bit. If I use GCC on Linux to make a Windows executable, when I run it on Windows will the longs ...

 
@nightcracker ok
 
so far I've had double destruct with mingw-builds g++ 4.8.1, and now with mingw-w64 g++ 4.8.2 it just crashes
 
2:48 AM
I don't see why.
It seems like such a trivial piece of code.
 
hell even this crashes
struct tls {
~tls() {}
void dont_opt_out() {}
};

thread_local tls tls_obj;

int main(int argc, char **argv) {
tls_obj.dont_opt_out();
}
 
Except for the thread_local.
Apparently the compiler is buggy.
Can't do much about that.
 
@nightcracker works for me
 
3:03 AM
why does a shared_ptr have a weak reference count of 1, where does that one first reference come from? :E
 
@KonradRudolph Do you consider prostitution wrong?
@melak47 the pointer itself?
@chris Inheritance without virtual destructors has many applications, namely whenever runtime polymorphism isn't needed. Since C++11 adds inheriting constructors there's no reason not to inherit from vector, and this was a major motivation for that language feature. — Potatoswatter 35 mins ago
Have rules changed? /cc @Potatoswatter
 
@Jefffrey the pointer itself is the first use count, but the first weak use count remains even after the shared_ptr deleted the managed object. And I don't know why :D
 
@melak47 in order to become strong, one must first be weak!
Why is there even a weak refcount?
 
@StackedCrooked for weak_ptrs
 
that dogmatically makes sense
weak pointers don't have a say in the lifetime of the object.
 
3:17 AM
cppref says the control block of the shared_ptr doesn't deallocate itself until the weak_ptr counter reaches zero :E
it destroys the managed object when the shared_ptr counter reaches zero, but the control block remains
 
that's weird
 
...so if the last shared_ptr destroys the object, and itself, who cleans up the control block?
 
I never heard of this control block before.
 
it's the thing where the ref count is stored
 
I had a look at my Gmail's spam folder where I found this. Does it look like spam to you?
(I have not yet read the message itself.)
 
3:22 AM
an angel loves you! and google sends it to the spam folder :(
 
Yeah.
These are the same guys who once said: don't be evil!
And now they are preventing me from receiving money from an angel!
 
so...I have this dangling reference to a shared_ptr. why can I do method calls on a destroyed object without blowing up? :E
 
If you delete an object it is not returned to the OS.
 
it was a stack object
 
That
is crazy!
Why would you delete stack memory!
 
3:25 AM
what
 
You idiot!
 
I didn't, it just went out of scope :p
 
oh
In that case, it's like I said.
The object is gone, but the memory of it remains.
Poetic, not?
By frequenting this chat I learned that the Cat actually two things: Haskell and pizza.
I also like pizza.
Haskell is an acquired taste which I am not ready for yet.
 
hehe
 
@StackedCrooked actually what?
 
3:37 AM
lol
likes
(I suck.)
 
:P
 
user3010322
@_____________________@
 
user3010322
Life is too real.
 
user3010322
Someone create a virtual reality world for me, pls.
 
sit back and watch tv
 
user3010322
3:40 AM
TV sucks.
 
user3010322
And is not very interactive.
 
hopefully not one where everyone's a fucking moron
like breaking bad
 
user3010322
I've only ever heard good things about that show.
 
me too
that's why I'm watching it
 
user3010322
But to be honest, from what I did watch, people make bad decisions a lot in that show.
 
3:41 AM
yes
 
user3010322
But they're not just "let's make a bad decision!" type dealies.
 
that is exactly what I'm saying
 
user3010322
Usually it's tied to a personality or logic flaw of the character.
 
I'm in season 3 and no one has made a smart decision thus far
 
user3010322
"I immediately regret my decision."
 
3:42 AM
the only guy who's been at least a little intellectual in his decision making skills is a fucking lawyer.
 
user3010322
Well, from what I've seen one of them is a strung out drug addict, so.
 
user3010322
I can't really expect him to make good decisions.
 
user3010322
The other has massive issues of pride and self-esteem, so. Even more bad decisions from him.
 
it's not just him, it's like everyone. It's just so sad.
 
so, what awesome things are you guys gonna use poly lambdas for? :D
 
user3010322
3:44 AM
@melak47 State Machines for Drug Dealers that make Good Decisions. :D
 
Yeah, BB sucks.
 
user3010322
buffer_view is such a fucking useful class.
 
user3010322
I have no idea why it's not standard.
 
4:03 AM
@Rapptz maybe that's why I watch anime
 
anime is different
I wouldn't have this expectation in anime
 
user3010322
Haha.
 
@Rapptz You watched 3 seasons of BB in like 3 days!?
 
I'm on S03E01..
 
4:07 AM
They all die in the end.
 
I haven't even started Season 2. :(
 
yeah I have these 4 days off
 
Spoilers: Walter's meth eventually turns people into zombies and that's how Walking Dead starts :p
 
so I have some free time
 
@melak47 lol, so close
 
4:12 AM
I'm also watching House MD. Just need to wait which download with BB finishes first.
 
4:39 AM
Goddammit. There aren't any cheap 4TB drives this Black Friday. Fuck, what am I gonna do?
 
lol
Youre the only person I know who's desperate for multiple 4TB HDDs
 
user3010322
Dat Anime, man.
 
I fucking like put everything picking up a pair of internal 4TB drives tomorrow.
 
user3010322
I need a new external harddrive. Mine is out of space, and I want to increase the amount of Anime I have.
 
But not a single store has them...
At least none with black friday discounts.
 
user3010322
4:43 AM
They got wise to you, Mysticial. :D
 
There's this.
But $140 is not a black friday discount.
I picked up a pair of internal 4TB's a few months ago at only 130 each.
wtf... link doesn't work
 
user3010322
Lol.
 
There we go. Fixed it.
 
user3010322
@Mysticial Invisible Hand says its the best price, even when compared against Ebay.
 
user3010322
Not sure what to tell ya.
 
4:46 AM
I've been keeping an eye on the Fry's Electronics deals. Ready to go at midnight if I have to. But... nope...
none...
Ever since the floods in Thailand, Black Friday was pretty much the only time to get a good deal on hard drives.
Doesn't look like that's the case anymore.
 
5:01 AM
oh god, here I go ;_;
 
@melak47 you are so courageous
 
 
lol, nice timing feeds :p
 
It's referring to Comet ISON.
 
Hello, somebody please comment on one of my answers with a comment that starts with an angle bracket
 
5:11 AM
link
or will any answer do?
 
@minitech open or close angle bracket? :p
 
Which is the angle bracket? <?
 
Yes please
 
Are you trying to do a SQL injection on SO? :P
 
Yep. <. Or >.
Last time I checked SQL definitely delimited strings with < :P
 
5:12 AM
Done
 
No, this is the more usual double-encoding one. ’Cause we have a new inbox being tested on Meta, and it encoded &zwsp; for me, so…
@Borgleader Thanks!
Dang, not encoded. This might be intentional, then.
Thanks you two :)
 
Imagine if you came here during the day - when like everyone is here. :P
 
angle brackets everywhere!
 
You'd wish you'd have a "delete all comments on SO" button in your mod tools. :P
 
The puppy would have probably binned his message
 
5:17 AM
^^
ahahaha
 
speaking of the devil
 
god damnit, why so expensive T_T
 
user3010322
Expensive is the way of the future.
 
does someone know how to do this? I had a similar problem once except for the start of the linked list: stackoverflow.com/q/20278747/3047095
 
well you know what, it actually worked.
 
5:29 AM
gj
 
user3010322
What was the point of the wrapper, again? :O
 
to call native c++ stuff :D
so that I can call c++ when I'm calling c# when I'm in c++ :)
 
@woolstar:If this is the case then what is not being allocated? the shared_ptr Items were always able to tell me if they were null or not(they worked in a previous version). Suddenly they dont work? Or is it the shared_ptr itself that is not allocated? — Molma 9 mins ago
This guy is drunk.
The whole question doesn't even make sense.
Then suddenly shared_ptr comes up when he doesn't even know what private and public are there for.
 
@R.MartinhoFernandes thanks, this is a lot easier than COM crap :E
 
user3010322
Heh.
 
user3010322
5:41 AM
Well, anyhows.
 
user3010322
Oh, that's right!
 
user3010322
Um. I have a bunch of classes called "Loaders"
 
...what?
okay
 
user3010322
Technically, the opposite of that is called "Savers"
 
user3010322
... Do I call my next set of output-writing classes "Savers"?
 
5:42 AM
Unloaders? :D
 
Serializers
 
@Borgleader boring
 
Oh, I might have overreacted there.
 
user3010322
Serializers sounds more reflection-y.
 
can't believe you still have loader.s
 
user3010322
5:43 AM
They're super useful. I don't see why I wouldn't have Loaders.
 
user3010322
They're (optionally stateful) lambdas, which take necessary parameters.
 
@Pawnguy7 Are you a masochist or something
 
What exactly do your loaders load? And @DeadMG why would one not have any?
 
@ThePhD call them Marshalls :D
 
user3010322
@melak47 Haha, I actually like that. :P
 
user3010322
5:45 AM
@Borgleader PNGs, DDSs, Curs, Icos, Anis, BMPs, Flacs, WAVs, Vorbises, etc.
 
user3010322
Usually all named PNGLoader, DDSLoader, etc. etc.
 
yeah
you're gonna have so much success loading a PNG when you want to play a sound.
 
load png, play it back as sound, save as fbx
 
@melak47 is that native interface?
 
@EnglishMaster which part
 
5:48 AM
the entire stuff
 
it's 3 projects. CppImpl, native C++ .lib; CppCliWrapper, C++/CLI DLL; and CsConsumer, a C# application
 
I wonder why did they choose to write hexadecimals in code like 0x1234 instead of 1234h. Using a notation at the end, you can easily write numbers in other number systems such as binary 10101b. But the problem is b is 11 in hexadecimal
 
@EnglishMaster Postfix notation is reserved for something else
 
there's user defined literals now (but not for MSVC ._.)
 
also 1234h is ugly as fuck
 
5:52 AM
not really, I think hx1234 is uglier
 
Who uses hx1234 anyway, thats just retarded
 
The 0x notation is so beautiful that people choose it as username on SO.
 
nah, it's less retarded than ignoring binary number systems
 
Who ignores them?
 
When Russian hackers would do anything to harm your computer for a shot of vodka, would British hackers do the same for a cup of tea and a biscuit?
 
5:57 AM
@EnglishMaster Wtf
 
@EnglishMaster you are disappoint son
 
Going for tea time, c u
 
@DeadMG Care to bin a few removed messages? :D
 
6 messages moved to bin
 
@Mysticial tyvm
 
6:01 AM
Well, I guess I'll just plonk and move on
 
Good weather today
 
@Jefffrey same
 
1 user moved to bin
 
lol
Also good night everybody
 
Someone told me I suck at English last time because I said "Knife and Fork" in opposite direction
 
6:04 AM
Krof dna Efink?
 
wat
 
no, I mean "Fork and knife"
 
Efink dna krof
 
@user7236293 can you speak Korean?
 
a bit. enough for daily life and understanding common stuff
 
6:10 AM
Can you read this?
"나랏말싸미 듕귁에달아 문짜와로 서로 사맛디 아니할세"
 
read yes
understand no
 
oh
It's a sentence from "훈민정음"
 
christ.
every time I want to go play Mafia, I'm reminded who I have to play it with
 
who? Isnt that a singleplayer game o.o
 
no, it's multiplayer
and it's with Americans.
so it's kinda like YouTube comments, except they can also shoot you in the night.
 
6:16 AM
Yes I know, we're insufferable.
 
well, it's actually funny, cause the European server is way more pleasant to play on.
there's just not as many people there
 
6:38 AM
Which company/companies do you admire from a tech point of view?
 
WHY?
what do you mean by "real size"?
Files cannot hide their size, unlike humans who can just wear a Ab Belt and hide their fat
Yeah, you better
^_^...
 
6:53 AM
 
what?
 
Well, I want you to stop asking questions.
 
Dammit I fell for it.
 
Ah! sorry. So I guess I can't exactly ask if there is a room where questions about that sort of thing can be asked... bummer. If you can't tell, I'm a total noob with all of this overflow stuff.
 
well, there's a giant "ASK QUESTION" button on the primary website...
we usually consider that to be a reasonable first place to start.
 

« first day (1140 days earlier)      last day (3799 days later) »