« first day (925 days earlier)      last day (4016 days later) » 

6:10 AM
@Borgleader I hadn't heard that, but I think it's a mistake, though I suppose it'll make money (most Blade Runner fans will just have to see it, no matter how scared/certain they are that it'll be a let down).
 
Like it or not, a sequel to Blade Runner is in the works. It’s still in the very early stages—to my knowledge all we know about it at this point is that Ridley Scott plans to do it. Source
That's not the place I originally saw it though (I don't quite remember where it was)
 
Hm.
 
Well, we'll see what happens I guess. On that note, I think I need to go sleep. Talk to you all later.
 
Cya :)
 
Guys, whats a * before a function, why is it there in the first place?
in C++ ofc.
 
6:20 AM
@GamesBrainiac context?
 
@GamesBrainiac example?
 
@nightcracker : Getting you the web page.
 
@JerryCoffin Byye. <3
 
fuck that blog
and everyone who uses that style
 
6:22 AM
trieNode_t* TrieSearch(trieNode_t *root, const char *key); ?
also fuck C
 
that's a pointer
 
@Borgleader : Yes.
I know, but its really confusing
 
=l
 
How?
 
What on earth are they doing with those pointers?
 
6:22 AM
They're returning a pointer.
 
How can you have void *?
 
It's not rocket science.
 
Pointing to a location in memory.
also void* is a special pointer
 
afaik void* is a pointer without any type information (im probably wrong)
 
@Rapptz : Special in what sense?
 
6:23 AM
Type erasure
 
'Pointer to anything, we forgot what'.
3
 
@LucDanton : LMAO
 
I don't get this.
node = (trieNode_t *)malloc(sizeof(trieNode_t)); why?
The casting I mean.
 
It placates the compiler.
 
@Rapptz Heh, now you know How I feel! :P
 
6:25 AM
@Rapptz malloc returns void* no?
 
No, I mean the casting. You're not supposed to do it in C.
I've heard it's bad
 
37 secs ago, by Luc Danton
It placates the compiler.
^ doubles as the bad part
 
I can't find a good TRIE implementation
All the ones I've seen, I don't like
 
I don't think you're going to avoid pointers in a trie implementation
 
"Casting is lying to the compiler about the types of variables. And then people are surprised when it comes around and fucks them in the ass." (I forget who told me this but it's my favorite quote about casts)
 
6:27 AM
@Rapptz Me knows :(
But pointers make recursion a pain.
 
Pointers make everything painful
 
Say you have a function, somefunc(TrieStruct someTrie)
And this TrieStruct has an array of pointers
How do you tell the function to copy the pointers, instead of taking the actual memory addresses?
Because when the function finishes, it will delete the pointers
and then you have a problem
 
no it wont
youre taking a copy of the struct
it'll delete the local thing
 
@Borgleader Yes, it will if your destructor is set to delete [] the_array
 
Pointers don't work like that. Neither do variables or objects.
 
6:30 AM
@GamesBrainiac And no it wont
structs dont have destructors in C
for one
 
lol
 
Not writing it in C
C++
 
He's doing it in C?
yeah ..
 
C is easier to debug, but crazy
 
6:31 AM
^ why you looking at C implementations then
 
So you want to preserve the values in the array?
 
@GamesBrainiac trolling, you must be
 
@Borgleader lol
 
@Borgleader You try debugging C++
 
C is memory management hell.
I debug C++ all the time it's fine
 
6:31 AM
I can usually debug something in Java or C# in no time.
But C++....OMG
You never know what the goddam problem is.
 
Why?
 
Then you're doing something wrong
 
@Borgleader : You're telling me C++ is easy to debug as Java or C#?
You feelin' alrite man?
 
I find C and C++ equally easy/hard to debug. Exact same thing.
 
@GamesBrainiac Were comparing C and C++ here
 
6:33 AM
@Tuntuni One word: Templates
 
I dont do Java, and not enough C# to compare
 
I can debug C++ just fine too. ^^
 
@Rapptz Showoff.
 
I've never debugged templates.
 
6:33 AM
:P
 
(Not sure how that's possible either?)
 
@Rapptz Yeah lol, try debugging string (which is a basic_string<char>)
 
@Rapptz No, as I mean, code that is heavily templated.
And yes, sometimes templates
 
@GamesBrainiac Then you'll just have to learn to understand and read templates. :D
 
itself
 
6:34 AM
I have a lot of heavily templated code and I don't debug it..
 
Nothing hard with debugging.
 
If anything I get errors..
 
^ This
 
I just want to be done with this course and head back to Python.
 
My record is 25k errors for 15 MB worth of errors
 
6:35 AM
rofl howdyu manage that?
 
@Rapptz : Wait, what?
 
@Rapptz wut?
 
Apr 25 at 5:54, by Rapptz
user image
 
hello all
 
@Rapptz Is that ST2?
 
6:37 AM
Yes
 
@Rapptz o.O
@Borgleader Was just going to ask that. :D
 
Like I mentioned in the history, all I did was miss a comma.
 
@GamesBrainiac What was the thing with your array inside the TrieStruct?
@Rapptz And got 25k errors?
 
Yep.
 
Wow lool
 
6:39 AM
I had fun reading compiler errors for Unrealscript, the line it gives you is never the right one...
 
Is Clang easier to debug with?
 
I don't know but I can't use gdb for the life of me
 
@Rapptz Same here.
 
@Rapptz I hate GDB
 
@Rapptz Same
 
6:40 AM
The only debugger thats good is Visual Studio's
It even has a graphical map of what you're doing! :D
 
OllyDbg? :D
 
You can throw as much GUI as you want on it but it'll still feel like it sucks compared to VS :(
 
@Rapptz Zoid said that clang was really quite good.
But its complicated installing it on Windows.
 
Erm, isn't clang a compiler and not a debugger?
 
it is (just a compiler)
Scott <3<3<3<3
 
6:43 AM
@ScottW I hate you too Scott.
:P
 
174
A: Why is this program erroneously rejected by three C++ compilers?

GManNickGIn the standard, §2.1/1 specifies: Physical source file characters are mapped, in an implementation-defined manner, to the basic source character set (introducing new-line characters for end-of-line indicators) if necessary. Your compiler doesn't support that format (aka cannot map it to th...

lol
 
re-re-re-re-post
 
@Borgleader Don't read old messages. :3
 
Anything in the "frequent" tab is a repost.
Though that's locked :(
So it wouldn't show up
 
Any c++ question with over 200 rep is probably a repost :P
 
6:53 AM
Cycles in Family Tree?
Splitting a String?
Profile Code in Linux?
 
user1357851
@Mysticial incest?
 
a[5] == 5[a]?
I don't recall any of those being posted here.
 
@Mysticial Are you just listing C++ questions with 200+ rep?
 
@Borgleader Listing the ones which I don't recall were ever posted here since I joined.
 
@Mysticial I posted this
 
6:54 AM
a) You not recalling doesnt mean they werent b) I said probably
 
@Mysticial This one was probably posted too.
@Mysticial No one cares about this one!
 
Dividing an integer by 2? - Oh man... there was a lot of rage over that one...
 
user1357851
I can think of a more complicated Canadian Traveler Problem, the one which involves bears and wolves
 
@Tuntuni Wow.
No really, did you see what the guy did with the bitmap?
 
6:58 AM
@ScottW Woah, yeah it does! I like the music.
 
Welp bed time for me
bye all
 
user1357851
L8r
 
night
 
7:40 AM
I AM THE ONLY ONE. IT IS MY ROOM NOW!
 
user1357851
are you?
 
whoa, eating here :D
 
@Telkitty Kitty, you really got to stop this. Or else next time you're going to be in trouble, again, remember?
 
user1357851
like I care
 
7:46 AM
I was joking but maybe not an ideal one-box
@Telkitty hey you care because you love us right?
 
user1357851
Tough love!
 
(still love)
 
user1357851
8:05 AM
 
Ahoy
 
Yoha!
 
8:28 AM
-1
Q: PLEASE HEPL SOMEONE HACKED MY ACOUNT MY NAME IS CHERISE METCALFE

Clint AlbrightMY ACCOUNT WAS JUST HACKED MY NAME IS CHERISE METCALFE AND I AM USING MY BOYFIRENDS ACCOUNT TO MSG U RIGHT NOW IS THERE ANY WAY U CAN GET ME BACK ONTO MY ACCOUNT OR CHANGE MY PASSWORS AND THEN TEL ME THE NEW ONE

 
> I AM USING MY BOYFIRENDS ACCOUNT TO MSG U RIGHT NOW
 
Lol
 
Must not be a particularly smart couple.
 
Wow
This dude got slammed:
-7
Q: How I missed seeing the help link for Markdown formatting when asking a question

irrational John*Note: I edited the title to more accurately match the final disposition of this question. Still leaving it around for any others who might be as clueless as I was. It's a big world. There is a non-zero probability that this could happen. It turns out I was even more clueless than I originally t...

 
Xeo
Ohoo, so now I have @Mysticial-summoning-skills? :)
Mornin everyone.
 
8:43 AM
evening
:)
 
83
A: Is the Stack Overflow source code available?

Andreas BoniniAfter having given much thought to it during the last 2 years I decided that yes, I will release the stack overflow source code. Here it is: static void a() { a(); } int main() { a(); }

 
user1357851
Argh, I need to troll meta, but I am always too slow - those questions get closed faster than a bullet train cross a 100 meter bridge :(
 
user1357851
TWO PRE-MADE ANSWERS LOOKING FOR RETARDED QUESTIONS TO CALL HOME TO (meta only)
 
Moorniing
 
user1357851
good evening - 6:45pm here
 
Xeo
8:51 AM
Oh, it seems there was some talk about new monitors in here - I also wanted to get a new one, my current 18.5" starts feeling... small, with two 24" at work. :)
Any recommendations? /cc @Mysticial
I've been eyeing this one for a while.
 
@Xeo: Use smaller fonts in the meantime?
 
hmm... 24"... anything under $180 USD. I can't speak much for brand names though.
anyways, 4am here. gonna sleep
 
Xeo
heh, g'night
 
Sleep is for lamers, yo.
 
Xeo
9:06 AM
No.
 
user1357851
Please go to bed & don't come back ... please?
 
Hit the bed Jack and don't you come back, no more, no more, no more, no more.
 
Xeo
@Telkitty Sorry, but I just got up.
 
@Xeo Really? What time is it there?
 
Xeo
11am, roughly
 
9:13 AM
11:13?
 
@Mysticial we should go shoot the birds sometime, flying rats won't stop reminding me its morning
 
@CatPlusPlus you're @Telkitty in disguise, aren't you?
 
Soup.
@R.MartinhoFernandes So, do you actually use tools to generate documentation? Or is your style of comments for somewhere in the future?
 
9:58 AM
Nah, I was just playing around, wondering what I'd like to have from such a tool if it existed.
 
Uurghh.. I feel like javascript/PHP. Is this really my office, or have I died during the night and gone to hell? I need a drink.
 
Good morning
Woot! http://stackoverflow.com/badges/2609/boost?userid=85371 (/cc @rhalbersma)
 
@sehe Good?
 
So few such badges? That must mean the payoff for answers is low, right?
 
I should cook lunch but lazy.
 
10:03 AM
guys... "native" java app for mobile, website for desktop or web app that works on both (for my stupid uni project)? I mean...can HTML/CSS/??? really be the lesser of two evils, even if the other evil is Java itself?
 
nothing is a lesser evil than Java
 
Whatever is less work, because both options are complete shit that will make you want to kill yourself
2
I'd pick Java over HTML any day
 
@CatPlusPlus I'd still have to do a HTML thing for the desktop version though
 
"Whatever is less work"
Whichever
Whatever
 
Ell
^^
 
10:11 AM
I don't know which is less work :/
 
Well if you have the option to write two things or one thing
Then one thing is probably less work
I don't know
Maybe
 
our stupid prof probably wants this shit to run on iPads, too...so I guess just webapp it is, because I'm not writing an iOS app
 
Ell
HTML 5 then
 
@Ell I suppose I couldn't have outrun it forever anyways...
 
6
Q: reinterpret_cast between char* and std::uint8_t* - safe?

FaTonyNow we all sometimes have to work with binary data. In C++ we work with a sequences of bytes, and since the beginning char was the our building block. Defined to have sizeof of 1, it is the byte. And all library I/O functions use char by default. All is good but there was always a little concern,...

 
Ell
10:18 AM
Writing for 3 different resolution s is likely easier than 3 different languages & frameworks
 
Why have questions like these been popping up so much lately?
Everyone's so obsessed with uint8_t lately.
 
you're just jealous cause you're not as pretty as uint8_t
 
Ell
I like uint8_t
It makes more sense to me as a byte than char does
 
@LucDanton yeah. it's messed up. I think two factors are at play: (a) the payoff is exceptionally low (mostly, because boost questions are frequently "complex" (TL;DR) few people are/think themselves qualified to answer/validate answers) (b) questions are usually tagged instead of
 
It's just a typedef
 
10:20 AM
(in fact, after @rhalbersma noted I was approaching the tag badge I made an effort to retag some ~20 questions with as well :) I think I only added 1 answer in since then)
I also noticed, for the first time, that about half of those question didn't actually have on them o.O
That explains a bit why tends to get so little interest
 
That's messed up.
I don't pay too much attention to the Boost-related tags :s those questions must be orphans.
 
I should put together a paper to the Committee describing what an opportunity modules is
and telling them not to cock it up
 
@LucDanton On the bright side, there's a lot of potential for you, Robots, Xeo, @EvgenyPanasyuk etc of this planet :-)
@DeadMG I think they know
@DeadMG I think they know
Anyways, afk. I'm outside with the kids
 
I haven't seen any modules papers describing the opportunity for language reform
 
10:22 AM
Hi!
 
@sehe I only ever see the 'Hi I wouldn't take the time to read the helpful documentation that comes with the nice library, how does this bit work?' type of question :/
 
10:35 AM
OK, I hacked together a result_of implementation with 3 specializations of an undefined template struct. Who wants some torture?
 
no thanks, I'm already working on Wide right now
 
@rubenvb As in, trying to break it?
 
@LucDanton as in, trying to write my own without ugly __test_this __S_blabla __invoke helper structs.
 
Easy, remove the excess underscores and you've got yourself an implementation with nice helper structs.
 
lolz
 
Xeo
10:38 AM
@rubenvb I can see one specialization, but 3?
 
@Xeo if you check the standard's examples there are some member data pointers it needs to work with too.
at least that's what I figured.
Hold on, I'm copying the relevant bits into coliru
 
Poor sap thinks std::result_of is INVOKE-free. Little did he know.
 
Xeo
lol
 
@LucDanton well guess what? libc++ uses __invoke magic
and so does the Standard to define result_of.
 
Yeah that wasn't an accident.
 
10:41 AM
The member typedef type shall name the type decltype(INVOKE(declval<Fn>(), declval<ArgTypes>()...))
 
Incidentally I'm of the mind that if the Standard wants to keep using INVOKE then it should obviously provide std::invoke. Doing otherwise is really, really dumb.
 
I agree. I bet there's a nice TMP way to provide it too.
^ check that out
 
hmmm
 
all the indented stuff is just other traits
 
@rubenvb No, it's generic programming.
 
10:43 AM
I wonder if I can get rid of ; for member variables?
 
the result_of and Standard's tests are at the bottom.
 
std::invoke calls something invokable. That's not metaprogramming.
 
I bet there's loads of cases I missed doing this, but this works on the libc++ tests (except unique_ptr, for which I'm still struggling with implementing a compact tuple)
 
Ya doesn't deal with smart pointers right now.
 
Do those really need special treatment?
That would be one more specialization, right?
 
10:46 AM
@rubenvb Maybe.
Yeah I think your implementation is quite a way off.
 
most likely.
I only tested it with tests i could find.
 
E.g. result_of<PMD(S&)> is char, where I believe it should be char&. Let me check though, haven't read the specs for INVOKE in a long time.
 
@LucDanton that one is taken directly from the Standard...
 
Xeo
@rubenvb __invoke isn't that magical, imo.
"Just" expression SFINAE
 
All the static_asserts are.
ah wait
nvm
 
10:50 AM
You suck.
 
Thanks for that.
 
Dude.
I have an invoke of my own.
For like months.
But your first reaction is to defend your code.
Why?
You know it's a first attempt, you know not everything works.
 
I never defended my code. I just misread your message.
 
morning fellas
 
Xeo
@LucDanton I wonder why your detail::invoke is extra-SFINAE'd in the template parameters, instead of relying just on expression SFINAE?
 
10:59 AM
@Xeo Off hand I'd say for pathological cases.
I.e. can you construct a type such that its operator* and/or members result in an ambiguity?
 
Xeo
.* is always parsed as one operator, no?
 
pretty sure
 
Xeo
Or what do you mean?
 
struct wat { wat& operator*() { return *this; } void foo() }; invoke(&wat::foo, wat {});
Both std::declval<wat>().*ptm and (*std::declval<wat>()).*ptm are valid then aren't they?
 
Xeo
ah
 
11:02 AM
And this is why I think you rely too much on expressions, not enough on quasi-concepts.
 
nasty
 
As for your next question: yes, ranking would be appropriate.
 
Xeo
Well, in the same vein member data vs nullary member functions are ambiguous.
 
That is how it's specified after all and what I coded against.
 
Xeo
Actually, I think I stumbled upon that for my macro LIFT / example lambda generation for lifting and used ranking
Hm
I wonder if there's a defect in libc++ then
 
11:05 AM
The more time passes the less I like invoke, considering the unref hacks and so on :(
 
Xeo
hmhm
Hehe
error: call to '__invoke' is ambiguous
static_assert(std::is_same<decltype(std::__invoke(&wat::foo, wat{})), vo...
                                    ^~~~~~~~~~~~~
time for a DR to libc++
Or do you want the honor, @LucDanton?
 
Have you checked the spec though? I was really going from memory here.
@Xeo You go.
 
Xeo
The spec says "(t1.*f)(t2, ..., tN) when f is a pointer to a member function of a class T"
And the base restriction and stuff
 
And that's ordered right?
 
Xeo
for ((*t1).*f): "... and t1 is not one of the types described in the previous item;"
 
11:13 AM
Straightforward enough.
 
Xeo
Since t1 clearly is an object / reference of T (or derived from that), the second bullet should not be applicable.
 
Does that mean that ranking isn't even that much of a benefit then? We really want non-overlapping cases?
 
Xeo
@LucDanton well, with ranking you still get the desired behaviour, atleast.
 
Xeo
And I feel (maybe biased) that it's a bit cleaner in the code than the extra SFINAE on the different overloads, although the SFINAE is more explicit about the requirements.
We should just have ... requires(§20.8.2/1 bullet 1)
 
11:17 AM
lol
Meh, I don't know. I'd rather stick with non-overlapping conditions. Also I need to move that to functional/invoke or something.
 
user1357851
11:52 AM
Totally see Luc Danton grows into the next robor, only less human
 

« first day (925 days earlier)      last day (4016 days later) »