« first day (986 days earlier)      last day (3965 days later) » 

12:00 AM
in other words someone is going full retard ?
 
Xeo
Yes
 
Do people get banned for needless flagging?
 
yes
 
Xeo
okay, gone now
 
I can't believe it's 2013 and people still say the word fuck.
Don't they ever think about my feelings and how offended I get?
 
12:09 AM
No
 
I mean like, Fuck! Some people are just so rude.
 
I don't fucking care either way.
 
lol... a drive-by link in the opengl room
 
Hmm.. opengl room sounds like fun. Sadly, I know nothing and so my trollabilty quotient is too low :(
 
Just prefix every function you make up with gl and make it sound believable.
 
12:20 AM
@ThePhD So there will definitely be absolutely no VS2013 update for Wide.
 
It's my main debugging tool.
Because gdb sucks.
 
Awww, I like poor gdb
Don't be mean to my gdb
 
kicks your gdb
One cool thing about gdb is that you can setup a number of commands to be run every time a certain break point is hit.
For example you can tell it to print the stack trace and continue the program.
 
What does gdb do exactly? I always assumed it was a shittier equivalent to the debugger in VS
 
It's a debugger.
It can start a process and treat it like his bitch.
// this seems more natural
std::cin >> str;
str >> std::cout;
 
12:35 AM
it can't be done that way because precedence
std::cin >> str >> str -> (std::cin >> str) >> str -> OK
 
str >> str >> std::cout -> (str >> str) >> std::cout -> oh dear
 
I realize I've never implemented operator>> yet.
 
me neither.
operator<< not that uncommon, but operator>> very uncommon really
hmm
I need a view-based AST.
 
View based AST?
 
12:37 AM
well, at the moment
if you have N wide files, then I produce one tree.
this is fine (involves some sync for multiple threads, but nothing problematic)
but, let's say for a moment that you wish to add or remove files or change their AST outputs relatively arbitrarily
 
@Borgleader Not really.
 
you'd have to re-parse every file and re-combine the lot.
this is obviously ungood.
 
VS debugger isn't a particularly powerful one.
 
There are better ones?
 
@MooingDuck What do you mean "false"?
 
12:39 AM
(Ive never really tried any other ones)
 
Lorem ipsum is just latin-looking garbage, and there are several variations around.
 
what I need to do is separate out the combining stage
 
VS debugging is nicer because it's integrated with the IDE.
 
VS debugger has IDE-integrated visualisation going on for it, but that's about it.
 
GDB may be powerful, but you need to do archaic stuff like a wizard.
 
12:40 AM
Archaic stuff like print variable
Truly only wisest of us are able to use it.
 
Yeah.
And that doesn't work half the time.
 
@ThePhD You mean VS's implementation? How surprising.
 
So basically there are two widely used debuggers, VS' and GDB?
 
thr a a bt => print backtrace of all threads (I learned it by heart.)
 
Define "doesn't work"
 
12:42 AM
creating a debugger for Wide is going to be a bitch.
 
Windows debugging powerhouse is WinDbg.
 
If it's made with LLVM then it should not be too hard.
 
There's also LLDB.
 
@StackedCrooked Er, yep.
firstly, LLDB doesn't work on Windows
 
And commercial ones.
 
12:43 AM
and secondly, LLVM's debug info output is incompatible with MinGW's GDB.
 
@MooingDuck Don't return local initializer_lists. It's the moral equivalent of returning references to locals.
 
I don't know if there another debugger besides gdb for linux.
 
so there is the grand sum of zero debugging tools existing for LLVM-based languages on Windows, it would seem.
hence I will basically have to author my own from scratch
which I'm sure will be hilarious
 
I will cheer you on.
 
Uh GDB can read DWARF symbols.
And I'm p sure that's what LLVM outputs.
 
12:44 AM
well, you're wrong.
because I got this straight from the guys who write LLVM and Clang- that they do not match properly.
 
@DeadMG can you get by with just implementing a symbol server?
 
I don't know, looks awfully like DWARF.
 
@StackedCrooked That looks wizardly because you abbreviated it until it looks wizardly :S
 
seriously Cat
what the fuck
 
@R.MartinhoFernandes I don't know the longer notation.
 
12:46 AM
I think the LLVM developers have a much better idea of whether or not they match than you do
 
I just learned it like that from a colleague.
 
not to mention that they probably actually tried it
you're not going to convince me that the devs who tried it are wrong
 
I'm just reading LLVM docs.
 
@StackedCrooked thread apply all backtrace
 
I still don't understand :P
How do you pick the right order of words?
 
12:49 AM
By reading documentation.
It's not English yknow.
 
@StackedCrooked thread apply is the command (applies a command to various threads), then comes the list of threads to apply something to (in this case the special all) and then the command to apply (here backtrace).
 
Oh hey, SourceTree supports Mercurial now.
 
well
 
@R.MartinhoFernandes Ah.
Ah, so it's like thread_apply(all.begin(), all.end(), bt)
 
GDB commands aren't awfully structured.
 
12:53 AM
now that Wide is building and executing again with VS2012, I can rest apply for a billion jobs
 
One of the reasons LLDB is a thing.
 
@StackedCrooked threads | Apply(bt)
 
That's like for t in $threads ; do bt $t ; done
 
In an awful, imperative way, yes.
 
functional is imperative
we've already been over this
 
12:55 AM
Yes, you suck.
 
threads.each { |t| puts t.bt.body }
 
Speaking of sucking, Man of Steel sucks.
 
I agree
 
There's no difference between anything, everything's atoms.
3
 
I think that the action scenes have been relatively well-received and it's mostly the plot people hate
 
12:56 AM
that's the theory
 
but I personally was not a fan of the action either
 
I am quite sure gold feels different from sponge cakes
 
DC should just give up and offer Joss Whedon a ridiculously large sum of money
 
I would never, I mean never, think you are the same as an ass
 
@Telkitty猫咪咪 You wouldn't?
 
12:59 AM
@DeadMG Most decisions made by the characters are because the writer said so, not because it makes any sense.
 
agree
 
@R.MartinhoFernandes thats kind of their job
 
No, it's not. It ruins my suspension of disbelief. Maintaining that is their job.
 
@R.MartinhoFernandes Superman's father's death (both of them, really) were pretty dumb.
 
1:03 AM
@DeadMG OMG THERE'S A TORNADO COMING LET US GET OUT OF OUR CARS AND ESCAPE ON FOOT
 
@R.MartinhoFernandes AND THEN RISK OURSELVES FOR OUR DOG
and then not let our super-powered alien son save our lives
and Jor-El, man, it would have been simple common sense to kill Zod after beating him
 
@R.MartinhoFernandes That was just linked, y'know
 
Oh, so that's where I saw it.
whistles
 
1:05 AM
lol
 
@StackedCrooked you got me :x
 
btw, sometime soon I will be implementing some Unicode stuff for the Wide stdlib
 
I have to confess, I always wanted to call him an ass
 
I assume you won't mind if I endlessly bug you with inane and repetitive questions that are far beneath you to answer that it's the fourth time I asked and I just forgot the answer
 
I wasn't expecting anything else.
 
1:07 AM
> If anyone really received malware, they deserved it for having automatic updates enabled, allowing new software to be automatically downloaded!
security.txt
Also Opera fucked up and let someone steal their code signing certificate's private key.
 
Ouch.
 
Apparently the update was available only for half an hour a week ago, but fuck them forever.
And yes, they informed about it a week after the fact.
 
Is it possible to partially read from a binary file?
 
1:13 AM
So if there were 1000 data blocks in the binary file, it would be possible to read only 20 say?
 
@stars83clouds Yes. Just close your eyes after you read 20 of them.
 
Never thought it would be that simple StackedCrook
 
@StackedCrooked Error 404 funniz not found
 
Really? It's just an imgur link.
 
-1U doesn't compile in Visual Studio anymore...
 
1:16 AM
lol wut
WTF
 
@StackedCrooked I'm saying I didnt think it was funny
 
FAQ candidate?
0
A: How do I iterate through a sequence of shared_ptr objects?

PotatoswatterFirst, a disclaimer: shared_ptr isn't a panacea. It should be used when ownership is actually shared. Non-sharing ownership is expressed by unique_ptr and non-ownership is expressed by a (raw) reference. weak_ptr is for a shared_ptr that must be observed but not owned… but isn't a good defensive...

 
You guys are playing some very elaborate joke, aren't you?
They cannot have broken so much.
 
I wish I was. =/
 
Is there a Boost or other strong precedent for the name of the implementation of finally blocks using scope guards?
 
1:17 AM
> I have just converted (most of) my pointers to shared_ptr objects, and have reluctantly come to accept weak_ptrs as alternatives to raw pointers.
Woah, WTF
 
Here's my implementation… it should be as canonical as possible…
 
@R.MartinhoFernandes That image? (Is a reference to "attack on titan", a currently popular anime.)
 
template< typename t >
class sentry;

template< typename t >
sentry< t > finally( t o ) { return { std::move( o ) }; }

template< typename t >
class sentry {
        friend sentry finally<>( t );
        t o;
        sentry( t in_o ) : o( std::move( in_o ) ) {}
public:
        sentry( sentry && ) = delete;
        sentry( sentry const & ) = delete;
        ~ sentry() noexcept { o(); }
};
 
pastebin next time
 
Ugh fuck Opera, now I have to scrub my system just in case.
 
1:19 AM
@Potatoswatter pastebin or get binned
 
Sure, next time
@Borgleader LOL, then someone else would just be doing the same work for me
 
@Potatoswatter Put it here if you think it adds something: stackoverflow.com/q/10826541/46642
@StackedCrooked No, I meant the reports that VS broke basic stuff like -1u.
 
@R.MartinhoFernandes Hmm, the OP there doesn't mention taking references to shared_ptrs so my entire answer would be off-topic.
 
How could they release VS in a state like this....
 
I'm sure I've seen questions about shared_ptr const & before though.
 
1:21 AM
STL, you betrayed me....
 
@R.MartinhoFernandes Ah, I'm not part of that..
 
@ThePhD Stab him tomorrow.
 
@R.MartinhoFernandes How can that even be broken? Did they make it -1ul?
 
Dunno
Ask @ThePhD
 
@ThePhD They didn't. It's a preview.
 
1:23 AM
=/
 
@R.MartinhoFernandes What reports?
 
VS "Previews" in the past didn't break like these.
 
8 mins ago, by ThePhD
-1U doesn't compile in Visual Studio anymore...
For the moment I'm going to assume it's just @ThePhD derping.
 
Anyone remembers what I was doing 19.06 at 1AM UTC?
 
Guys… should make a function finally( [&]{ reset_something; } ) which sets a scope guard, or is there a more canonical name?
 
1:25 AM
What
 
I am confused.
 
@ThePhD Are you compiling with warnings = errors
 
@ThePhD Use a user-defined literal, duh!
 
No. I never turn on -Werror
 
1:26 AM
C4146 is a warning.
 
@CatPlusPlus Shouldn't be a warning on literals, though; at least not outside of paranoid levels.
 
Microsoft official style is now 1_NEG_intunsIgned.
 
-1 for unsigned, lol bravo
 
@CatPlusPlus A warning for VS 2012.
 
1:27 AM
Yes, I'm sure they upped THAT to an error in VS2013.
 
I have a very simple linker problem, but oddly cannot find it...
 
if who wrote it can not find it, the it is okay for linker to not able to find it
 
@CatPlusPlus Warnings are not being treated as errors. I even explicitly told it to shut off and it's still doing this (/Wx-)
 
Yup. I have not been doing good today. It took me 5 minutes to find out I had a '>' instead of a '<', and a renamed variable took 30 earlier.
 
Hmm, is there a way to make a lambda noexcept?
 
1:31 AM
[](Args) noexcept { stuff } ?
 
Yeah, looks like that's valid :)
Good thing you guys didn't even pretend to review my code or I wouldn't have caught that :D
 
This is odd.
I had this little header only general use file for a random range function.
It wasn't inlined O.o
How did I ever use it before.
 
you didn't violate ODR?
 
Not familiar with what that is.
 
argh
wtb cure for stomach
 
1:36 AM
@Pawnguy7 Defining something twice. (Which isn't inline or some other exception to the rule.)
 
0
Q: string split function with regex in C++

Fadi Hanna AL-KassI have been using the following function to split a string in C++ for years: split(tokens, str, is_any_of(seperator)); , where tokens is a string vector, str is the string being split, and seperator usually (NOT always) a space. However, I have been digging through C++ std libraries to fi...

 
Oh.
I get it now :D
I guess not... very suprised.
 
@DeadMG Cure the stomach or cure you of having one? Both exist.
 
@Potatoswatter I think I wouldn't do well without a stomach.
difficult to digest food without one
 
@DeadMG No, just make it much smaller. Stomach stapling.
 
1:40 AM
I doubt that a stomach staple is effective against gallstones.
kinda solving the wrong problem here
 
I think I didn't pick up that false update. Still fuck Opera forever.
 
Gall stones, is that the stones that you have to piss out?
 
nvm
 
that's kidney
 
Right.
 
1:44 AM
I'm visiting WGP at 10:50 tomorrow
so have to leave the house at 9:20
and since stomach means no sleep until 4am recently
it's funbuckets
 
@Rapptz you've done reverse engineering before right?
 
Yes
 
Can any of the techniques you used be applied to bot making? for games?
 
I did that a lot too
 
Anna ni issho datta no ni. which means "We used to be so close.". That's the basically gist of the song. It seems to me the Japanese like to act emotional about stuff. (I don't dislike the song though.)
 
1:47 AM
@Rapptz Which game? If I may ask
 
Sigh. I am doing terrible today.
I was wondering why nothing generated, when I realized I never called the generate method.
 
It's Friday! yeeeeey
 
@Borgleader Uh sec.
 
But did you get down on Friday?
 
hello.
 
1:56 AM
@Crowz wat
 
user image
3
 
I was looking for the song Swimmer by See-Saw and ended up here.
 
@Crowz We won't forget to get down, will we?
 
searching job listings always makes me feel so depressed
 
because it reminds you you don't have a job?
 
2:09 AM
Any one use windows phone?
 
@Jeffrey Give or take.
 
@likewer Me.
 
Is background process handling in Windows Phone 7 is arguably worse than Android and iOS?
 
@likewer I dunno. Neither for Windows Phone 8 nor 7.
iOS 7 copied Windows Phone 8 for multitasking, though...
 
2:18 AM
@Crowz I don't get it..
 
@StackedCrooked Me neither.
 
Apparently it's a meme.
Not that that makes it make sense.
 
It's a low effort image macro.
 
The reference is that stupid "Friday" song.
 
2:22 AM
stupid friday song?
 
0
Q: Correctly implement finally block using C++ lambda

PotatoswatterI just happened to want a finally block in my C++ program, and the language certainly has the tools to do it if not a native facility. What is the correct way to do this?

 
The one everyone already forgot, except people who like to repeat unfunny shit for years after it stops being relevant.
 
Bah…
 
Rebecca Black?
Listening to this now, but never heard it before.
I've missing out on stupid stuff.
 
@CatPlusPlus If two atoms are the same because they're identical, what if one atom decays?
 
2:25 AM
Then they are no longer the same!
I solved the riddle!
 
I wish C++ would add finally and scope guards already.
 
Really?
 
I wish C++ was sexier
 
I don't often find the need for finally.
 
@GManNickG I wrote one once and never used it outside its tests.
 
2:26 AM
Occasionally I abuse shared_ptr as a scope-guard.
 
@R.MartinhoFernandes My current work is almost always transactional in nature, it would simplify the code immensely. : (
 
Execute-around.
 
@CatPlusPlus about that flashy thing (swf files): it turned out none of the communities I knew actually had a thumbnailer but one. I'm going undercover into their staff to get to know how :P
 
Your research skills are amazing.
(I still think this is overcomplicating shit, and whatever solution you will come up with, will be broken or unsatisfactory.)
 
I hear a sarcasm breeze blowing over my neck
 
2:30 AM
In .NET my transaction code used to look like using(var tx = new Transaction()) { blah(); tx.Commit(); }. There's finally in C#, but I don't use it :|
 
I don't remember last time I needed finally outside of Java.
 
@CatPlusPlus I do too. Their website is on beta for a long time now and they keep postponing the release date. I bet it's because they mistakenly promised a thumbnailer and they have now realized it's going to be broken or unsatisfactory.
 
@R.MartinhoFernandes using is just a short finally. :)
I guess what I'm getting at is to easily define more sugar, the base finally should be there, if not to just have something to refer to.
 
@GManNickG You don't need finally to replicate it in C++...
{
    transaction tx;
    blah();
    tx.commit();
}
 
@CatPlusPlus not even in Java anymore. try initialize blocks in java7
 
2:33 AM
"A scope (exit) { X; } B is equivalent to `A try { B } finally {X; }", for example.
 
Would be equivalent code.
 
bracket :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
 
@R.MartinhoFernandes See previous comment. Going for syntactic sugar, finally just completes try/catch to make it easier.
 
@Aboutblank Most of Java I write is for Android.
 
@GManNickG That's only fine if you never associate X; with A anywhere else.
 
2:36 AM
@R.MartinhoFernandes What do you mean?
 
I mean that if you repeat that association you are just writing lazy WET code.
finally does not let you remove the repetition.
 
@R.MartinhoFernandes Perhaps. I don't see a reason to not give people the option though. It's clearly desired occasionally by all the scope exit constructs people write all the time.
 
Most examples I've seen were abuses, though.
(Alexandrescu in particular is terrible at that)
 
WET? I don't recall that acronym
 
Opposite of DRY. Stands for "Write Everything Twice"
10
 
2:39 AM
ah
I'd really go with WEI- Write Everything Infinitely
 
Clever.
 
@DeadMG Not as catchy.
 
you gotta obey zero one infinity, you know
 
Duplicate All The Things!
 
@DeadMG Yes, but the "one" here is twice: if you write once there's no repetition.
 
2:41 AM
if you write infinitely then there's definitely repetition
 
But "wei" is not a word.
 
true
 
Wei means large field in grass in Dutch.
 
And FWIW it gives the impression that only massive repetition is of concern.
 
Don't deny us our wei
 
2:43 AM
I am asleep, btw.
 
@R.MartinhoFernandes I see.
 
sleep typing - only in the internet age
 
@R.MartinhoFernandes You've acquired that German skill of typing while asleep already?
 
Vielleicht.
 
I should be sleeping, but I'm working instead!
 
2:44 AM
Xeo is very infectious.
 
The day, too far. I don't know what this music is supposed to portray, but I can attest that it helps me fall asleep.
 
@StackedCrooked gosh that looks the painful
 
@Telkitty猫咪咪 The cow has probably been eaten already. It's no longer in pain now..
 
@CatPlusPlus chating in the lounge != working
 
:D
@Telkitty猫咪咪 It's 5 AM here :)\
 
2:46 AM
@Telkitty猫咪咪 You can gasp do both.
 
I should be working tomorrow, but I took a day off. Haha, suckers!
@CatPlusPlus Yeah, when the code is compiling...
 
I've heard something about a party if we make the deadline, so
 
Better do a full rebuild now..
@CatPlusPlus A party?
That's cool.
 
@StackedCrooked why are you up at 5am?
 
I don't feel like sleeping.
Even though I didn't sleep last night.
But that's fine. I'm not sleep deprived yet.
 
2:50 AM
I was convinced I'd fall asleep when I got home.
 
@StackedCrooked they eat milk cows? ... was talking about cow's tits look too full of milk & the cow can not milk herself
 
Didn't happen -- I'm more awake than I was at work.
 
@Telkitty猫咪咪 I don't know honestly.
 
Guess I might as well Tango with clang some more.
Because, why not?
 
2:51 AM
Also awdjhawjdwahkdjhwdjkwhdkj FUCK VISUAL STUDIO 2013 PREVIEW
FUCK MICROSOFT AND ALL ITS SHITTY PREVIEWS.
Welp, back to work.
 
lol, scandisk
 
 
Ugh, fuck this city. First I get used to total darkness at 16, and now I have to get used to total daylight at 4?
 
It's not the city's fault...
 

« first day (986 days earlier)      last day (3965 days later) »