« first day (1804 days earlier)      last day (3135 days later) » 

2:01 AM
@Lalaland And actually, yes. The shadows do have shadows. :D Also, soft shadows generated from area lights. Penumbra, umbra, all that jazz. :D
 
user406009
I think I'll just step outside when I want that high quality.
 
In games, everything in shadows stops acting as a blocker of light, which makes for that extremely gamey look of every game. :D
 
user406009
Best of luck regardless. Make sure to take screenshots for the Lounge!
 
And soon, with VR I'll be able to walk in the monstrosities of my creation. :D
 
I have a minimal repro! /cc @Andy
2
 
2:04 AM
I dream someday that I will be able to walk into a lifelike virtual representation of the bridge of the USS Enterprise. :D
 
@ElimGarak And then someone will whisper into your ear "wake up".
 
Also, I forget, but it's g++4.9.1 on CentOS 6
 
That's the part that most people miss. While I agree for regular uses that games look pretty okay and you can just step outside. But for stuff like Star Trek, virtual lifelike worlds are a must for suspension of disbelief. Because I still haven't figured out how to synthesize exotic matter.
 
user406009
@AnastasiyaAsadullayeva Can you provide the compilation flags?
 
They are massive, I'm going to reduce them too
 
2:07 AM
@AnastasiyaAsadullayeva ahahahah
I don't even want to read that, man. My eyes literally look away on their own. :D
 
@Lalaland Actually, just tested with no flags, still crashes. g++ -std=c++14 -I../include *.cpp
 
user406009
No reproduction on gcc (Debian 4.9.3-4) 4.9.3 with the command g++ -std=c++14 foo.cpp main.cpp
 
I like how the 49 - 131 lines look like icicles if you tilt your head.
 
Nevermind, wrong binary. I can't repro either with no flags.
Ok, I'll reduce slowly
 
Btw. do you know who the author of your suffering is?
 
2:12 AM
I'm not sure ;_;
 
user406009
@ElimGarak You can always just blame Bjarne.
 
I like how Bjarne sucks at English, it's hilarious :D
Windows 10 64 bit
16.39%
+13.17%

August 2015
 
Ell
I am slepy
sl33py
 
Nice to meet you, slepy. In slang here, slepy means "blind".
 
So this happened near my former house: syracuse.com/state/index.ssf/2015/09/…
 
2:18 AM
Ahahah, all turds were born equal.
 
hey were posted by Ashley Powell, a black graduate fine arts student
 
I suppose he type-punned himself into white
 
user406009
That person is an idiot. The trick for these sort of things is to pick a non-important example.
 
user406009
Such as a "brown-eyed people only" sign
 
@Mikhail lol 2015
 
2:26 AM
@AnastasiyaAsadullayeva "It's art" -> no explanation what the point was
10/10 wish I could justify my papers with "It's my artistic expression".
 
Ell
I need to sleep
 
user406009
Solution: Don't take any humanities classes.
 
Ell
my room is such a mess though
Night buys
 
user406009
Segfaults like a charm now.
 
2:37 AM
Omg yes ;_;
Thank you
I've never been so happy to see someone else segfault
 
I would build it
if I had a linux machine
or remembered how to configure my gcc
 
I'll try to make a coliru repro for ease of debugging
How can I make multiple files?
 
Save the IDs
THe IDs are the file names.
 
But then it's hard to edit
 
>
This file can be also found using the Coliru command line: cat /Archive2/33/25d6c0bfcb0a07/main.cpp
Well, yeah
 
2:45 AM
Oh I can wrap the file in different sections of #ifdef and conditionally set those
 
Topkek
Coliru doesn't really have multi-file editing support /cc @StackedCrooked
Wonder if that's something you can actually build into coliru.
Like, having multiple files in the directory.
 
Uff
Oh
Debugging party?
 
Something like that.
 
user406009
@AnastasiyaAsadullayeva Wow, you weren't kidding about how finicky the bug is.
 
Let's see if I can join the party
 
2:51 AM
@Lalaland i cri
Not but seriously I'm very happy you can repro
 
@AndyProwl Grab GCC and prepare to eat your own heart out.
 
Oh
Not sure I have GCC here
I'm a dumb windows used
*user
 
user406009
Minor simplification of foo.cpp
 
If I can make an easily editable coliru I'll post on SO
 
user406009
#include "foo.hpp"

void Foo::bar() {
    auto map = std::map<int, std::pair<callback_t, callback_t>>();
    map[0] = {};
    map.erase(map.begin()); // Segfault here in std::function<void()>::~function (see below trace)
}
 
2:52 AM
Thanks, can also remove main.o from the link step
 
... Wait
 
So the problem is the destructor of an std::function initialized with {}?
 
Why are you surprised that segfaults?
Oh, wait, you're not actually calling it.
 
user406009
@ThePhD You can get rid of the segfault by changing really odd parts of the code though.
 
Or does it only happen with map?
 
2:53 AM
@AndyProwl It apparently segfaults in there yes, but that makes no sense
@AndyProwl Changing any single line of code makes the problem go away
Removing the ar step also makes the problem go away
 
@AnastasiyaAsadullayeva lol
wait so is it literally the code you posted?
 
IT MAKES NO SENSE
 
What's ar do again?
 
@AndyProwl Yes, @Lalaland can repro
 
2:54 AM
Yes
@ThePhD Pack multiple .obj together
 
so it can't be made more minimal than that?
 
Why are you doing that step manually?
 
that code looks fine
 
Of course it does
@ThePhD It's in the build steps of the tool I minimized
 
Ah.
 
2:56 AM
Removing ar gets rid of the issue too
 
and VS eats it right?
 
FWIW I had a lot if problems when I manually did stuff with ar.
 
VS eats it right. g++4.9.1 to 5.2.0 show the issue
 
I guess you can only file a bug report :(
what happens if you use unordered_map?
 
Send a frown to RMS!
 
2:58 AM
Also are the #pragma pack() ok in that context?
around the inclusion of <string> I mean
 
@AndyProwl Removing them makes the problem go away, too
 
I'm not really sure what it does
 
is this relevant?
81
Q: Is gcc's __attribute__((packed)) / #pragma pack unsafe?

Keith ThompsonIn C, the compiler will lay out members of a struct in the order in which they're declared, with possible padding bytes inserted between members, or after the last member, to ensure that each member is aligned properly. gcc provides a language extension, __attribute__(packed), which tells the co...

 
> #pragma pack() sets the alignment to the one that was in effect when compilation started (see also command-line option -fpack-struct[=n] see Code Gen Options)
 
user406009
2:59 AM
I was able to get a tad more simplification: coliru.stacked-crooked.com/a/08a486aaca350b28
 
why do you need #pragma pack around the inclusion of <string>?
 
user406009
@AnastasiyaAsadullayeva What was the source header you got that push and pop from?
 
user406009
I'll try including that.
 
@AndyProwl But it works without ar! And it also works if you remove the unused memory include of main.cpp! Or the unused member of foo!
Nothing makes sense.
@AndyProwl I don't, it's the result of minification
@Lalaland Some deeply nested inhouse library
 
user406009
3:01 AM
@AnastasiyaAsadullayeva Look at my simplified version. It indicates that the member causes the error because it goes on the stack.
 
@AnastasiyaAsadullayeva My wildest guess is that you hit a compiler extension bug with that #pragma pack thing
 
@Lalaland neat!
great simplification
 
hm, this cottage cheese box has no expiry date
wtf
oh well
there must be a normal reason why it tastes weird
 
user406009
:25901019 Hmm.
 
I can repro actually, nevermind. (I deleted the message but I'm guessing you use StarGayzer)
 
3:08 AM
@AndyProwl lol
 
user406009
I tracked it down.
 
user406009
The problem is #include <bits/stl_pair.h>
 
Alright, I think I got the slides for monads.
 
user406009
That header is both included by <string> and <memory>
 
The joke's in place \o/
 
user406009
3:08 AM
And it is the minimal one to keep the breakage.
 
@Griwes lol
 
@Lalaland Omg <3
 
user406009
So that alignment is breaking that pair thing.
 
@AndyProwl What? Still 20 minutes left. :D
 
@Lalaland But why does it work without ar :D
 
3:09 AM
@Griwes facepalm :D
 
@AndyProwl I don't get that facepalm.
Anyway, it's a crash course, alright.
 
@Griwes Oh, don't take it personal. It's just that if I had to give a talk at a major conference I'd prepare the slides like, one month before and practice the talk 5 times
but that's just me :P
 
especially if it's my first talk
@Griwes what room are you in?
 
The <memory> in main and <string> in foo have stl_pairs with different alignments rite?
 
3:11 AM
Err. Neither of those is my first talk in any sense other than "first at CppCon".
 
I think it's kind of time to get going if I want to make it
 
@AndyProwl urs bby
 
404
 
@AnastasiyaAsadullayeva lol
 
inb4 room not found
 
user406009
3:11 AM
@AnastasiyaAsadullayeva Yep. Let me upload my latest simplification.
 
@Griwes well, by "major conference" I meant CppCon level
 
So C++Now is not major? :P
 
not enough major
 
-.-
 
user406009
3:13 AM
@AnastasiyaAsadullayeva The "trivial fix" is to simply include <string> or whatever once before the pragma pack.
 
user406009
It's UB behavior anyways to be using that on standard library headers.
 
shit I'm afraid I won't be there on time
 
I'm still curious though as to why the ar step exhibits that behavior and not g++ *.cpp
 
user406009
Yeah. That part is confusing.
 
3:14 AM
UB?
undefined bitchavior
 
Actually it does!
If you main.cpp foo.cpp it crashes
The other way around doesn't
So probably linker picks different symbols
 
user406009
Yep. Looks like a game of which symbol wins, the packed one or the unpacked one.
 
main sizeof:64 alignof:8
foo sizeof:64 alignof:1
That's it m8
Many many many many thanks @Lalaland (and Andy for being willing to help <3)
 
user406009
Interesting puzzle.
 
user406009
3:21 AM
Now comes the fun part: git blaming whichever idiot wrote that pack statement.
 
They're probably doing something dumb like trying to reinterpret byte stream directly as a struct
 
user406009
@CatPlusPlus The issue is that they used a pack statement on a standard library header.
 
user406009
That's a big no-no.
 
The issue is that they used a pack statement
 
user406009
Nah, pack statements are fine when they are used correctly.
 
3:23 AM
@Lalaland That was me. Except at the time it was only around structures :D
The include spawned much later in an unrelated file that was included by proxy
 
They're completely terrible for almost everything people try to use them for
 
@CatPlusPlus Yes
I was forced (smaller => faster => lower latency => monies)
 
Serialisation taking the lead
I needed pack uh once
In a kernel
For multiboot data
@AnastasiyaAsadullayeva Capn Proto uses in-memory layout designed for reinterpreting
In a safe way, without packing
 
Yes I already said we should be using a 3rd party lib but hey apparently it's ~~too slow~~
You know we pack enums in bitfields eh
 
Well there's no decoding step with CP so
 
user406009
3:29 AM
@CatPlusPlus With packing you can just mmap your data and get started right away.
 
@ElimGarak I had short hair back then.
 
Except not because that's dumb and unportable
 
@CatPlusPlus Network wise I meant
But anyway the technical choices around here aren't exactly the best
 
Proper alignment is more important than this faux convenience anyway
 
What can a 24 yo say to 35+ guis
 
3:32 AM
I should sleep
 
user406009
How did the string header get in there anyways? It should have just been structs inside the pack?
 
Someone added a to_string and pulled <string>, yeah it should've been structs only
Okay, fixed, let's rebuild everything just in case and test.
IT WORKS
 
Evening session!
 
Many thanks @Lalaland :)
 
3:42 AM
I feel sicky
(that's not related to the slide)
 
user406009
We really need future::then
 
Yeah
Current future is virtually useless
Also what, why would .then() take the future as argument? Shouldn't it be the the value?
 
user406009
Error propagation.
 
user406009
Exception*
 
"It's your problem, you deal with it."
 
user406009
3:51 AM
There is no way to pass exceptions as arguments, so you have to get the exception when you call future.get
 
user406009
Its stupid and everyone hates it.
 
@Lalaland exception_ptr :p
 
...?
 
user406009
Yes, but you would have to rethrow for that to work properly.
 
"No way to pass exceptions as arguments" what?
 
3:53 AM
I wonder if await 2.0 lets you basically implement do notation
I have a feeling it does. Need to play with it
 
Everything changed when the do notation attacked.
 
But then I have to wait till I get back home
Oh look a slide called "do notation"
 
user406009
@ThePhD I probably butchered the argument. The proposal has a more well written version.
 
I'm getting some weird OpenCL performance problems. I have a computation that takes 20ms with data upload and I synchronize at the end. When the computation runs constantly it takes 20ms, but when I wait 60ms between computation it starts taking ~30ms. Is this some weird power saving feature? (I'm using my laptop, if I unplug the laptop the computation takes ~35 ms)
 
4:03 AM
Not impossible, GPUs have power saving states too. Also note that the GPU may be used by something else so the cache gets less hot for your app?
Try disabling power saving perhaps.
 
@AnastasiyaAsadullayeva That's what I said in my previous talk!
 
@Griwes link pls
 
You'll have to wait until it's on YT. :D
 
4:34 AM
Yep, I can read that all right
Oh lightning talk on clang for windows
This might be interesting
This sounds promising:
 
@AndyProwl x86 is a nightmare, but x64 is supposed to be beautiful on Windows.
 
5:00 AM
I'm actually impressed that they got ASAN to work on Windows in a not terribly long time.
 
I must say the lounge is a bit dead when the europeans sleep
I must also say that I probably found out why the cottage cheese had a weird taste
Well it's not like I must
 
Hey, I'm really sorry to just pop in with a question, but I can't figure this out, and I have a lexical analyzer due in a bit
In terms of best practices, should functions that are only going to be used inside a c file be included in its header file? They'll never need to be accessed outside of that file.
 
5:18 AM
@Rapptz ... Wut.
Like.
Wut.
 
Hm I don't feel good
 
@ThePhD What a bitch m8
 
That isn't a bitch move
That's... downright fucking sinister.
 
> On Sept. 10, 2014, she posted on her Twitter page: “National Suicide Awareness day, I wish more people understood. I love you and miss you everyday Conrad. Help others #WeCanEndSuicide.”
 
@Rapptz What the fuuuuuuuuuuuuuuuuuuuuuuck.
How did her BRAIN end up in that state?
 
5:27 AM
god knows
 
that's so fucked up
poor kid
 
^ From her twitter
Fuckin' madwoman.
 
Being weird is fine but that's not being weird
that's being sick and/or criminal
 
Text processing in python: never again.
 
@ThePhD why?
also good morning
 
5:38 AM
Just takes lots of time.
Then again, it'd probably take time in most of languages
 
you mean writing or executing?
hmmpfm why is Rust installer 88MB
they said "minimal runtime"
 
@AndyProwl awoken european glorious master race
@AndyProwl Some people are genuinely insane
 
yeah
 
lel futures in C++
 
man I feel so sick I can't sleep
totally weak
wtf is this
 
5:45 AM
@AndyProwl wanted to ask
 
@AndyProwl night lounge is best lounge
 
were you been drinking?
 
nope
I was listening to C++ talks though
 
oh there you have it then
 
@LucDanton no shitposting and no drama right
 
5:46 AM
the only way you can leisurely lounge
 
@BartekBanachewicz no seriously, it started all of a sudden on my way back to the hotel and it's just getting worse
 
@AndyProwl medication pls
 
nausea, weakness, am I dying, who knows
 
Acute C++itis
 
could be
 
5:48 AM
Prescribe yourself some Rust.
 
it upsets me because I felt totally fine in the evening
 
maybe if more people start using Rust here we might drop the C++ name
 
lol
 
but we do need something to make fun of
 
there's Go and Java
C++ is as fun as war in Syria
 
5:50 AM
I don't know them enough to make fun of them
 
@BartekBanachewicz It's bad to make fun of the disabled
 
I may have a fever
where is a thermometer when you need it
 
in the ....
urm
 
CppCon is disease ridden?
 
stds everywhere
 
5:52 AM
I'm still working on inkdoc.
Got good progress.
Been working on namespaces all day.
 
good progress m8
 
what's inkdoc?
 
I have to rewrite the entire thing to make namespaces work.
 
keep them coming
 
5:52 AM
what was lucdoc?
 
i can't imagine i actually woke up before 8
 
@AndyProwl It's a auto-doc tool for Sphinx.
For C++.
 
@AnastasiyaAsadullayeva ah I think I got it. Is it the former lucdoc?
 
5:53 AM
So you can write doc comments in C++ and use Sphinx to pull the doc comments into proper Sphinx directives.
And use Sphinx instead of Doxygen.
 
Now if only programmers actually wrote useful comments...
 
@fredoverflow signatures best comments
 
I see
 
in a well-designed system you don't really need more than signatures to use it correctly
 
@fredoverflow Well, we still produce compilers even though programmers don’t seem to actually write useful code either.
 
5:55 AM
/**
 * returns the x
 * @return the x
 */
public int getX();
 
@fredoverflow // OMG I'M IN THE DOCS!!
 
@fredoverflow is there no @param no params
it would be of tremendous help
 
// This is the default constructor
I actually used to do that shit
I was such a terrible programmer
 
@BartekBanachewicz lol
 
I also hope I'll say the same thing about my current self in a few years
 
5:58 AM
i++;   // increment i
 
lol
 
How many spaces do you put before a // comment?
 
@AndyProwl // Not to be confused with the default destructor, which this isn't
 
// Inform about progress
postMessage({ type: "progress", val: (queue.length / n) * 100.0 });
here's my code
2013.
 
Is this JavaScript?
 
5:59 AM
@fredoverflow Depends. Usually one, but sometimes I want // comments on multiple lines to align
 
@fredoverflow yeah?
 
@AndyProwl I use 3. No idea why.
@BartekBanachewicz Okay so no error in the division :)
 
@fredoverflow interesting
 

« first day (1804 days earlier)      last day (3135 days later) »