« first day (790 days earlier)      last day (4174 days later) » 

2:00 PM
@sehe You'll be amazed
 
@ScottW First World Problems :)
 
2:16 PM
@sbi Yes, very wrong indeed. ;)
Also, hi.
First thing I see in chat today is "How to Avoid Work". It somewhat seems very appropriate for a Friday.
 
if (Source != GREEN)
Log << (Source == RED) ? "bad result" : "total fuckup";
 
user142019
@ScottW ohallo
 
I officialy <3 OGL testing
 
user142019
Dammit. I accidentally the terminal window instead of moving it.
 
user142019
I that word on purpose.
 
2:22 PM
meh
 
user142019
v
 
user142019
@ScottW YOU ARE MY MOM?!
 
@Zoidberg'-- Yes. You're grounded.
 
user142019
Oh God. My mother is a dog. I… I didn’t know.
 
user142019
2:24 PM
I actually know a guy who has the same first and last names as his father.
 
user142019
His name is Walter and his father’s is also Walter.
 
user142019
:P
 
That's common.
 
user142019
@Rapptz That’s annoying.
 
user142019
I would never call my son Radek.
 
2:25 PM
You call the dad Walter Sr and the son Walter Jr
 
user142019
I’d call him Haskell. :P
 
@Rapptz it's cool
 
I suppose it is more common in certain cultures...
 
user142019
RadekIV : public RadekIII
 
@Zoidberg'-- Segmentation fault
 
user142019
2:26 PM
@Neil oh no what now.
 
Might not be common in Scandanavian countries
 
user142019
VALGRIND
 
@Zoidberg'-- RadekIV : vritual public RadekIII, virtual public Whatever wife of RadekIII is
 
user142019
class foo : virtual public bar?
 
user142019
That syntax is new to me.
 
2:27 PM
@Zoidberg'-- it's virtual inheritance. Especially tailored for diamond problem
 
user142019
@ScottW I use it.
 
I do too
 
user142019
Sometimes Emacs.
 
user142019
But mostly Sublime Text 2.
 
user142019
Me too!
 
user142019
2:28 PM
I like this:
 
user142019
 
user142019
Its Git integration is awesome.
 
I like sublime text 2. if only the default color schemes weren't so horrible :)
 
@Zoidberg'-- Really? I think it sucks eggs. I don't find that useful at all. Gimme a freaking console already.
 
I think you can customize it.
 
2:29 PM
@Zoidberg'-- Wait, that is what people call VCS integration?
 
@Zoidberg'-- still port 1337? srsly?
 
I'd say, either do a GUI (TortoiseGit) or do CLI
 
WTF.
Seriously. :!git status <- vim has git integration too!
...
 
@R.MartinhoFernandes Vim Fugitive FTW (or just VCSCommand.vim)
 
@R.MartinhoFernandes Damn, I was going to say that.
 
2:30 PM
@sehe Well, github windows application is nice too. it's a GUI ofc.
 
hi, here's some drive-by link dumping
0
A: WINMAIN and main() in C++ (Extended)

Cheers and hth. - AlfAbout the functions. The C and C++ standards require any program to have a function called main, which serves as the program's startup function. The de facto Windows standard for the encoding of the main arguments is Windows ANSI, which does not support general Windows filenames. Therefore Micro...

 
@Cheersandhth.-Alf Subtle.
 
@BartekBanachewicz Sucks slightly less. Have to jump through hoops wih ISA server proxy
 
//
// ADVENTURES OF PROGO THE C++ PROGRAM
//
 
2:32 PM
@ScottW sometimes
 
@R.MartinhoFernandes genius idea
 
@R.MartinhoFernandes I want to hear more about Progo
 
#include "log.cpp"  // Please don't mind this
 
I like his profile
 
Why do people do this? He could just omit that from the snippet.
 
2:34 PM
> EXPERT BBCODE PROGRAMMER
 
@R.MartinhoFernandes why do people use singletons or code in php? Perhaps we'll never know.
 
@ScottW Me too. Late. I know
 
</troll>
 
2:37 PM
@FlorianMargaine What about it?
 
@FlorianMargaine useless use of - (cat -) :)
'breaking' change (nah)
 
Inaccurate floats in my C++? Impossible
 
@FlorianMargaine ouch. hoUv did that happen
 
@CatPlusPlus You should use SSE, maybe the approximations will get rid of the errors.
 
2:41 PM
@sehe i think if it was merely useless it wouldn't matter, but it sort of breaks convention: one has to look twice at it
 
@Cheersandhth.-Alf Mmm. I don't, really. But I agree: it break convention
 
well, i had to squint ;-)
 
@Cheersandhth.-Alf Oh, eye sight - I have that too these days... I keep increasing font size
 
all fun aside, I don't get this behavior
 
@FlorianMargaine Did you try using the Source, Luke?
I mean, looking at the generated assembly.
 
user784668
2:48 PM
libstdc++ y u no std::map::emplace
 
@R.MartinhoFernandes hm, no
 
Hi guys. Is it possible to use unmanaged c++ in a .net application?
 
user784668
@BlackBear No.
 
@Fanael thank you :)
 
@FlorianMargaine compile with -S (you probably know that, but whatever)
 
2:51 PM
I'm le back
 
@R.MartinhoFernandes I know that, but I don't know how to read assembly :)
 
user784668
@FlorianMargaine Post it here.
 
alright
 
user784668
@FlorianMargaine And by here I mean ideone or something like that.
 
yeah ofc
 
2:52 PM
@FlorianMargaine use -masm=intel
 
@FlorianMargaine The book "Reversing" contains a very nice and brief introduction for reading assembly.
 
for readability
 
@FlorianMargaine I do
 
@Fanael Are you sure it isn't there?
 
user784668
@Cheersandhth.-Alf Something like -g3 -Wa,-ahl would be better for actual readability.
 
2:54 PM
pastebin.com/nzruPQ98 (with std=c++0x) pastebin.com/rW8ypqYf (without)
 
user784668
@FredOverflow Yes.
 
@sehe care to explain?
 
@Fanael Oh wait, only unordered_map has emplace.
 
@Fanael don't think so. i don't like the excessive parentheses of Lisp, and I don't like the excessive percent signs of AT&T notation. what do those options do?
 
user784668
x.cpp: In function 'void f(std::map<int, int>&)':
x.cpp:5:5: error: 'class std::map<int, int>' has no member named 'emplace'
 
user784668
2:55 PM
@Cheersandhth.-Alf Print the source next to the corresponding assembly.
 
o399hee@OWW00837 ~
$ ./stacko/test.exe
(-1,0)

o399hee@OWW00837 ~
$ ./stacko/test.exe
(-1,1.22465e-16)
 
oh good idea! :-)
 
@StackedCrooked I'll add that to my wishlist :)
 
Don't generate assembly with iostream calls in it
 
user784668
@Cheersandhth.-Alf Also AT&T vs Intel is largely a personal preference. I can cope with both.
 
2:56 PM
@Florian the first without -std=c++0x (gcc 4.5.3 on winXP 32) ^^
All fun aside, TIL Sublimetext might not be your go-to editing solution if you are trying to paste 1336281 lines of Java code in your editor:
 
well i agree, except that at&t notation sucks big time :-)
 
That ^ was after trying to load it with syntax highlighting. I then became 'smart' and did "Set Syntax Plain Text" first. Which made it crash
 
user784668
@Cheersandhth.-Alf Bear in mind these options (-g3, specifically) also make the compiler emit the debug symbols.
 
@sehe orly? :p
 
@sehe What does that explain exactly?
 
2:57 PM
@sehe Ewwww, what Windows is that, 95?
 
@R.MartinhoFernandes Nothing much
@DeadMG WinXPSP3, 32
 
user784668
@DeadMG Shitdows 1.0 sehe edition?
 
@ScottW And with good reason
 
user784668
@sehe Well, it's because Java.
 
@ScottW You can probably get the same error simply from pasting <?
 
2:59 PM
@Fanael The funny thing is, Vim just loads it in <2 seconds. Even IBM rational software modeler loads it <2 seconds, I'm not sure I'll try to compile it. Though
 
user784668
@sehe It's because vim sucks cuz it allows Java.
 
user784668
@FredOverflow Will be there in 4.8.
 
user142019
Yay! Weekend!
 
@Fanael So it's in the standard?
 
user784668
@FredOverflow It is.
 
3:01 PM
great
 
user784668
0
A: Insert elements into std::map without extra copying

pbhdWell, if you dont have emplace, you can construct the element on the heap and pass pointers to map: typedef std::map<int, element*> map_t; ... printf(" > Making pair 1.\n"); std::pair<int, element*> pair(1, new element ("b1")) ; printf(" > Making map 1.\n"); map1.insert(pair); ...

 
user142019
@melak47 uh that’s for development. In production it’ll be something else since 1337 is used for the other server.
 
@Fanael Yup, see 23.4.4.4
 
user784668
@FredOverflow Yeah, just checked.
 
user784668
It's a shame 4.8 broke LTO on Windows.
 
3:03 PM
LTO? Love template orgies?
 
user784668
@FredOverflow Link-time optimization.
 
@FredOverflow How do you come up with that stuff?
 
@netcoder Other side of my brain.
 
@Fanael Same thing really
 
@Fanael 4.8 what?
 
3:04 PM
@FredOverflow The dark side
@DeadMG gcc?
 
user784668
@DeadMG GCC
 
@DeadMG gcc
 
@sehe No, the dark side is the C++ side.
 
oh
 
@DeadMG g++
 
3:04 PM
Heh, everyone left for weekend, and I'm sitting here, coding.
 
user784668
@FredOverflow That's only the driver program.
 
user142019
@FredOverflow the side that is full of nerves! Oh wait.
 
@Fanael It can have a version number, too!
 
@R.MartinhoFernandes No, rly? ^^
 
3:05 PM
@R.MartinhoFernandes way too slow?
 
@DeadMG gcc
 
@bamboon That was on purpose. See Bartek above.
 
@DeadMG PHP
me hides
 
user784668
@FredOverflow But the driver doesn't give a shit about LTO. It's actually handled by collect2, a linker plugin and lto1, the actual GIMPLE compiler.
 
@Fanael Oh, I thought we were talking about emplace.
 
3:07 PM
Why assume we are coherently talking about one thing?
 
user784668
@FredOverflow In this case, the driver doesn't give a shit about emplace. It's actually handled by libstdc++ and cc1plus, the actual C++ compiler.
 
@R.MartinhoFernandes What are you talking about?
 
user142019
@BartekBanachewicz I have weekend and I’m also sitting here coding. In the train.
 
@FredOverflow Precisely
 
@Fanael All right, all right, have a glass of milk and a cookie. You win.
 
3:08 PM
@Zoidberg'-- You have a choice
And I have to fix shitty Z transformations
 
user142019
I have to download an npm package but it fails with this terrible Internet connection.
 
user142019
daknok ±master% npm info mongoose version              ~/Documents/bliksems/web
npm http GET registry.npmjs.org/mongoose
npm http 408 registry.npmjs.org/mongoose
npm ERR! registry error parsing json
 
user142019
Do the Dutch railways tunnel TCP over UDP or something?
 
they use trained monkeys to retype the messages on small bits of paper, which are then carried by avian transport (trained pigeons)
it's all about training, you know
 
user142019
Wouldn’t surprise me.
 
3:12 PM
@Cheersandhth.-Alf why not use winged monkeys? :)
 
@Zoidberg'-- I don't see how that would have such an effect.
 
user784668
@melak47 Too expensive.
 
user142019
@R.MartinhoFernandes missing packages —> invalid JSON. :P
 
@Zoidberg'-- TCP does not miss packages.
UDP does not introduce poor connection quality.
 
user784668
@R.MartinhoFernandes It doesn't miss packets, but whether or not does it miss packages is a separate issue.
 
3:14 PM
@Fanael How could it miss packages?
 
Jun 21 at 16:31, by R. Martinho Fernandes
Insects are too alien for my taste.
 
user784668
0
Q: GCC Profile Guided Optimization (PGO)

JohnTortugoWhich information does GCC collect when I enable -fprofile-generate and which optimization does in fact uses those informations (when I use -fprofile-use) ? I need citations here. I've searched for a while but didn't found anything documented. Information regarding Link time optimization (LTO) ...

 
@jalf Obligatory "yo momma is scary as fuck"
 
@Zoidberg'-- there are hacker trolls on board
 
user784668
3:18 PM
This question makes me want to answer "ftp://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2/gcc-4.7.2.tar/gcc-4.7.2/gcc/profile.[ch]".
 
Fuck you Visual Studio. Fuck you. Fuck you. Fuck you.
2
What kind of stupid error is this.
 
@R.MartinhoFernandes Wazzup?
 
Oh hey. even 293k lines of Java is proving problematic for javac.exe on windows:
 
ARahjfsghsgh.
 
@R.MartinhoFernandes Show me and I might help you.
 
3:20 PM
And GCC is the one with crappy error messages.
 
 
@DeadMG I got it already.
 
Btw, have anyone of you heard about testception? I mean, tests for tests? That happened IRL
 
can't be that bad then
 
user784668
@R.MartinhoFernandes GCC 2.95 is quite old, y'know.
 
3:20 PM
cannot convert from 'Derived*' to 'const Base *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Seriously?
 
@R.MartinhoFernandes wat.
 
@R.MartinhoFernandes Usually, IME, means you forgot to inherit.
 
The error is "Derived is an incomplete type"
 
or that
 
@DeadMG Forgot shit.
 
3:21 PM
@ScottW s/on windows//
 
Java on windows == the worst. FTFY
 
user784668
@R.MartinhoFernandes Well, you forgot to make your code compile.
 
user784668
@ScottW Java is worse on *
 
1
Q: Should I worry about the alignment during pointer casting?

Eric ZIn my project we have a piece of code like this: // raw data consists of 4 ints unsigned char data[16]; int i1, i2, i3, i4; i1 = *((int*)data); i2 = *((int*)(data + 4)); i3 = *((int*)(data + 8)); i4 = *((int*)(data + 12)); I talked to my tech lead that this code may not be portable since it's...

 
OpenGL, Y U NO strongly typed enums.... yet?
 
3:24 PM
Java Y U EXIST?
noobs Y U POINTERS?
6
 
user784668
@BartekBanachewicz OpenGL saiz its cuz its in C
 
@Fanael I has sad.
 
@Fanael #ifdef __cplusplus?
 
#ifdef __catplusplus
 
@Fanael OpenGL is not in C.
 
3:26 PM
@TonyTheLion Yes
 
Though implementations that provide a C API may be in C, for obvious reasons.
 
@sehe Why?
 
THE HOBBIT IS 14 HuRS LONG DESPITE WHAT THE ADS SAY THEY WONT LET US LEAVE MY WIFE WETTED HERSELF WE’RE ALL CREYING DOORS LOCKED FROM OUTSID
 
user784668
@DeadMG Too long to write.
 
lol'd irl.
 
3:27 PM
@Tony You should take a crowbar to the cinema. Just to be sure.
 
Yes
I'm going to
 
@TonyTheLion Because fuck pointers, that's why.
 
I'm also going to bring a crowbar to work on Monday, to make a point clear
 
@TonyTheLion Slows down on x86, blows up on ARM. IIRC. UB in C++.
2
 
oh wow
 
3:28 PM
@TonyTheLion Because UB. Shit can't find the reference. I think I remember reading that in the standard
 
what, "I'm so thick you have to get things out of me with a crowbar"?
 
ok
@DeadMG I'm not the one that this applies to though
 
user784668
@R.MartinhoFernandes On some ARMs it'll silently load the wrong thing instead of trapping.
 
@Fanael still UB
 
oh and now I get to do PowerShell
 
3:30 PM
@Fanael Fits my definition of blowing up :P
@TonyTheLion Why are you telling us? You did not sign a contract with us.
 
user784668
@sehe No, it's not a UB as far as ARM is concerned.
 
@R.MartinhoFernandes lol you have a point
 
user784668
@sehe UB in a CPU is a bad, bad, bad thing.
 
@Fanael ... I didn't say that did I?
@Fanael Meh. Irrelevant
 
user784668
Is char guaranteed to have alignment restriction of 1?
 
3:41 PM
Yes.
 
@Fanael What do you mean by that?
 
user784668
@FredOverflow alignof(char)
 
@R.MartinhoFernandes thx for da' explanation\
 
@Fanael Actually, it is only guaranteed to be the weakest alignment.
 
I always thought it just wasn't nice
:)
 
3:42 PM
It could be 2 if there was nothing with alignment 1.
 
user784668
@R.MartinhoFernandes Then it's not.
 
@Fanael Gimme a minute to cross-check something. I think it can be deduced to be.
char x[100]
If alignof(char) > sizeof(char) all hell breaks loose.
@LuchianGrigore You're welcome.
 
user784668
lol
 
user784668
> I tested this code with gcc 2.95.3, gcc 4.0.1, icc 8.1, and msvc 7.1.
 
3:46 PM
@LuchianGrigore FWIW, most of the time implementations will simply do the cheapest thing possible that guarantees the original pointer is recoverable: just make the cast an identity operation.
 
user784668
> static_assert
 
user784668
Yeah.
 
user784668
> std::is_trivially_copyable
 
user784668
Even better.
 
user784668
std::is_trivially_copyable on gcc 2.95.3?
 
3:47 PM
I guess they removed the asserts for that test (possibly with macros).
 
Last day at work today
until the 7th of Jan
wohoooo
unrelated - does anyone know how to set outlook to auto-reply with "I'm out" or smth like that
 
Create a rule or something?
 
user784668
@LuchianGrigore Outlook?
 
user784668
I use rm as my mail program!
 
3:57 PM
@LuchianGrigore hm, there's auto reply option somewhere certainly
@Fanael Outlook is very good
 
Outlook is awesome
It works so well with everything in Office
 
You guys sound like you have been using Lotus Notes or something.
 
In fact, all MS products are awesome
 
Meanwhile in germany
 
I mean: what reason other than post-Notes traumatic stress disorder could anyone have to say that Outlook is awesome?
 
user784668
3:59 PM
@R.MartinhoFernandes PHP
 
@Neil Meanwhile in Berlin FTFY
 
@Fanael Do you secretly love PHP or something?
Can't spend 15 minutes without saying it
 

« first day (790 days earlier)      last day (4174 days later) »