« first day (1059 days earlier)      last day (3907 days later) » 

2:00 PM
Be glad it's all optical mice these days
 
Oh, right, boost.coro.
 
@R.MartinhoFernandes By being psyched up? Also: mind maps seem to work for some people (I must say, it doesn't include me, apparently)
@R.MartinhoFernandes Will it blend perform?
 
@sehe Man, this thing is evil incarnate. You need a particular state of mind to do it.
 
evil mind?
 
Xeo
Why again do you pass (blocking) iterators to the callback, instead of just the value?
 
2:02 PM
@R.MartinhoFernandes Yeah, and that stuff is not cheap :)
 
@Xeo What would the value gain you?
That's just a normal output iterator.
 
@R.MartinhoFernandes Do you? I don't have much problem answering like ~ "I'm gonna be developing all kinds of stuff and generally having fun doing it" ~
 
Xeo
Oh, wait, nvm
I can see it
 
My CPS iterators bring lazy evaluation to an eager world.
2
 
Xeo
My RAM is screaming right now, and so is the swapfile :(
 
2:03 PM
> Yes, that's wrong. Where I said "months," I should have said "years." (B.S.)
^ @KonradRudolph o, hey Bruce acknowledged your skeptics question about that?
 
@sehe "I wanna be the boss and do whatever I want whenever I want without anyone complaining and get a raise every week."
 
Oh. That's right, my meta::Eval is a bit peculiar when it comes to SFINAE. So E.g. Map<int, list<void*, double>> is list<int, double>.
 
@R.MartinhoFernandes Oh, I lack ambition like that. I'm not sure I'd want to be boss. I can see about the raises. That I would probably be able to accomodate if need be.
 
@R.MartinhoFernandes 'whether they like it or not'?
 
@LucDanton It's an apocalazypse.
 
Xeo
2:05 PM
Apolazyise now
 
Ooo I think I see why you want them. But why output -- where does it all go anyway?
It's hylo/lohy again, isn't it?
 
Xeo
May 28 at 12:56, by R. Martinho Fernandes
Something like std::transform(b, e, cps_it([](b_, e_) { std::copy(b_, e_, whatever) }));, I guess.
 
That doesn't say why.
 
Xeo
std::transform(b, e, cps_it([](b_,e_){ std::copy(b_, e_, cps_it([](...){ /* where does it end?! */ })); }));
 
@LucDanton It doesn't covers all cases, but it covers a bunch of nice ones.
@Xeo It's CPS. Of course "where does it end?".
 
2:09 PM
You have to runContT at some point :|
 
That's what my mom always says!
 
@LucDanton That's within std::transform.
Do I have polylambdas on Coliru?
 
Xeo
Don't think so
Coliru is 4.8
 
@Xeo At a local output iterator somewhere. That's the catch: you only get the lazy in the chaining. The entire thing still runs immediately as it is forced by std::transform.
 
@R.MartinhoFernandes Yeah, but you'll have to mutate. That's the part I don't like.
 
2:11 PM
It saves you all the intermediate vectors, but you still need one at the end :S
Anyway, I'm doing this for evil, not for functionality.
Time to lookup boost.coro.
 
If I ever unbreak my code I might think about a range version.
 
Oh sorry. It's too lame
 
@Telkitty猫咪咪 This picture does not load.
 
@Xeo Coliru "has" stuff, it doesn't inherit, if aggregates compilers
@EtiennedeMartel Did you unhide posts? Because that's a "feature"
 
2:18 PM
@sehe I what?
 
Guess that's a "no"
 
template <typename T>
struct cps_iterator {
    void operator=(T const& t) {
        coro(t);
    }
    struct cps_inner_iterator {
        T& operator*() const {
            return coro->get();
        }
    };
};
This is the basic idea.
I think I fucked up the consts.
coroutine::get() yields to the coroutine until it yields a value, right?
 
@EtiennedeMartel why is this so funny? it works on a really elementary level
 
@R.MartinhoFernandes If you do it right, yes.
There are two ways to start a coroutine depending on which side you want to 'drive' the other. Try coroutine(f) vs coroutine(f, initial_value) and putting an initial get() or not in the coroutine function.
If you do it wrong you'll call a get on some side when you shouldn't have and it'll assert.
 
@sehe I guess it's the non sequitur thing.
 
2:22 PM
@EtiennedeMartel I guess it's the warm fuzzy associations that come with the drawing style, really. It's just that ... "true"
 
Oh noes.
How do I know the end?
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
 
... "when you see it"
 
An output iterator has no way whatsoever of knowing when nothing more when be output :/
My precious idea is ruined.
Precioussssssssssss!
I'm so disappointed now.
 
Transform with a coroutine? Or not lazy enough?
 
That loses the appeal.
 
2:27 PM
oozing sex appeal
 
I don't want this exclusively for transform.
Fuck iterators.
 
Name one more algo than copy/transform that accepts an output iterator without looking them up.
 
My day is ruined.
And that cake was so tasty :(
@LucDanton copy_backward!
 
I'm moved.
 
@LucDanton std::regex_replace
 
2:30 PM
@LucDanton remove_copy_if, fill, generate, ({remove_,}copy{,_n,_if} etc. don't count, right?)
 
remove_copy_if is so wrong.
 
Xeo
haha
 
I'm guessing the reason there isn't a find_first algorithm, is you can just call find_end with reverse iterators?
 
hey, don't blame me
 
replace
 
2:31 PM
@sehe I'm torn on generate tbh.
 
@sehe Generate takes a full range.
 
mmm. you told me not to look it up. so I didn't
 
I would have allowed it. This wasn't a trivia question :p
 
Xeo
Same goes for fill
 
Oh. ahaha. Obviously
 
2:32 PM
std::move
 
I write functions taking output iterators all the time. That prolly doesn't count
In a way, partial_sort, stable_partition, merge etc. are all taking "stealth" output iterators (into the original container)
And I forgot (!!!!*) about set_difference, set_union, set_intersect! Those beauties of iterator-fests
 
@Borgleader find_first_of?
 
@Rapptz not the same, find_end searches for an entire subsequence, find_first_of looks for any element in a subsequence (from what i understood of cppreference)
 
@Borgleader find?
 
JBL
I should really get into move semantics...
 
2:34 PM
@sehe would something that takes a pointer to a mutable type qualify ?
 
@Borgleader Oh you're probably looking for std::search.
 
@sehe find only takes a value not a range
 
@A.H. Not unless it has an iterator interface which gets used
 
@Rapptz Ahhh you're correct :)
 
@Borgleader then there's search
 
2:35 PM
Hmm, for some reason, I never realized _ works by itself as a user-defined literal suffix. I hope I never see it.
 
Xeo
@chris Unrealize it now.
 
@chris Mitigating factor: it's easy to overlook
 
ello
 
Xeo
Holy crap, almost 5am
 
Be right back, finding a way to use _ that makes a tiny bit of sense, but makes everyone go WTF.
6
Q: Default template parameter partial specialization

user2761740Please explain to me why the following piece of code complies and works perfectly. I am very confused. #include<iostream> template<class A = int, class B=double> class Base {}; template<class B> class Base <int, B> { public: Base() { std::cout<<"it works!!!!!\n"; } }; int main() { ...

Interesting^
 
2:45 PM
I forget how string literal concatenation and UD suffixes work, you could start with that "hello"_"world".
Smileys maybe? ''_''
Oh wait those don't concatenate.
 
I didn't think concatenation worked with a suffix.
Oh, it does. Cool.
 
auto unamused_spider = ""_"";
And then you can make it grow the less amused the spider gets: ""__________""
 
1
Q: Why is this 'void *` function that much faster than using the + operator?

user2341104I am toying around with some code when I noticed something totally unexpected - traversing an array and assigning each element the sum of the next two is about 4-5 times slower using the = and + operators than when using a function with just a single void * parameter. Why is that? #include <QTe...

 
""_-'"'
 
2:51 PM
@LucDanton I think you're getting somewhere. We have to make this the next analog literals.
 
My thinking exactly.
 
""_/"\""
 
@LucDanton lol for the "unamused" part only.
 
(playing tricks with the return type)
 
2:53 PM
A site forces a < 12 character password...
 
@Pawnguy7 My bank's online thing forces 5-8.
 
Xeo
@chris template<class T, class = void> struct X{}; template<class T> struct X<T, EnableIf<some_trait<T>>>{}; :D
 
@sehe (") '(._.)' (") <- mildly amused bear
 
Why might that be?
 
@Xeo pm, son, pm
 
2:53 PM
@Xeo Hmm
 
@LucDanton That's a koala! I'm not a freaking mutant!
 
Xeo
@sehe lol, right
 
@Xeo What's bad about that?
 
Xeo
nothing
I just didn't notice time flying by today
 
@LucDanton Well, there's still always 0_0.
 
2:57 PM
0_[0]; with a monocle
 
... and a hearing aid!
 
lol
 
#if _ITERATOR_DEBUG_LEVEL = 2
#error "FFS"
#endif
If I put this at the start of the file, it errors out.
 
Xeo
No need for "
 
I'm compiling with /D_ITERATOR_DEBUG_LEVEL=1 :s
 
Xeo
3:00 PM
Also, wasn't 1 the value you never want?
 
Right now, I want anything but 2.
 
Are you saying that if you put it somewhere else it doesn't trip?
 
Hmm, you could technically create _64, _u64, _32, etc suffixes for int64_t etc.
 
@LucDanton Well, elsewhere too, but that would be after the influence of #includes.
This is before any #include, as a smoke test.
 
Xeo
Maybe it's overwritten by a later define?
 
3:02 PM
@Xeo It's at the start of the file!
Very first thing.
 
Which itself is not a header, right?
 
Xeo
@R.MartinhoFernandes I meant the /D_....
 
@LucDanton Right.
 
Yo! How you all doin?
 
Xeo
> There are at least two National Body comments on the C++14 draft saying that either std:function should support move-only types (which is very difficult given its current specification) or there should be some alternative or wrapper which supports move-only types.
cool
 
3:07 PM
It's a matter of principle.
Also, cover, for being "politically incorrect" :/
@R.MartinhoFernandes mmmm. should it be == ? <evil-grin/>
 
Meh, I've given up hunting that particular bug. Let's play with coroutines.
 
:/
 
@sehe GCC is being uncooperative.
 
Xeo
0
Q: Why can't you use auto in STL

PhorceWhy is this not allowed, for example: std::array<auto, 5> myArray { }; It would make my life so much easier, as I would be allowed to store multiple data-types inside the array. I'm sure there's a logical explanation, just wondered what it was. Thanks

ugh
 
Are there going to be any new kinds of pointers in c++14?
Other than unique, shared and auto (depreciated)?
@Xeo This was funny! :P
 
Xeo
3:12 PM
@GamesBrainiac What kind of pointer are you thinking of?
 
@Xeo intrusive shared?
 
@Xeo I don't really know. I'm happy with the ones that I have, but then again I thought I'd have to use naked pointers as long as I used C++, and that changed (which is awesome).
 
@R.MartinhoFernandes You needed cata+ana, right? So 'lohy', so to speak?
 
@LucDanton Hmm, for what?
What I need is to fix the build mismatches.
 
I don't remember (normalization?), but I thought the whole line of enquiry with coro and iterators was tied to that in some way.
 
3:17 PM
@LucDanton lol. dat pun
 
@LucDanton Nah, the CPS iterators were truly just for evil. I don't want to use that thing ever.
I'm somewhat happy it turned out unfeasible, even if disappointed.
 
Ell
I'm assuming you don't need two = for equality in macros?
 
So... by your explanation we can expect the new question: _"Why doesn't std::array<auto, 5> arr { 1,2,3,4,5 }; work, while auto arr[] = { 1,2,3,4,5 }; works as expected? — sehe 14 secs ago
 
@Ell Turns out you do.
 
Wait. What. I was right?
I'm so sorry about that.
 
3:20 PM
@R.MartinhoFernandes FWIW, a short English lesson: that would normally be stated something like: "I have mixed feelings about..."
 
When do we need LFENCE and SFENCE instructions on x86? AFAIK loads are not re-ordered with other loads and stores are not re-ordered with other stores. The only non-guarantee I know of is that loads can be re-ordered with old stores (in which case we may need an MFENCE).
 
If I get "error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)" does that mean I messed up in the CRT linking options somewhere?
 
@R.MartinhoFernandes it could mean you're linking to some shitty ancient library which links to the shitty ancient std lib from back before it was called msvcrt
afaik
 
How can I get the culprit's name?
The error message is not terribly enlightening about that :S
 
3:27 PM
run depends.exe on the libs you link to?
 
@sehe Awesome, hadn’t seen that (he didn’t reply to my tweet).
 
dumpbin can probably do it too
 
@jalf How is work going? :)
 
@jalf As I feared, I need to search manually? :|
 
do you by any chance link to bzip2?
 
3:28 PM
No.
 
@R.MartinhoFernandes well, there is probably an automatic way to do it too :)
 
Could it be boost?
 
unlikely. Boost doesn't link to ridiculously old things for no reason, afaik
which libs do you link to?
 
I need to rebuild that shit anyway, because it seems it was built with ITERATOR_DEBUG_LEVEL 2.
 
@R.MartinhoFernandes eeew
 
3:30 PM
@jalf A bunch :S eigen, glfw, freetype, xz, pffft, and a bunch of internal stuffs.
 
ah, fun
you could build with /NODEFAULTLIB:LIBCMTD to get it to link successfully. Then run depends on whatever you built, and you should be able to see what each of your dependencies link to from there
 
Our resident Win32 expert tells me to first check if some of your libs are built in debug and others in release. And vice-versa.
And then check for static/dynamic conflicts.
 
Well, I managed to make this compile. Not being an ASCII art person, yeah...
http://pastebin.com/DKu7qTrA
 
JBL
Someone has been doing drugs...
 
I can't stop laughing.
@JBL That bastard is high! :P
@JBL That bastard is high! :P
 
3:46 PM
on that note, what noise does a high fox make?
3
 
@MarcClaesen High foxes speak German. Low foxes speak Dutch.
 
@JerryCoffin Ouch.
 
Reminds me of that DMB song.
Well, turns out three people per day commit suicide in Quebec.
 
> The uploader has not made this video available in your country.
 
did he choose your country specifically?
 
3:53 PM
I believe so
 
@EtiennedeMartel north africa
 
@EtiennedeMartel Which one?
 
@Tuntuni The middle one.
 
North Africa is not a country.
6
 
4:07 PM
So by default premake seems to generate VS project files with incompatible build options (runtime checks on + no debug runtime), and to include in the project some files I explicitly excluded. Wondering if CMake would have been a better choice.
 
@LightnessRacesinOrbit Never asked which country he was from.
 
premake is extremely meh.
 
@JerryCoffin medium foxes?
 
user1804599
Hello!
 
user1804599
What a wonderful day!
 
Xeo
4:14 PM
@CatPlusPlus s/pre/\*/
 
user1804599
So many new papers.
 
Everyone laughing at you? Click here to learn how to make friends and not be hated!* We also have a list of acronyms, but it turns out that linking it here is extremely redundant. (* We reserve the right to laugh at you anyway)
15
 
0
Q: What's the advantage of malloc?

Level 31What is the advantage of allocating a memory for some data. Instead we could use an array of them. Like int *lis; lis = (int*) malloc ( sizeof( int ) * n ); /* Initialize LIS values for all indexes */ for ( i = 0; i < n; i++ ) lis[i] = 1; we could have used an ordinary array. Well I do...

Sigh.
 
@CatPlusPlus Make software not friends?
 
4:21 PM
So, there was this video about a "top 10 coolest people" done at USherbrooke's administration faculty. Also known as "Doucheville, PQ".
I facepalmed roughly every 5 seconds.
 
Xeo
@CatPlusPlus Too long :(
Remove the linking part!
 
Close bydesign.
 
Xeo
lol
I see
 
@CatPlusPlus I would have prefered CNR.
 
WONTFIX BYDESIGN STOPREOPENING
 
Xeo
4:26 PM
> WARNING This video includes a bunch of SCARY & BLOODY stuff as well as me SCREAMING like a little girl and SWEARING like three sailors with Tourettes!
lol
 
No.
Also your grammar is shit.
 
@Servant Jesus Christ, dude. Get the hint- nobody here wants to be your bitch.
 
@CatPlusPlus What is the correct sentence?
 
@jalf Hmm, depends.exe doesn't work on .libs?
 
@Servant Death.
Dammit, can't hit the damn key.
 
4:28 PM
@DeadMG Repeat offender?
 
@Servant 10000 or gtfo
 
@R.MartinhoFernandes Yep. Repeatedly repeat offender.
 
@R.MartinhoFernandes Yep.
 
:tenbux: or bust.
 
I only accept payment in Riot Points.
4
Because I've been looking forward to buying that super expensive Dragon Trainer Lulu skin.
 
4:29 PM
I don't want your imaginary internet points, I can make my own.
 
@CatPlusPlus They ain't imaginary.
 
BUT ARE THEY THE CRYPTOCURRENCY OF THE FUTURE?!?!
 
@R.MartinhoFernandes use ldd
 
No, ldd doesn't work on .libs either.
 
4:31 PM
@CatPlusPlus For a minute, I read that as cryptoconcurrency.
 
@CatPlusPlus Nah. They only work in League of Legends.
 
@R.MartinhoFernandes ugh .libs (for a second I thought this was about automake generated directories)
 
Xeo
@EtiennedeMartel Makes them more secure than other stuff!
 
Probably.
Recently Riot discovered that a bunch of stuff had been leaked.
They then proceeded to reveal that their database contains salted+bcrypted passwords.
 
@StackedCrooked Nah, MSVC static libraries.
 
4:33 PM
I guess it's pretty safe.
 
@R.MartinhoFernandes do static libs have dependencies ?
 
SAM
Hi all
 
Object files depend on external symbols they reference.
 
I guess but, do we even link while creating a static library ?
I mean it just depends on something being defined but not a specific lib (static or dynamic) file
 
> I became Mel Gibson from Braveheart using this guide.
 
4:41 PM
Well, something is bringing this libcmt crap in :( grepping for it matches pretty much all object files :/
 
I guess LoL can do that to people.
 
@EtiennedeMartel Huh, true. I totally thought he had.
 
Fuck this. Imma call it a day.
 
4:57 PM
I have never previously seen you use that contraction.
 
@A.H. No.
It's just an indexed archive of object files.
Externals are not resolved.
@R.MartinhoFernandes Exclude it explicitly.
 
user1804599
Hurray.
 
user1804599
Probably a new customer.
 

« first day (1059 days earlier)      last day (3907 days later) »