« first day (1056 days earlier)      last day (3897 days later) » 

user1804599
7:21 AM
@Ell sarcasmé
 
user1804599
@DeadMG Yay!
 
lol they just made it illegal to talk about politics in schools
 
@A.H. ..?
 
@ScottW pop?
 
@Rapptz where I live
Cairo
 
7:32 AM
@A.H. :o I can hardly imagine such restrictions to last long given the current situation ...
next up: social media ban
 
user1804599
@sehe I lost that gofmt script you once sent me, so I rewrote it but it's quite different from your version and I don't know if it's any better or worse. gist.github.com/rightfold/aecf535b55d4e06282ba
 
user1804599
Yuc KitKat.
 
user1804599
The world's most terrible chocolate bar.
 
user1804599
@DeadMG Kit Kat sucks.
 
7:39 AM
@ScottW Why not?
not particularly
what gave you that impression?
they were on offer and the only thing I could have chosen to eat
 
It's a chocolate biscuit bar, and they're great! Don't give the puppy chocolate - it's poisonous.
 
woof woof cocksucker
 
I want KitKat now, but it's raining and I can't waste a trip down to shops just for an indulgence like that.
 
@MartinJames ofcourse you can. All work and no play ...
think of the economy
 
@MarcClaesen I'm not working yet! It's 08:43 here.
@MarcClaesen I'm thinking of economy with calories.
 
7:44 AM
you can do both, pay to indulge then pay again to lose weight
 
user1804599
@DeadMG cocksucker where I need one.
 
@MarcClaesen On Tuesday I'm off to Canaries, my weight-loss project has overrun :)
 
@not-rightfold Scott.
 
user1804599
Oh, nevermind then.
 
@MartinJames Yeah, you gotta catch up to my 43 pounds.
 
7:45 AM
@MartinJames happy trip!
 
user1804599
@DeadMG Your mass is only 19.5 kilograms? :V
 
@DeadMG I can't even be bothered to 'FFFFFF' anymore :(
 
@not-rightfold No, that's how much I've lost.
 
@not-rightfold I hope it's a delta..
 
user1804599
Oh.
 
user1804599
7:47 AM
Good job.
 
I'd be dead if I only weighed 20kilos
 
user1804599
MG is dead.
 
dead or paris hilton
 
@MarcClaesen The traveling will be horrible, but once there, the weather is quite hot ATM.
 
@MartinJames Tenerife?
 
7:48 AM
@ArneMertz Lanzarote, (C. Teguise).
 
time to sweat it off!
 
user1804599
Yum.
 
user1804599
Butter lozenges.
 
user1804599
 
user1804599
Damn this shit is tasty.
 
7:49 AM
Oh! I like then too! OK, I'll shop later for KitKat etc.
 
@MartinJames hm. The desert. Going surfing or just relaxing?
 
@ArneMertz Swim some.. walk some.. beer.
 
user1804599
0
Q: Strange behaviour of c++ constructor

Haridas NI'm testing this code and wondering why this wasn't failed at compile time ?. I'm using c++11 and g++ 4.7.2. I had similar structure on my production code, it was giving errors at run time, then I found that I'm constructing the class with wrong argument type. #include <iostream> #include <vector>

 
user1804599
Is that a case of the implicit conversions?
 
Xeo
> Your subscription to SG8 - Concepts was approved!
Ohey, finally!
 
7:51 AM
@MartinJames uh hands off the spanish beer. Its just additives and preprogrammed headache
 
OK, it's a bit volcanic, but I don't care if the sand is black as long as the water is clear and warm.
 
@not-rightfold that's my guess
 
@ArneMertz There are German bars with actual beer :)
 
@MartinJames take some sandals for the beach. The black sand heats itself incredibly in the sun, I once got blisters just from walking 10m with bare feet
 
@ArneMertz Yeah.. I find it's OK as long as you don't stop walking, sorta like the fire-walking over hot coals.
 
7:56 AM
@MartinJames yeah could be OK in September I think
you should try the western islands someday. La Palma is really beautiful =)
 
@ArneMertz The forecast is for some cloud, so not as lethal as midsummer when the sun is actually dangerous.
 
@not-rightfold looks like it
 
@ArneMertz Yeah.. there are some little islands you can get to by ferry. I'm going to explore.
 
Xeo
@not-rightfold Now I'm hungry. Thanks, jerk.
 
user1804599
No problem, my friend.
 
7:59 AM
@Xeo I've already given up with the food thing. Going shopping later.
I need a new light jacket. I bought one a couple moths ago but it is non-functional - the pockets do not work.
 
user1804599
@ScottW Bekijk het van de positieve kant: je hebt nu geen dikke reet meer.
 
@MartinJames maybe you are using a deprecated pocket interface?
 
@MartinJames some impressions of one of the greener islands: picasaweb.google.com/104936731191634184672/…
 
@MarcClaesen It's an object alignment issue. Stuff stays in the pockets until I sit down. I get in my car and there is all that clattering as change, phone etc. all fall out and get stuck between the seat and handbrake/gears console :(
 
@MartinJames try to allocate more pocket space, perhaps after changing some hardware
 
8:07 AM
@MarcClaesen Yeah - definitely due an upgrade:)
@ArneMertz Stunning:) It has more varied landscape than Lanzarote where the only sanely-accessible landscape is flat. The non-flat bits are lifeless basalt etc, as you know.
 
@MartinJames yeah, I've spent so many weeks there (I stopped counting after 50) and I am discovering something new every time I go there.
 
ooo coroutine proposal co-authored by one of the authors of Boost.Coroutine.
 
@MartinJames its called loose coupling , its a good thing
 
@A.H. Sounds like fun, yes :)
 
Xeo
1
A: Compiler ignores if else

user1233963Simply overload the function to take a regular type and an array type, like so: #include <iostream> template <typename T> void f(T t) { std::cout<<"Regular version !\n"; } template <typename T> void f(T t[]) { std::cout<<"Array version !\n"; } int main() { f(2); // Prints "Regula...

OH GAWD
 
8:22 AM
@Xeo It's not going to make me feel good if I open that, is it?
 
um that proposal could have benefited from an editor or two though
 
@Xeo Arrays/pointers again:(
 
Oh, I completely failed to notice it but Boost.Asio accepts coroutines in its interface now.
 
Xeo
whut, where?
Obtw, did you see my pondering about the std::future-interface of asio?
 
Xeo
8:29 AM
@LucDanton Found the example with that now
And still shared_ptr abuse :(
 
Did chandler just create a twitter account? twitter.com/chandlerc1024
 
During 11th grade, I wrote a Simulation program for a Chemistry project. The day ended with my teacher's brother giving me a job offer which I couldn't take :D
 
@LucDanton No more CPS!
 
@Xeo Possibly due to lack of generic lambdas, no?
 
I just wrote not one, but TWO gotos
 
8:31 AM
12 mins ago, by Luc Danton
ooo coroutine proposal co-authored by one of the authors of Boost.Coroutine.
 
@jalf Are you dead now?
 
Hey sir
 
@jalf You're a brave man ;_;
 
The sad part is, we can't easily get rid of them. We just used them as a very quick and dirty way to do some flow control when prototyping some performance improvements. Now it turns out the goto version is actually faster than the "nice" one
 
@Xeo Oh there's a genuine concern of lifetime between the two read/write ends. Still though, it feels much less forced than Asio in its present state.
 
8:32 AM
@jalf Do they goto each other?
 
@MartinJames god, no. We just use them to exit two nested loops
 
user1804599
@O0oO0oOO0ooO Hello sir.
 
@jalf I've never had such tight performance constraints that I cannot use some other mechanism, return from function, say.
 
Damn now I want to write some network code.
 
@not-rightfold hello sir
 
8:35 AM
@LucDanton Take two paracetamol and rest.
 
Right, I'll put that to rest for now and resume it later.
Mmh library-level coroutines are kinda weird. You return void everywhere and you instead pass the 'coroutine context' around to yield values :s The proposal does mention that this brings a benefit over C#'s yield (something about 'only one level' being allowed), is this accurate?
 
Xeo
The array decays to a pointer after function resolution occurs, therefor it doesn't affect this — user1233963 3 mins ago
So much misunderstanding :(
@LucDanton You can pass the yield context deeper and yield-return from several nested calls, I guess?
 
@Xeo And can C# not do that? ISTR a recent-ish improvement in that regard.
 
Xeo
IIRC, C#-style yield only allows you to yield-return from the current function - since it returns just to the caller.
 
I see.
 
Xeo
8:42 AM
Aug 23 at 8:40, by Xeo
@R.MartinhoFernandes Btw, I've been thinking for a bit, but maybe Asio doesn't really map well to std::futures specifically. std::future seems to be a better fit for concurrent data operations, with hanging on to the futures to get their values, while Asio's async_* stuff is about waiting on IO and performing some action afterwards, not directly related to data.
Aug 23 at 9:03, by Xeo
@R.MartinhoFernandes So for Asio, maybe we need a future-like fire-and-forget thing that doesn't rely on callbacks and can be composed. Composing the operations before handing them off to async_* functions works for 1-to-1 composes, but when_all and when_any can't easily be expressed through that, I think.
^ my thoughts on the asio::use_future interface btw
 
Reviewer on 'Gravity': 'George Clooney plays an experienced astronaut on his first space mission'. Does nobody ever proof-read this stuff anymore?
 
I'm not sure how I feel about the fact that the proposal is more limited than Boost.Coroutine itself. That is, there's boost::coroutines::coroutine<int(double, long)> but AFAICT that's not possible with the proposal.
 
epic lirrert
 
Xeo
@LucDanton Btw, I think it should be possible to just write a wrapper that transforms the "CPS-style" code to normal flow.
 
@Xeo Well, it's true that futures in the widest meaning of the term abstract a lot of things away. Including where and when the continuation should be computed. I'd agree that this is problematic for C++ which likes to scrupulously keep track of where everything happens, and for how much, and there hasn't been too much work in that direction (ugh Google execution contexts thingies).
 
8:46 AM
@LucDanton No, because it's a syntactic transformation.
 
Btw what you mention is the (or perhaps, a) difference between applicative and monadic.
@R.MartinhoFernandes Okay. Heavy-duty transformations though right?
 
Depends on what you mean by "heavy-duty". They're quite straightforward, but they make the result unrecognisable.
 
Right, that.
 
@MartinJames I want to watch that so much.
 
Xeo
On a scale from 1 to braindead, where lies the idea of storing backups of something on the very same RAID that something is on?
 
8:58 AM
braindead+1
 
@Xeo minus infinity
 
Dikshita is a legitimate name apparently. ;-;
 
@Xeo About 24.
 
@R.MartinhoFernandes I may even pay to watch it.
 
@Xeo It's not that bad
 
9:10 AM
Oh gosh too much fruit juice
 
Xeo
Well, we lost our blog to that. The entire raid died, so with the blog, so did the backups / snapshots.
 
@Xeo Some admin getting pink-slipped soon?
 
Xeo
Ah, not work-related
 
steak 4 dinner $
 
@Xeo Not work-related? That's even worse!
 
Xeo
9:12 AM
Hobby stuff :/
 
@MartinJames I don't remember the last time I watched a movie without paying :S
@Xeo lol That does not count as a backup. That counts as a waste of space.
 
I can't believe there is any geek who doesn't watch movies on youtube
 
I have 2x 3TB disks in RAID 1 and people mock me for that :<
 
Also, I'm really pissed off. Every other thing is trying to take over my boxes lately.
 
@R.MartinhoFernandes I could have said that just before I bought a new box that was so badly DRM'd that I could not play a single one of my 300+ retail-price-paid DVD collection.
 
9:16 AM
If I want to set up access to the company's Office 365 based Exchange something something on my phone, I need to give the server permission to remotedly, among other things, "Erase all data".
So, IMAP it is, screw the Contacts and Calendar crap.
 
@R.MartinhoFernandes Opposite for me.
 
@R.MartinhoFernandes Er.. yeah, you may want to get some clarification on that!
 
This is just unacceptable. I don't understand how they manage to sell a product that doesn't even let the admins disable that thing.
It just boggles my mind how people can put up with such crap in a paid product.
We are all idiots.
 
@R.MartinhoFernandes I guess they mean 'all company-confidential data'.
 
@MartinJames Nope, the expanded description is quite clear and includes the words "factory reset".
 
9:19 AM
@Rapptz same here
 
@R.MartinhoFernandes Fuck that.
@R.MartinhoFernandes "Mr. PointyHair, I'm quite happy to have that 365 mail on my own phone, but I will need 30 minutes worktime free every day to back up my personal data'.
 
'At present, it is impossible to disable these features, they were designed for each special action.' The 'special action' I would take is to flat out refuse to install that shit.
"OK, Mr PointyHair, I'll install it, but you should be aware that I do not wish to lose my personal data, so I'll run an app that backs up ALL data, including your company stuff, to an anonymous server in Russia".
 
uuuuurgh
better is relative, I guess.
 
Everything is relative
 
9:32 AM
@MartinJames Well, got IMAP set up, so now I can get and send mail without giving a remote box permission to kill my box. If someone complains I missed an appointment that someone put on the calendar, I'll just claim the remote server erased all data on my phone.
 
@R.MartinhoFernandes LOL! Morons, expecting devs to install what is, effectively, a company-virus.
 
Did you see the rest of the list of permissions I was supposed to give?
 
@R.MartinhoFernandes Oh yes :((
@R.MartinhoFernandes 'Disable heartbeat and brain functions' is missing from the list.
@R.MartinhoFernandes "Fine - give me a company phablet"
 
I still don't get why MS does not let the admins disable that bullshit.
 
@JerryCoffin It's related to memory re-usage. If you pick a factor of 2, memory that is released by the vector will never be able to be reclaimed later.
 
9:41 AM
@R.MartinhoFernandes I would not trust the admins to actually do it anyway. They could always turn it back on again via. some other secret 'permission'.
I would never willingly load up an app that had the ability, never mind permissions, to do that crap.
 
@MartinJames That would involve a breach in my phone OS. In that case, I lost already.
 
@R.MartinhoFernandes You get a company phone, it's the only way. You have to carry round two phones or an extra tablet, but your own stuff stays safe.
 
@JerryCoffin lol, 20 items. There are never 20 items in an MSVC deque block, because their size is the largest of 16 bytes or 1 item.
 
So, I have found another using namespace std; in header because of a single instance of vector<Foo>&.
And some dolt has reverted my fix (inclusion of a property file in Visual Studio 2010 project) to the wchar_t problem in "his" project file.
Sometimes I so want to scream at the people.
 
@MartinJames Ugh, no. A company phone implies I'm available while outside the office. No, no, no.
@wilx Dude, do it.
They might need a real shake.
 
9:56 AM
@wilx With all your might
 
Well, I think it is not worth it for this assignment. I am supposed to be returning to my original (much better team) in a month or so. I am only on this team on loan from my actual boss for short duration.
Also, it would not be professional.
 
@wilx Oh, I see.
 
The problem is, they do not understand to calm reasoning either.
They simply have no clue.
Another pearl, new files, C++ source, full of typedef struct _foo { ... } Foo; kind of bs.
 
"It should be mentioned that path will be relative only if it's not absolute. If you use an absolute path it will be absolute no matter where is your solution placed." No shit, Sherlock.
@wilx The sad thing is that that isn't even TDWTF material.
 
Yeah.
 
10:07 AM
Ooooh, great, Python 2/3 woes.
 
Xeo
function _utf8Encode(&$arr){
  for($i=0;$i<(count($arr['parameters']));$i++){
    $arr['parameters'][$i]= $arr['parameters'][$i];
  }
}
function _utf8Decode(&$arr){
  for($i=0;$i<count($arr['parameters']);$i++){
    $arr['parameters'][$i]= $arr['parameters'][$i];
  }
}
lol
 
What?
Btw, question.
 
@Xeo which language is that?
 
I have a call that requires me to specify a buffer length and returns error if result does not into the buffer.
I like to specify optimistically big enough but not maximum size buffer and I wrap it in a loop doubling the size.
Like always.
And the other technique, use NULL buffer pointer and ask the function to return you the buffer size. It seems like a pessimistic approach, potentially using too much memory.
 
@R.MartinhoFernandes why does that support guy sound like he is selling 'wipe your device' as a feature
 
10:22 AM
@not-rightfold mine was streaming (using a fifo). I dunno what you wanted that for anymore. But since I wrote it that way, I assume you wanted it for some reason. I'll find it
Dammit. ideone.com is prettier, but none of the controls work (no filtering or even paging on the 'my codes' page?!?!?!?! Come on, I want to view more than my last 25 'codes')
Jul 3 at 19:27, by rightfold
@not-sehe Well, if gofmt -s exits non-zero, nothing should happen.
^ that was the reason @not-rightfold
And here is the script I then gave you
Jul 3 at 19:57, by not-sehe
@rightfold This should be rock solid: http://ideone.com/0sJCs4
I suggest you learn to use revision control and backups :/
(need a hexapoda logo svg?)
 
How do you guys handle the Python 2/3 mess in apt-get based systems?
I just pip installed a package by pip installing it on a Gentoo box first and then scping ~/.local back to my box. Not sure if I should feel accomplished or embarrassed.
 
it works (tm) -> you should definitely feel accomplished
 
user784668
10:41 AM
@bamboon What do you think it is?
 
@Fanael JS?
 
user784668
Hell no. That language is even worse than JS.
 
@wilx WinAPI does that often.
 
Xeo
... fuck. Today is Friday (yay!) and on Fridays we order asian food. I completely forgot that and now have to endure the smell with an empty stomach. :/
 
@R.MartinhoFernandes Yes, but you can still implement the optimistic approach with Win32 API as well.
AFAIK.
 
10:43 AM
@Xeo ?
 
Xeo
I forgot to order with them. :(
 
Why don't you... eat it?
@Xeo rolls eyes
@Xeo Are those memcpys in some PHP-ish crap?
 
Xeo
read the function names
(it's from TDWTF)
 
There's going to be 11 talks on Going Native today, plus the Q&A panel? Wow.
 
Xeo
This will be a lo(u)ng(e) night :)
2
 
10:45 AM
Gonna miss it again.
 
@R.MartinhoFernandes I don't even know how python installations work, sorry.
 
user784668
@R.MartinhoFernandes By avoiding apt-get based systems. Can't help you with this one.
 
@Fanael so php?
 
user784668
@bamboon Yes.
 
@FredOverflow I'll need a tl;dw when this is all over.
 
11:01 AM
@LucDanton tl;dw "C++ is still relevant and complicated and awesome and cool."
Oh yeah, and a lot of people still struggle with rvalue references.
 
Xeo
also, Clang binaries on Windows
 
@FredOverflow I'd say the majority of C++ users don't know about their existence yet. C++11 isn't that widespread yet imo.
 
@FredOverflow Scott wrote about 80 pages only on rvalue refs :S
And it's not all.
 
Xeo
&&& might really have been a better choice :/
 
Yeey paycheck.
 
11:04 AM
"Effective Rvalue References"
@CatPlusPlus Isn't that early.
 
Xeo
@CatPlusPlus want
 
Xeo
@R.MartinhoFernandes Or late
Almost 2 weeks passed since I got my paycheck, I want another one!
 
Not really, signed the bill 2 days ago.
 
There were multiple questions from the audience yesterday because the notion that T&& can sometimes bind to lvalues is potentially confusing.
@Xeo But wouldn't &&& immediately collapse to &? ;)
 
11:05 AM
@Xeo I got one one week after!
 
@R.MartinhoFernandes In his next book?
 
@FredOverflow Yes. EC++11/14
 
must. buy. book.
 
Seems good so far.
 
Wait, isn't 11/14 == 0? ;-)
 
11:08 AM
Man.
 
@Xeo Do you actually get paychecks? I just get money directly transferred to my bank account.
 
Xeo
@R.MartinhoFernandes Wait, you got your paycheck up front?
@FredOverflow Yea, same
 
@Xeo Nah, 'twas pay for unused vacation days.
Lunch!
 
Xeo
but "paycheck" sounds nice
@R.MartinhoFernandes ah, I see
 
The worst thing about this code base is that while I want to do what I do right, I often say myself "Fuck it. Why waste my time when the rest is crap anyway."
So I add bits to the problem as well.
 
11:10 AM
@wilx I know that phenomenon as "Why should I write tests for this new class? Most of the existing classes don't have tests, too."
 
user1804599
@sehe I have that on my other Mac.
 
user1804599
@sehe Hmm, I see.
 
user1804599
Your solution looks a lot more complicated than mine. :)
 
is duck typing iterators a bad idea?
 
@MarcClaesen What do you mean?
 
11:14 AM
that's exactly what I mean
 
I am making a bunch of templated algorithms that use iterators and I'd like to abstract whatever container the iterators are based on ... afaik the only options I have to do this is duck typing or using some implementation of any_iterator (all of which have problems based on the interwebs)
 
@R.MartinhoFernandes Use virtualenv. Regardless of the system.
 
@FredOverflow shut up and take my money! I want that shirt.
 
@MarcClaesen What's wrong with good old template<typename Iterator>?
 
11:17 AM
I found a folder filled with my dad's music
And I like it ;_;
 
genre?
 
@FredOverflow that's what I am planning to do, but it seems like a loose way to handle things since you can't get many assurances that way ... maybe I'm overthinking it
 
@MarcClaesen There is no better way yet. Some next version of the C++ standard will introduce "Concepts" which allow you to say "This must really be an iterator, otherwise give a nice compiler error."
 
You can cover your code in an ad-hoc manner via concept archetypes.
 
You have been reading too many Boost source code ;)
 
11:20 AM
I am doubting between template<typename Iterator> and template<typename Container> and using Container::begin() internally (e.g. duck typing). The only template arguments that will be used are containers anyway
 
Passing two iterators is the C++ way. The standard library does it, and I suggest you do it, too.
 
thou haveth a point
 
not all iterators are tied to containers.
 
Right, for example stream iterators. Or range iterators.
 
iterators it is :)
 
11:25 AM
Ranges.
:v
 
I meant something like 1 to 10 in Scala.
 
@not-rightfold because <reasons> :/ it does do more
 
Xeo
@MarcClaesen Container! Container! :o
 
@Xeo what did I do :O
 
@FredOverflow Sean Parent
 
11:40 AM
@sehe You gotta be kidding me.
lol
 
11:55 AM
Where do you see C++ in 20 years?
 

« first day (1056 days earlier)      last day (3897 days later) »