« first day (687 days earlier)      last day (4262 days later) » 

5:00 PM
sounds much like a blind date
 
haha
so blind that we didn't even meet
 
but you saw him
 
I don't remember any faces, I just know there where some people in there =)
Next time I will look more closely, maybe I will find the penguin
@jalf Btw, how many developers are you now? 9?
 
sounds about right. 10 if you count the part-time student guy and the tester, I think
something like that, anyway
 
meh
Tomorrow school.
Will be a horrible day.
 
5:12 PM
tomorrow work
will be an interesting day
 
School will be fucking boring.
 
is always
 
I am going to learn things I already know.
 
reddit.com
 
Good idea.
GW in class.
 
5:14 PM
@jalf Cool. I liked Valby, it's close the to the central station as well. However, I had to speak english during the whole day :( I tried to to understand danish but it was too hard. But Copenhagen is nice, I went to Strøget :)
 
nuffink wrong with angle-language
 
template<typename T> void f() { T const& t = T{}; /* use t */ }
what's the danger in this function ?
 
Empty initializer list.
 
that the coder is a moron
 
Also that you use C++.
 
5:16 PM
what if you call it with f<const int&>()
 
Also that you don’t use auto. C++ isn’t Java.
 
@JohannesSchaub-litb Then that's your own dumb fault.
 
And unreadability; everything is on one line.
The danger is that the code is unmaintainable.
Also, typename is longer than class so the source code will take more disk space and it can lead to a full hard drive, which can be dangerous if you are near a deadline.
 
lol
 
5:18 PM
@JohannesSchaub-litb What about alias<int const&> {}?
 
If this was an RPG, Radek would be a lvl 99 Troll.
 
@LucDanton it is valid?
 
@EtiennedeMartel lolz +1
Made my day. :P
 
@JohannesSchaub-litb I don't know, I haven't kept track of the fixes to list-initialization ever since that 'create a temporary, then bind' fiasco fix.
 
But seriously. My SSD was full at work and I had to get the work done before the fucking deadline. I could not open the 1 GB PSD that I needed.
So I uninstalled Visual Studio and suddenly, a few GBs more available.
 
5:20 PM
That was with an initializer in the braced list.
Surely no brace elision? It's not like references are aggregates.
 
@daknøk And that is why, young Padawan, you should always have both a SSD and a HDD.
 
:P
But well, tomorrow school.
No more work.
Days on which you don’t have to do anything are the best days.
 
Ha, here's it's labor day tomorrow. That means no work. Woot!
 
If you don’t want to work, just don’t go to work.
 
@LucDanton ohh
 
5:24 PM
-6
Q: Extract a C# exe from a C++ exe

Roger BaconThere is a C++ exe I have that has a C# exe wrapped inside of it. I want to extract teh C# exe. Is there any tool for doing this?

 
> teh C# exe
 
lolz
People y u no decent questions.
It ain’t rocket science.
 
If I ever were to keep a dog, this would be my first choice
 
Is that the son of the puppy and @sehe?
 
Husky are awesome :)
@daknøk lol, possibly :P
 
5:28 PM
SeheMG
 
DeadSehe
lol
 
Why do some tags like facebook and android have an image next to them?
 
He seems pretty alive.
 
@Rapptz sponsored I think
 
@Rapptz Sponzorrrrzz
 
5:28 PM
@daknøk haha
 
@TonyTheLion Except Pubby, which seems dead.
Although he has been on SO in less than 20 minutes ago.
 
yea, haven't seen him around for a while
 
@Pubby y u never chat.
 
also what happened to @Domagoj?
 
Come back. We miss you. :(
 
5:29 PM
he just vanished
 
Which makes me wondering.
What if a Lounge<C++> regular dies? Will we ever know?
 
is that English?
@daknøk prob not :(
 
What happens if all room owners die?
 
funny how you get attached to people you've never met IRL
@daknøk we're fucked
 
If I die, I want you guys to put my name in the topic.
 
5:30 PM
@TonyTheLion as an atheist, not really. :P
 
then this Lounge is no longer
 
@EtiennedeMartel sure, just tell us when you died.
3
 
@daknøk whatever.
@daknøk lol
 
people on SO will hardly notice if a member of SO dies, except if they is very famous like JSkeet
 
@TonyTheLion that’s why I want to buy a real-life lounge with free entrance for Lounge<C++> regulars, free weed, free hookers and free drinks.
And music.
 
5:32 PM
hahah :)
 
And free food.
 
@daknøk like a hackerspace, kind of
 
Also, the doors are one-way.
You cannot get out, just like in the virtual Lounge.
 
And if you die, we’ll just, well, I don’t know.
Feed you to Tony.
Or something.
 
5:33 PM
bury him maybe
lol
 
Where?
 
yea feed him to the Lion
 
You cannot get out of the building; the door is one-way.
Hmm.
 
break the concrete floor, dump in, fill up
 
I could fix a bunker in the building.
 
5:34 PM
done
 
:P
And on the wiki we’ll create a list of people who died.
 
hahah
dead.loungewiki.com
all the ones who died in the line of Lounge duty :P
 
Topic for a week.
R.I.P. Pubby.
 
a battle with a raw pointer was lost
 
A battle with the PHP-flagfags was lost.
 
5:35 PM
oh god, the ultimate humiliation
 
You know.
In that building.
Everyone has his own cubicle with a computer and an Internet connection, with the only allowed domain being chat.stackoverflow.com.
Your chair is a toilet, and you have an infinite fridge.
 
sounds awesome
 
After twenty years, you can get out and you can go talk with real people. Would be a fun experiment. Testing social skillzz.
I’ll eventually add some bots to the Lounge and you will all fail the Turing test.
 
We already have one bot.
 
Feeds doesn’t really pass the Turing test.
His name alone.
 
5:39 PM
I meant Martinho.
 
Oh. :P
 
But I'm starting to think that he might be a human male in disguise.
 
It would be hilarious if he really was a bot.
The programmer would be the awesome.
 
lol
he's awesome :)
 
I want bacon.
 
5:47 PM
I want a life size statue of you made with bacon.
 
Me too.
Meh.
I have to get up fucking early tomorrow.
 
@ManofOneWay haha, yeah, I assume it gets easier with practice, but I always found that the whole notion of "scandinavians can all understand each others" is kind of overrated
in practice it's much easier to just switch to english
 
@TonyTheLion it’s no-fap September. Poor you.
 
Woops. I fapped yesterday.
 
I’m not participating either. xD
 
6:00 PM
@daknøk hahah, I don't participate in that :P
 
Also, I am wondering.
 
@daknøk Definitely.
Switch to Chrome or Opera.
 
No.
 
user image
3
 
@daknøk poor guy, don't waste your time with that crap
 
6:07 PM
@Rapptz I laughed when I saw that
 
@Rapptz xD
@EtiennedeMartel Chrome is inconsistent. The browser is awesome, but the tense and wording used in the menu items is different from that in all other applications.
 
Eh.
Well, then stick onto your subpar Web browser.
 
xD
 
wait
I could build Chromium and fix the menu items first.
 
6:19 PM
Chromium's source is pretty big.
 
Yeah, I’ll just stick with Safari.
 
Can anyone tell me if there is anything wrong with this function ? ideone.com/7zZCh
 
ideone is slow right now..
Why are you using pointers
 
@Rapptz i discovered it was stupid now
 
Why is it void
 
6:23 PM
@MohamedAhmedNabil Nothing guarantees that your std::string ends with a null character.
 
@EtiennedeMartel std::string is null terminated isnt it?
 
Not necessarily.
The thing that's returned by c_str() is, but the string itself might not be.
Anyway, std::string has a size() method, so no need for that.
 
and there's std::transform
 
@Rapptz because it doesnt return anything
@EtiennedeMartel using size() worked thanks, It was really stupid of me to do it with pointers the first place
 
@EtiennedeMartel Standard does, but only since C++11.
 
6:27 PM
oh no, the `std::string thing again
 
Ah. I'm not too fluent in C++11.
 
Nothing I know of in C++11 requires std::string to be null-terminated at all times
 
It guarantees that .data() is O(1) and null-terminated.
 
@Griwes If std::string always ends in null, then why this gives an error ideone.com/7zZCh
 
@Griwes yes, but that's not the same as the string itself always being null-terminated
writing a null byte to the end of the buffer is a constant-time operation :)
so that can be done as part of the data() call
 
6:29 PM
@MohamedAhmedNabil ideone.com/4zWl5
 
Yeah, if it's already keeping one additional byte of free buffer, any sane implementation will set it to zero anyway.
@MohamedAhmedNabil Probably because it's not C++11.
 
Why does ideone double the amount of spaces I use.
 
Xeo
@jalf They want to achieve the "always null-terminate", but the wording kinda allows some scary stuff
 
They are bonus spaces.
 
Xeo
We had a discussion on that not too long ago
 
6:32 PM
@Xeo I know. I remember it... :D
 
@jalf Do you live in Valby?
 
the wording allows for some horrific trickery :D
@ManofOneWay nope, about 5 km away
 
Xeo
Aye, and I think it was the robot that wanted to write a Hell++-style std::string
Aug 4 at 13:03, by Xeo
@Cheersandhth.-Alf So, what I meant was this: The std::stringallocates enough space for the string + null terminator, but only copies the string, leaving the space for the null terminator empty. On a call to c_str() (or data()), the null terminator gets written.
For anyone interested in the null-termination issue :)
 
@Griwes Im using VC++ 2010, doest that use C++11?
 
@Nils I'd probably buy more fucking hours, given the chance
 
6:37 PM
@MohamedAhmedNabil It doesn't - hey, 2010 < 2011; and as for MSVC, even VC++2012 will probably have very little C++11 support.
 
@Griwes to be fair it has a lot of c++0x features /cc @MohamedAhmedNabil
 
@Griwes What IDE uses C++11
 
@MohamedAhmedNabil We joke often that MSVC 10 uses C++07, because that's basically what the draft had in 2007.
 
@MohamedAhmedNabil None
 
@sehe Then C++11 isnt used :O ?
 
6:39 PM
IDE != compiler. You don't need IDE to pogram, y'know?
 
@MohamedAhmedNabil It's not fully implemented anywhere. The best would be gcc 4.8 or Clang 3.2
 
@MohamedAhmedNabil C++ is a big language. Compilers are gradually implementing support for C++11, but it's coming in bits and pieces
 
@sehe Pretty much none, compared with GCC or Clang, to be honest... MSVC is far away from having support of it on their level.
 
@MohamedAhmedNabil But the greatest common divisor (move semantics, updated standard lib, lambdas and variadics) is done pretty much all around
 
@sehe MSVC still doesn't have variadics, and the lambda support in VS2010 is incomplete :)
 
6:41 PM
@Griwes Hmmm AFAIR it has move semantics, <thread> (future<>, async), TR1 + std::function, type traits, array etc. etc. Oh and the relaxed rules for (member) template (specializations)
@jalf Ok, variadics is wrong for MSVC indeed - sorry. Memory mishap. I know there are many bugs in the implementation of lambdas in MSVC - but I never heard it is was prohibitive. At least, all tests I compiled on MSVC compiled without a hitch.
I have heard very different stories from Xeo, DeadMG and JohannesSchaubLitb, in deed
@Rapptz codepad.org or liveworkspace.org
@EtiennedeMartel "Not necessarily"? I'd say: not by definition. It will in practice in some implementations, but that is only to facilitate .c_str() and .data() easily
@MohamedAhmedNabil std::string can contain embedded NUL-chars: std::string("hello\0world", 11); so, no, it is seriiously not terminated by NUL
 
@sehe nested lambdas are deeply, completely broken. It also doesn't handle capturing this. Everything else about them seems to basically mainly mostly work
so you're right, it's not prohibitive. There are some cases where it won't compile, but you can work around them fairly easily. I don't know of any cases where it compiles, but does the wrong thing, which would've been a serious problem
 
woot for MSVC then. Glad it isn't my mainstay for cpp
 
VS2012 doesn't even have initializer lists.. That still bugs me.
 
Really? OMFG. I herewith revise my opinion:
MSVC doesn't do C++11
 
6:57 PM
What does codepad compile C++ with?
 
GCC 4.x
Liveworkspace has gcc 4.8 and boost 1_50_0
 
wtf... someone messed up the tags on the branch predictor question.
I don't see the point of that.
 
imi ga nai!
 
Another revision control victim: can't tell branches from tags
 
@Mysticial edit it back?
 
6:59 PM
I'm tempted to.
 
Or just click 'Rollback'
 
I'd do it.
 
Is it me or does this fit the puppy? :P
 
If you rollback does it become a community wiki?
 
@Mysticial Mmmm. Unsure. It is language agnostic. I think the issue is that there is a limit to the amount of tags per question, which brings along the choice.
 
7:01 PM
He even took out and ... eh.
 
@Rapptz Nope. Also, this is about the question, not the answer
@Mysticial Oh, I read the edit wrong. I'd roll back then
 
I thought 5 edits = community wiki
 
I fixed it
 
I don't know if tag edits count towards the auto-wiki count. But given that I already have a get-out-of-wiki pass for my answer, I don't see why that wouldn't count for the question as well.
 
@Rapptz I think it's 10, at least
 
7:02 PM
@sehe thx :)
It's 10 from the original owner. Or 5 different people.
 
@Mysticial I hope you agree. I have left out compiler-optimization in favor of language-agnostic. Hmm. That feels wrong. Updating edit
 
@sehe That looks fine.
It's not like I'm getting any tag badges anyway.
 
Ok. I'll leave it, because otherwise what would I drop :)
@Mysticial I could replace java/c++ and compiler-optimization by just 'compiler' and 'optimization'?
 
on the other hand, language-agnostic doesn't go too well with C++ and java
I don't think we can remove c++. Since that is kinda the core of the question.
 
That way, you can have branch-prediction in there
 
7:06 PM
@sehe I like that.
 
@Mysticial Done
 
is a good fit
 
Sees question tagged as , posts solution with singleton implemented via raw pointer
 
I wish there was a way to select which tag they append to the title.
 
Part 2: gets downvoted by me
-1
A: making consistency of data member in the whole programme without using static keyword

arasmussenYou're either going to have to make check static, or JointDetails a singleton (which also uses the static keyword). If you make check static, you are saying that all instances of JointDetails have the same check. If you make JointDetails a singleton, then you're saying that every reference to a...

 
7:08 PM
Putting into the title would greatly increase its search engine visibility. There was a feature request for it on meta, but it got ignored.
 
@Mysticial Me too. I wish you could add tags to individual answers for search enhancement. Often, a question is trying one direction, and the answer uses another: I never think it's right to edit the tags on the question, even if the answer got accepted.
 
posted on September 02, 2012 by Dave Abrahams

This week I have the privilege of managing the review of the proposed Boost.Contract library. This library is possibly the most ambitious example yet of a category of libraries that, essentially, implement core language features using library constructs. Other examples include: Boost.StaticAssert Boost.ForEach Boost.Parameter Boost.Move Boost.Typeof Matt Calabrese’s Boost.Generic prototyp

 
@Mysticial bounty.
 
@daknøk I'm trying to find that meta question.
I found this one:
12
Q: Which tag is added to the page title?

SathyaOver at Why is the first tag sometimes in the <title> tag of some questions, Rebecca mentions To this end, the tag listed first on a question (sorted by popularity of the tag) So, what's the basis for tag popularity? Views? It sure as hell isn't number of questions.

I guess I can leave a comment on Rebecca's answer to see what they think of the idea.
 
Change the title to Why is processing a sorted array faster than an unsorted array? Branch prediction?. :P
 
7:14 PM
Since the branch-predictor question (currently 2nd highest on SO) will benefit the most from it.
 
oh the irony
 
@daknøk err...
 
or
 
@TonyTheLion that's not irony. It's WIN
 
7:14 PM
o hai
 
o hai
 
Ohio.
 
The branch prediction question is highest for me
 
@sehe you had to contradict me, didn't you? :P
@daknøk I prefer California
 
@Rapptz The highest is the book question. It's historically locked.
 
7:15 PM
when sorted by votes
 
@TonyTheLion I never want to contradict you!
 
@TonyTheLion I prefer Noord-Brabant.
 
@sehe yea, and I'm supposed to believe that? On the internet?! :P
@daknøk lol
 
@daknøk Oh boy. The globetrotter
 
2498
Q: List of freely available programming books

KaranI'm trying to amass a list of programming books that are freely available on the Internet. The books can be about a particular programming language or about computers in general. What are some freely available programming books on the Internet?

 
7:16 PM
@TonyTheLion No! You're not supposed to believe that!
 
Historically locked so it doesn't show up in that top questions list.
 
@sehe lol
 
@sehe hahahah
 
Oh, I see.
So it can't be edited anymore?
 
@Rapptz It's not really a "question". If asked today, it would be closed instantly. There was a huge discussion on meta about it and how those type of questions pollute the top questions list and set a bad example for new users.
A lot of people wanted to delete them outright. Others wanted to keep them because they're valuable.
End result: Historic Lock
It keeps the question, but locks it and knocks it off the top questions list.
 
7:19 PM
I still don't get why everything else related to books is locked/closed/deleted except the C++ book list.
 
@Rapptz The C++ book question was the only one that was maintained.
So it gets an exception to the rule.
At least until they can find a better place for it.
Historical lock won't work because we can't edit it.
 
Why though
 
@Rapptz which statement are you questioning?
 
@Mysticial Why was it the only one maintained. It just seems.. odd.
 
Xeo
@Rapptz Because we put so much value on good books
 
7:23 PM
@Rapptz I dunno... maybe because C++ is such a complicated language?
Or maybe because we're the only ones who care.
 
>implying C++ isn't bloated
 
@Rapptz Grandfather clause, I guess.
 
@lezebulon What?
 
@Rapptz It was also the most linked to by a large margin.
 
@Rapptz But don't forget we fought really hard (well, not me, but others did) to keep it alive. The meta police wanted to blindly apply the rules and shut it down.
 
sbi
7:36 PM
@sehe Had they decoupled the code, it would be easy to fix the GUI without being afraid to break the app.
 
int main() {
    for (auto const i : range(1, 5))
        cout << i << "\n";

    for (auto const u : range(0u))
        if (u == 3u) break;
        else         cout << u << "\n";

    for (auto const c : range('a', 'd'))
        cout << c << "\n";

    for (auto const u : range(20u, 30u).step(2u))
        cout << u << "\n";

    for (auto const i : range(100).step(-3))
        if (i < 90) break;
        else        cout << i << "\n";
}
 
sbi
@Drise because such highly-dedicated and knowledgeable users are what made SO such a good place to ask questions.
 
I think the .step(…) is necessary, otherwise there’ll be an ambiguity between a finite range with default step size, and an infinite range with custom step size
 
what's range()? User defined function?
 
@Rapptz Yes (see discussion a few hours ago)
 
7:40 PM
I'm bad at navigating the chat log
 
if there’s intest I can post it but the code isn’t actually very interesting and my implementation happens to be quite naïve and duplicates a lot of code
 
Nah I'll just find it. Might as well learn how chat log works.
 
but first of all I’d be interested if anybody has any suggestions of how to get rid of the .step(…) in the interface
 
@KonradRudolph operator() or named argument?
 
Xeo
@KonradRudolph Best other option would be range(1, step(4)), and I personally don't see the problem with range(1).step(4)
It's the same with string_ref - they could've added a bunch of subrange arguments, but instead the proposal said to do s.substr(1,5).operation
Okay, well, maybe not really the same
 
7:46 PM
@DeadMG operator() would be unreadable IMHO. Named argument is what I have, no?
 
Xeo
@KonradRudolph Named arg would be like range(1, step = n)
 
@Xeo No, not necessarily a problem, I agree. Just curious if somebody had a better idea. Because it seems that irange isn’t what I want after all
 
named arg is range(1, step = n) or range(1, step(n)).
 
@Xeo Well, in other languages, sure. But C++ doesn’t have that (did C++11 add it? I couldn’t find it via googling just now) and the named argument idiom is what I used
 
Xeo
Or you could add a dummy arg to the infinite range range(1, unbound_range, n)
@KonradRudolph You can easily add it
 
7:47 PM
@KonradRudolph Boost has a quite complete workaround, I think, which permits that.
 
Why did they have to make default a keyword???
 
@Xeo okay, sure. But that sounds a bit overkill (adding a type that overloads operator =
 
or maybe it was the robot
 
@EmileCormier switch statements
 
Xeo
@EmileCormier contextual keyword, isn't it?
oh, right.
I forgot that one
 
7:48 PM
What would be a good synonym for default?
 
Xeo
@DeadMG Boost.Parameters
 
@EmileCormier fuck_the_standard?
 
Xeo
which is ugly
 
@Xeo Yes, I dislike this. It’s cute but it litters the namespace
 
Xeo
@EmileCormier default_?
depends on where you use it, I guess
 
7:50 PM
Guess I'll have to use defaultFoo.
 
@EmileCormier Use preset
 
@Rapptz : Ooh, me likey. Yes, that'll do nicely. Thanks.
 
is there any way to do stuff like
for(int i = 0; i<4; ++i)
myTemplate<i>();
 
No, at least not when i is calculated at runtime.
 
what
Oh I see now
 
7:57 PM
@daknøk but since the range of values is known at compile-time?
 
You need to do “recursion”, “recursion” being inside quotes since it isn’t real rescursion.
@lezebulon non-type template arguments must be constant expressions.
i is not a constant expression.
 
@daknøk It absolutely is. It’s a recursively defined template.
 
But you call a different function every time.
 
@lezebulon : Boost.MPL probably has something that can help you do something like that.
 
myTemplate<2> and myTemplate<1> aren’t the same functions.
 
7:59 PM
@daknøk nah, you call the same metafunction (in the sense of template instantiation) with different arguments
“recursion” is a mathematical concept
 

« first day (687 days earlier)      last day (4262 days later) »