« first day (304 days earlier)      last day (4658 days later) » 

5:00 PM
actually, because it technically works, but I'm pretty sure that it actually doesn't work as I think it should
 
Ok, no, it's a PAL version.
NESE-001 (FRA)
That's weird because it can be used on SECAM-only TVs
 
I think I will need to, possibly repeatedly, keep specializing all my classes
 
@kbok Does it have RGB output? If so it seems like it is SECAM, despite the label
 
Yes
Are PAL and SECAM cardridges the same ?
 
argh
I despise perfect forwarding sometimes
 
5:05 PM
@kbok Not sure. This video may help you? I cannot understand it but it seems to be about this issue
http://www.youtube.com/watch?v=6pHCSzh94RE
 
@DeadMG he he
 
@kbok But regardless, it will take less than 20 minutes if you want to disable your lockout chip, that way you can play NTSC, and any other format with no problem (minus the internal clock timing issues very few games have)
 
@DeadMG Are you using std::decay enough?
 
This is soooooooo slow
@Collecter Ok
 
@kbok The buffering or them explaining things?
 
5:07 PM
more like, I don't actually want to decay
the problem is, sometimes you want perfect forwarding, and sometimes you just damn want an rvalue reference, guaranteed
 
@Collecter Him explaining. He's explaining what's a NES. lol
Well, this explains why my USB capture device does not work with the NES.
 
so you have to remember to keep SFINAE'ing out your templates
 
@kbok Why won't it?
 
for example, have fun if you have a class which has a perfect forward constructor and a copy constructor
 
Are you writing templates overloaded on value category?
 
5:08 PM
because a mutable lvalue will get called as the perfect forward constructor
no
 
@Collecter Apparently this is a mod of a PAL board made to be compatible with SECAM hardware.
So a numeric capture device won't work
 
@DeadMG That's actually a bug in the implementations. If doing T t = expr a copy/move constructor is required to be called if the type of the expression is cv T& or cv T&&. Any other constructor must be left out.
I have the same problem with GCC so I have a enable_if_unrelated helper.
 
@kbok Alright. Speaking of NES systems, I have no idea what to do with my 2 extra ones. I should sell them soon...
 
no, I'm directly initializing as a member variable
ideone.com/RHkq5 kind of thing
 
@kbok And so you do have a SECAM nes then?
 
5:11 PM
@DeadMG Yeah bug in the implementation.
 
@Collecter Yes.
 
you know
perfect forwarding is so simple, when you're doing it in a function
but man, if you try to do some object method chains or something, holy shit it's a pain
 
@kbok Any chance you recognize any of the games in this pic aside from the one in the top right? I know mario/duck hunt lh6.ggpht.com/…
 
No, sorry
hey, google image search FTW
 
the one that closed down was better i think
 
5:19 PM
OMG, I can't believe that actually worked
 
@kbok Nice I got the one in the bottom left. Shooting Range.
 
Where does this image come from ?
 
@kbok Which image?
 
This one : lh6.ggpht.com/…
 
@kbok Someone posted it on craigslist. They are selling a NES and those games (top left is track and field II). I keep looking hoping to find some rare games for cheap. It has worked out so far.
 
5:24 PM
@DeadMG I don't know. Use std::decay + std::forward when you need to 'extend' lifetime, T&& + std::forward when you don't. I had some complications when I added std::tuple into the mix (std::get is iffy when it comes to value-category), perhaps you're having the same difficulties. Care to share?
 
Ok.
 
have a look at this
some guy on Programmers asked if C++ would support anything like LINQ in the future
 
@kbok since you collect NES games you should do the same, maybe make a listing that you are buying. It works out well for me anyway.
 
I told him that C++ had always supported such things and C# was just shinier and a different syntax
and hence I set out to prove it by wrapping existing STL features into a LINQ-style syntax
 
@Collecter I stopped collecting since my TV is broken and I've got no money. But it sounds like a good idea :)
 
5:27 PM
however, the incredible undebuggability of templates is biting me quite hard
 
Oh, I've been working on something like that this weekend.
 
I'll get back to this once I get a job
 
I can't exactly set a breakpoint and see the types in action or why the compiler picked a certain overload
 
@DeadMG Is SelectProxy meant to be instantiated with non-class types? I see a mention of a reference in your comments
 
uh
 
5:27 PM
@DeadMG Yeah SFINAE + no 'compiler debugger' is a pain.
 
no
 
@kbok Both of those things would hinder collecting I have to agree xD.
 
Have to 'trace' the instantiations by hands :|
 
T is always supposed to be a Proxy<T>
 
@kbok How large is your collection at the moment?
 
5:28 PM
@DeadMG Got it.
 
as you can see, it's supposed to lazily call the provided function in it's iterators
 
@Collecter Approx. 50 games
 
the thing is, it works fine- if you pass T to SelectProxy instead of Proxy<T>
but then, how could you ever chain proxies and have like, SelectProxy<SelectProxy<T, F>>? that would never work
 
@kbok still a long way to go then
 
@Collecter Sure. I try to play them several hours before buying others, but I don't play that much :)
And now that my TV is broken...
 
5:31 PM
@DeadMG Don't you need SelectProxy to friend its iterator to let it access f?
 
uh, iterator is public?
 
iterator is a member and has full access rights
that was changed in C++0x from C++03
 
@kbok I understand
 
5:33 PM
besides, my current compiler error isn't bitching about accessibility, else I would make the whole thing public if I had to
it won't currently construct a Proxy<std::vector<std::string>> from a std::vector<std:string> rvalue
No constructor could take the source type, or constructor overload resolution was ambiguous
 
Can someone mirror this 64KB PDF file, please? I have some problem with the connection, it has been downloading for several minutes and still isn't finished...
 
looks like a fault on the server end, I can't access it either
 
Maybe somewhere there's a mirror... what are some popular "time machine" websites?
 
try the google cache?
 
@DeadMG Is the parameter of Proxy also supposed to be a proxy?
 
5:39 PM
right now, I've got no cases where that is, but conceptually, there's no reason at all why not
would be kind of strange though
Proxy is only supposed to start the chain and not occur anywhere else
 
@DeadMG It's not in there :(
 
@FredOverflow There are a couple more- Google for them
 
Are the different null supposed to be defined? Or just decltype helpers? Their bodies rather confuse me, on the lot.
 
@FredOverflow docs.google.com/…
Is that is?
 
Als
Lol
someone flagged this
@Incognito , stop talking out of your ass , each function can call other functions
 
5:42 PM
they're just decltype helpers
 
Als
:P
 
because you can't decltype with member variables
which is bullshizzle if you ask me
 
I'll just ignore the bodies then.
 
they're never called or used in any meaningful context except for that
 
@Collecter Cool, can I save that to my computer?
 
5:43 PM
yeah, I basically just made something up that would compile and didn't enforce any constraints on T like being default constructible
 
@Collecter Wait, everything after the first two pages is extremely blurred :(
 
@FredOverflow You can save it to a google docs account, and from there save to your computer. And they all look fine to me. The PDF probably has not rendered right for you.
 
@FredOverflow I don't have that problem
 
@FredOverflow Also, the actual website's pdf seems to be back now
 
@Collecter Great, I found a PS file, converted that to PDF, and now the original download works again :)
 
sbi
5:47 PM
@RMartinhoFernandes Actually, I know that. (And it might have been the very same guy.)
 
Als
@sbi: Hello
 
sbi
@Als Hello.
 
@FredOverflow Things like that always seem to happen.
 
Als
Geez someone is flagging a lot And what sense it makes to let us decide on something that was flagged in some other room
 
sbi
room topic changed to Lounge<C++>: A C++ code with pointers every 6 lines of code is cruft. [c++] [c++11] (Thanks, @kbok!)
 
5:49 PM
@DeadMG Your 'factory' can be written template<typename T> Proxy<X> make_proxy(T&&);
 
Als
In fact the flagged post does not even indicate the context or the room in which the flagging was done
 
@sbi Whoa, this just made my day :)
 
The room was included in the flag reports.
 
@LucDanton Not sure what you mean
 
@DeadMG No need for three overloads.
 
sbi
5:52 PM
Better than flagging a message is calling down a mod on him, I guess. Did he get banned?
 
oh god, just read that Christian fellow's garbage in the chat log. Is he still here?
 
What garbage? What did I miss?
 
@LucDanton It's completely necessary, because else the forwarding goes nuts
 
@DeadMG Is it expected that the return type of Select doesn't match the type of the expression passed to return?
Well that sounds like a weakness in the implementation.
 
it is
the implementation of C++
 
5:53 PM
Not true.
 
@CatPlusPlus only just skimmed it, some stuff about that "shoot yourself in the foot" quote of Stroustrups, and how C++ is evil and pointers are evil
 
originally, I just had the original perfect overload, but the compiler bitched endlessly
 
you should be required to pass some kind of C++ test before you're allowed to criticize the language
3
 
OTOH, I changed an awful lot of things since then
 
sbi
2 hours ago, by R. Martinho Fernandes
> This user has been automatically suspended for posting inappropriate content and cannot chat for 24 minutes.
 
5:54 PM
I changed it back and it didn't make a lick of difference
 
What does Select return right now?
A decay is in order for the second parameter.
 
heh, cute
 
return?
it returns a SelectProxy
 
The type.
 
right
yeah, I just noticed that the return type is out of date
fuck you, DRY-violating explicit-type-return
 
5:57 PM
decay that second parameter also.
 
anyway, it's supposed to be the type of the expression, not the return type as specified
 
I gathered as much.
 
no, the second parameter is supposed to be a reference
 
Als
Okay here we go
0
Q: More information is need in chat Flagged Posts

AlsToday while I was in one of the chatrooms, I noticed a lot of posts being flagged in some other chatroom(I have the necessary 10K rep to vote on flagged posts) but the flagged post just shows the particular post that is flagged and no information or way to seek the information in the context in w...

Makes sense?
 
I only ever had trouble with T being a reference, and I seem to have fixed that problem anyway
so I have no intention or need to decay F
 
5:59 PM
But in your main then F is never a reference, is it?
 
@Als Not really, the reports include link to the message.
 
I think that when MSVC was throwing errors in that section of the code, it didn't mention anything about referring to a lambda
 
I have doubts about the first Select but I don't really for the second one.
 
Als
@CatPlusPlus: Where?
Cant see any in the image
 
@Als Posted by X - permalink.
 
6:00 PM
but I don't currently have a problem with that
 
Given that I don't think SelectProxy has a Select member for what you've pasted.
 
Als
@CatPlusPlus: That would give the link to that post only
 
It doesn't
and I've never called one
 
@Als Yeah, in the room's transcript.
You cannot view messages outside of it.
 
Right I keep seeing too much into that for_each.
 
Als
6:01 PM
@CatPlusPlus: Yup
@CatPlusPlus: So need some more context or all i do is do Not Sure
 
Er, so you can read the transcript before the message.
 
@DeadMG Honestly I'd attribute any pains to the implementation, not the language. You're doing things by the book.
 
Als
@CatPlusPlus: Hmmm
I will let that Q be, lets see how it goes
 
I'd be perfectly happy to blame MSVC for my problems
 
@DeadMG How much has that Proxy constructor changed? Currently deduction shouldn't work.
 
6:06 PM
the only thing I did was add the explicit copy and move constructors and SFINAE out the template from consideration if it was a reference to a Proxy<T>
 
Yeah that's what's attempted in the paste, but it suppresses deduction.
 
I've never seen SFINAE suppress deduction
 
There won't be SFINAE ever without deduction.
The attempt suppresses deduction.
 
so
 
i.e. typename std::enable_if<check, the_type_I_want_deduced>::type&&
Deduction can't work for that.
 
6:09 PM
huh
I seem to have fixed the original reason it was there
removing that and it works
ok, here's another question
when performing my CRTP cast, how am I going to conserve lvalue/rvalue *this?
 
overload on lvalue-rvalue *this.
No other choice.
And of course your implementation can't do it :|
 
this language sucks balls
 
One day there will be a C++0x Proto and then you won't ever need to reinvent expression templates.
 
lol
well
all of that was a totally unnecessary headache
but now that I've got the general pattern down, it shouldn't be too hard to get to grips with it
 
sbi
@AlfPSteinbach You really seem to be in love with that woman.
 
Als
6:24 PM
@sbi: We All
 
She's very old now, you know
 
sbi
@Als @Alf once posted her history here. (I think you'll find it on Wikipedia.) She might be old enough to be the granny of many of you here.
 
Als
@sbi: Age is just but a number, beauty is timeless & ageless, We love the woman in the picture.
 
Not only we love her because of her beauty, but also because she helped us understand JPEG2000 compression.
In signal processing courses, I transmitted this image through virtual low quality copper wires.
 
sbi
@Als Beauty is not timeless and ageless.
 
Als
6:29 PM
@sbi: Beauty is a perception, what is beauty for you may not be for me, and vice versa.
 
sbi
@kbok Someone who helped inventing MRC compression (one of the jp2 compression modes) took over my lecture when I resigned. I had a good talk with him once.
 
I actually don't find Lenna particularly attractive
 
I actually don't find you particulary manly
 
@hexa That's because he's a puppy.
 
I never claimed to be manly
 
6:31 PM
It might be :D
 
Als
it is a perception. I nailed it
 
only a Geniusâ„¢
 
@sbi Where did you use to teach ?
 
Als
period.
 
Remotely related.
 
6:32 PM
ok, now I've got a really bad feeling
my algorithm works, and I think that it should be failing
oh wait, it is failing and I forgot that I'd noticed
:P
 
This is the worst kind of bug.
 
sbi
@kbok At a place here in Berlin.
 
Ok.
 
Als
@sbi: So how many years you taught? And how many you years you been programming?
 
sbi
@Als Yeah, of course. Still there's average in beauty - what most people of one culture agree on is beautiful. Old people usually are not included in that.
 
Als
6:35 PM
@sbi: Old need not be not beautiful. Old is still gold, but all that glitters is still not gold.
Ah a full round cycle
:P
My head is spinning
 
@Als Stop rotating then.
 
Als
I am hallucinating
 
Also, I have a blog, so if anyone has some time, I'd be intersted in reviews.
 
Stop doing drugs, then.
 
Als
@kbok: Is it about wine or women?
@CatPlusPlus: I am on a drug called C++
It's addictive
 
sbi
6:38 PM
@Als I started to program in the mid-80ies. First BASIC, later Z80 assembler. Then I learned Pascal. Later, when I studied, I needed to learn Ada, C, C++, LISP, PROLOG, and a few others.
 
@Als No, sorry.
 
sbi
I started to teach (officially) programming (Ada, IIRC) when I was still studying, but not much. I taught programming with C++ as a first language in a company I worked for for almost a decade. I also taught C++ in the industry once in a while. I taught C++ as a second language to CS students for two or three years, at two different universities.
 
ok
now I'm pretty sure that I should have fixed it, but it's still broken :(
 
Als
@sbi: No wonder your C++ Faq posts were so good, You are a teacher at heart!
3
 
Fuck, I wrecked my Linux system.
 
6:39 PM
@kbok And every time you watch Lena's picture, something decompresses in your pants? ;)
 
sbi
@DeadMG At a company I once worked for, we had table tennis, and later a pool table. This would be the perfect moment to get away from the computer and do something completely different for half an hour, then get back and look at your problem with a different mindset.
 
@RMartinhoFernandes Well, you've got the medal already. :P
 
What medal?
 
Als
@RMartinhoFernandes: You broke something which is said to be least breakable.
 
I have nothing else I desire to do with my time
 
sbi
6:40 PM
@Als Ah, I forgot: I always only taught as a second job. My main job has always been writing code.
 
Als
@sbi: And how many years has it been for you, 2 decades I speculate?
 
@Als It's all my fault, not the system. I practically told it to wreck itself.
 
@sbi ...unless you were implementing a pool game, I guess? :)
 
sbi
@Als How many years has been what?
 
Als
@sbi: working as a programmer
 
sbi
6:41 PM
@FredOverflow That, too, would have worked much better by actually wielding a queue for a while.
 
Als
int* myPointer1 = malloc(50 * sizeof(int));
int* myPointer2 = malloc(50 * sizeof(int));
free(myPointer1);
myPointer1 = myPointer2;
myPointer1[0] = 3;
 
@Als Now that I think about it, I should definitively write a blog about wine and women.
 
Als
is this UB?
 
Although I have a much more extensive knowledge about wine.
 
Why would it?
 
6:43 PM
@Als Why would it be?
 
Als
@kbok: Pass on the link to your blog anyways, would love to peek
 
Today I wondered, isn't "learning to learn" a contradiction? If I'm unable to learn, how can I learn learning?
 
sbi
@Als The first time I worked for money as a programmer was in 1994, IIRC. I was still a students then. My first job after studying must have started in 1997 or 1998.
 
Als
I don;t think so @CodeMonkey thinks so in his answer, so just checking
 
@Als It's on my SO profile BTW : kbokonseriousstuff.blogspot.com
 
sbi
6:44 PM
@FredOverflow Trust @Fred to come up with some juicy pun under any circumstances.
 
Als
@kbok: Thanks, marked as fav, should be a good read :)
 
@Als I'm not too sure about that, I think I need some feedback.
 
Als
@sbi: so 17 years, wow
 
sbi
@Als What?
 
What is great with being a student in programming is that you can make money with that early.
 
Als
6:48 PM
@sbi: ah, you lose context of the conversation too often, I meant you have 17 years of exp
 
sbi
@Als Ah, now I understood.
@Als LOL!
 
Als
@sbi: That is rich, You are rich in exp :)
 
He must've hit the level cap.
 
sbi
@Als Yeah, I'm being around on programmers.se at the same time, and only look here when I get an audible notification. That makes it hard sometimes to follow these sliced threads here.
@CatPlusPlus Contrary to popular believe, in real life there is no rep level cap. (And the gurus are way above me.) But, yeah, I've seen projects succeed and fail, and I've seen my share of reasons for it.
 
Als
@sbi: I see I see, I just be here in SO c++, c at most.
The other day I received this in mail
Congratulations -- you are one of the top new Programmers - Stack Exchange users for the week of Aug 8 2011!
:P
I had just one Q which was migrated there and which made me incredibly frustrated at that time
 
sbi
6:52 PM
@Als Kate Gregory tweeted link to a quite interesting question on PSE. Otherwise I wouldn't be there either.
 
And now you've changed your mind?
 
@Als Yeah, we know.
 
sbi
@CatPlusPlus Did I ever mention that these statements are really hard to place when you don't link to what you're referring to?
 
@sbi I have the top answer, too :)
 
I blame HSDPA. And Java.
 
sbi
6:53 PM
@DeadMG My doing. :)
 
Als
@RMartinhoFernandes: Not yet, I already spend more than enough time on SO, I can't add more time to be on SE
@sbi: That sure is a nice one, C++11, changes the entire ball game
 
I've stopped answering on SO, and suddenly, I have more time for chat.
 
sbi
@CatPlusPlus I started chatting here long ago and, suddenly, I didn't have time to answer on SO anymore. :)
 
I started chatting here and, suddenly, I didn't have time to work anymore.
4
 
Als
I usually answer on SO from work, the browser at workplace is too nasty to load this chat thing
At home i multi task, answer as well as be ere
 
6:56 PM
Ugh, mplayer for windows.
 
I didn't do much work anyway.
 
But now you have an excuse for it. Or maybe not.
 
Als
Today I answered so many questions and so little were accepted :(
And some of them were gems :P
lol
 

« first day (304 days earlier)      last day (4658 days later) »