« first day (1094 days earlier)      last day (3846 days later) » 

7:00 PM
it's probably WAY too simple of a question for SO though, I'm just not sure what to make of this output from a function
 
@Crowz Why don't you just ask what you want to know, and see if the question gets 1) answered, 2) binned, or 3) flagged?
 
@Crowz It's never too simple of a question.
 
user1804599
No question is too simple for Stack Overflow.
 
alright.
 
These citation rules drive me insane :\
 
user1804599
7:00 PM
@Crowz Complicate it.
 
ok, ontopic: should I always use p = make_unique<T>(...); instead of p.reset(new T{...}); ?
 
I'm feeling a teensy smidgeon better
 
user1804599
@Pawnguy7 You are a citizen of Lounge<C++>. You already are insane.
 
@Abyx Yes.
 
user1804599
 
user1804599
7:01 PM
@Abyx No.
 
@Crowz Trust me, most people like simple questions. They can overkill it.
 
user1804599
Not if you want to use initializer list.
 
@not-rightfold right
 
user1804599
(Assuming ... is the same in both cases, and not secretly {...} in one.)
 
yeah, but who wants to do that.
initializers are shit.
 
7:02 PM
make_vector would be better?
 
@JerryCoffin I vote for #2.
 
user1804599
@Abyx Too specialized.
 
user1804599
You could write one that accepts a variadic argument list and an output iterator. :P
 
omg no
 
user1804599
Or just use initializer list really.
 
7:06 PM
but C++ really could use another syntax for initializer lists
 
user1804599
{…} initialization syntax sucks in generic code. :F
 
@DeadMG My, now there's a surprise!
 
well, not std::initializer_list<T>{}
 
@JerryCoffin Inorite? Bookies gave a thousand to one against.
god fucking bless override.
 
override ftw, yeah.
 
7:09 PM
Konrad is almost to 200K
Konrad Rudolph, Cambridge, United Kingdom
199k 41 431 684
 
aww, I want a -Wcpp11 warning option, to enable checks against modern the only right C++ style
 
user1804599
TIL: 199999 is a prime number.
 
Awesome.
 
user1804599
As are 19 and 199 and 1999, but not 19999.
 
hm... maybe I should start using boost.range
 
7:18 PM
@Abyx They had that for a while, but accidentally turned it on by default, and they couldn't get the compiler to compile itself until they removed it.
 
@JerryCoffin was it g++ or clang?
 
user1804599
GCC master race.
 
@Abyx Gosh--I'm not sure I thought my lie story out in that much detail.
 
anyway, it would be useful if compiler would say that I should use T x{y} instead of T x(y).
 
Ell
gahh eclipse crashed -.-
 
7:22 PM
@Ell time to use MSVS!
 
Eclipse? Crashing? No.
 
user1804599
Why the fuck do you use such a terrible editor?
 
@Abyx I think I'd prefer to IDE to just silently correct my typo, and leave the compiler out of it.
 
@not-rightfold lol look who's saying
 
Ell
@not-rightfold android
 
7:22 PM
@JerryCoffin yeah I also want such IDE
 
user1804599
loldroid
 
user1804599
Sublime Text 2 with Vintage and VintageEx master race.
 
Sublime Text would be good if it had normal "search results" panel
 
@Abyx That would be nice, if in fact that is good advice. Which it isn't.
 
user1804599
Eh.
 
user1804599
7:24 PM
Fuzzy search is one of its best features.
 
@Ell So, why?
Use IntelliJ.
 
user1804599
I liked how Android Studio supported lambda syntax.
 
user1804599
IIRC it’s build on top of IntelliJ.
 
user1804599
My teacher gave me 1/10 for my Android project because I did not use Eclipse.
 
user1804599
7:27 PM
I guess he was just too dumb to figure out how to build it or something.
 
@DeadMG why not? is it because of implicit conversions or initializer lists?
 
:laffo: Education
 
@Abyx Initializer lists.
if you do std::vector<int> x{y}; you can get surprisingly buttfucked depending on y's type.
 
user1804599
I should hire an assassin.
 
user1804599
Another teacher liked me because I wrote Haskell code instead of Java code in Java class.
 
Ell
7:28 PM
My android code is super fucking ugly :/
 
@not-rightfold Your fault for not telling him.
 
user1804599
Do I know he assumes it.
 
@not-rightfold you could write a readme file
 
hmmm
 
@not-rightfold The "official" way to develop on Android is with an Eclipse plugin.
 
7:32 PM
if you can have a look
 
Ell
@dorafmon runn!
 
No problem, I enjoy downvoting questiondumpers.
 
user1804599
lolololzorz
 
its so unfriendly
 
you're being very unfriendly
coming in our nice lounge and waving your question in our faces
 
7:33 PM
@DeadMG There's a rafter in your eye.
 
user1804599
@dorafmon It’s okay, my friend. I still love you. <3
 
Ell
@dorafmon It is :( but that's the way this lounge works
chat for a while and we will reconsider :)
 
omg what? an ii variable?
have another -1
 
do not complain that, I did not wrote that
 
alright, you command-line types.
tell me what debugging information you want to see if there is a compiler error deep in a nested template function.
I know what I want to do for interactive
 
Xeo
7:36 PM
Not like you have much choice except for printing the instantiation trace
Since you can't divine where the error originated from
 
@DeadMG I want to see how to fix it.
 
@Xeo That's what I was thinking. I'd print until I reached a point that was not a template.
 
user1804599
@DeadMG Nicely formatted type names, rather than GCC’s unformatted blob mess.
 
er
the vast majority of Wide types don't have names at all :P
ah well
I can probably make some.
hmm
I'd have to describe the argument context for unnamed local types.
that's not going to be highly amusing.
 
user1804599
Also, if I include <iostream>, I want to see “<iostream>” in the diagnostic, not /usr/local/include/c++/3.3/include/implementation_detail/io/streams/iostream/io‌​stream/__iostream/iostream/more_implementation_detail/iostream.
 
7:40 PM
Wide doesn't have includes like that.
and when I get diagnostics for C++ errors, they come from Clang, not me.
 
Xeo
@DeadMG <type at file.wide:line:column>
 
user1804599
@DeadMG Ah, okay.
 
@Xeo Pair(x, y) { return type { first := x; second := y; }; }.
 
In fact, he doesn't even need to store it. (([](){})()) - That is, assuming he only wants to call it once. — Mohammad Ali Baydoun 4 hours ago
lol syntax
 
just knowing the location of the anonymous type will only tell you that it was a Pair, not a Pair of what.
 
user1804599
7:42 PM
@DeadMG { first: integer, second: double } at foo.wide:4:6
 
Xeo
Eh, whatcha wanna do, make it a tuple-like thing for printing?
<type of [A, B] at ...>?
 
not good enough.
what if the real error is that it was supposed to be Pair(double, double) instead of Pair(int, double)?
 
you would need the full traceback for all anonymous types involved.
recursively.
 
@TonyTheLion olden but golden
 
Xeo
7:43 PM
Give a name to each anonymous type at the start of the trace, and use those names? :P
 
I love the dinosaur user :)
 
you'd still need to know how they came about
 
Hmm, chocolate.
 
@FredOverflow yes :)
 
user1804599
@DeadMG expected (double, double), got (int, double) :V
 
7:45 PM
@TonyTheLion I've seen this before.
 
@not-rightfold How the fuck am I gonna know that you were expecting a pair of doubles?
 
user1804599
> Graduated in 2013 with a degree in computer science from Binghamton University. Jobless :(.
 
@GamesBrainiac Its not new, as said before.
 
user1804599
@DeadMG I thought you meant the compiler expected that elsewhere.
 
When is VS 2013 finally going to come out guys?
 
7:46 PM
fuck knows
 
user1804599
The compiler can obviously not know what type the user expects, hence it has to display the actual types.
 
@GamesBrainiac Come out? VS 2013 is gay?
 
@GamesBrainiac they are adding a last-minute std::graphics impl
 
when MS decides they can be arsed
@FredOverflow hahahah
 
@not-rightfold Right, but what I'm saying is, if the actual type is a mismatch to what the user wanted to find, then you need to explain where the actual type came from.
there's just too much information here to be digestible in a textual dump.
 
7:48 PM
@TemplateRex Ahh. I have no use for that :P
 
> Microsoft has made several important announcements regarding Visual Studio 2013, starting by setting the official release date for the product as November 13, 2013.
 
user1804599
Is it possible in Wide to add explicit type annotations to arguments and variables?
 
sure
 
I'll be able to get it before my Dreamspark account expires
 
@GamesBrainiac for the record, that was tongue-in-cheek, although it is the only topic that Herb has been writing about lately
 
7:48 PM
:v
 
user1804599
inb4 you cannot compile C# anymore without Windows 8.
 
@TemplateRex lol WTF really? that's so dumb.
 
@CatPlusPlus You conniving kitty you :P
 
user1804599
inb4 compiled binaries don’t work on Windows 7.
 
@not-rightfold thats rich!
 
7:49 PM
@DeadMG nah, I was trolling ;-)
 
@DeadMG Does wide have list comprehensions?
 
wtf no
 
user1804599
haahahhaha
 
do I look like a moron?
 
user1804599
Now you do, yes.
 
Xeo
7:50 PM
Now yes.
 
I don't care :D
 
user1804599
inb4 lists slow hurr durr
 
Xeo
inb4 list doesn't mean linked-list
 
user1804599
inb4 library feature hurr durr
 
@not-rightfold Try "Unnecessary language integration".
 
7:51 PM
Stop saying "inb4"
Ugh
 
user1804599
@DeadMG Ha!
 
@FredOverflow Dupe.
 
user1804599
Language integration is great.
 
it's abhorrent.
 
Does Wide have generators?
 
7:51 PM
I would only ever consider comprehensions after ranges proved to be insufficient.
 
user1804599
Why not use C? It has nothing in the language.
 
BUT I MUST CHANGE STANDARD LIBRARIES
 
@JerryCoffin lol, cast the close votes XD
 
@JerryCoffin but still, taking months to go from RC to RTM is a tad slow
 
Xeo
@EtiennedeMartel ^
 
7:52 PM
@not-rightfold He's a closet C guy.
 
@GamesBrainiac Kind of, yes. Depends on exactly what you mean by "generator".
 
@Xeo Yeah, just saw that. Made me want to listen to Knights of the Round's soundtrack.
 
(oops_)
 
@not-rightfold Because it's been proven to be insufficient.
 
I thought that RC is usually "let's wait a week for any breaking changes that need to be fixed, but otherwise, let's ship"
 
7:53 PM
@GamesBrainiac I'm whiter than snow.
 
language integration is like optimization- you only do it as a last resort after you know that not doing it is a serious problem
 
LINQ is great
 
@TemplateRex I thin that depends heavily on the type of product. Given the effort that can be involved in switching to a new version of VS for anything but a toy product, a cycle much tighter than that virtually guarantees that the RC gets no serious use before it goes RTM, defeating the purpose of having an RC at all.
 
@EtiennedeMartel I sometimes forget you're canadian.
 
@CatPlusPlus It makes my dick rock hard.
 
7:54 PM
Have you read about yield in C++?
 
rofl.
there's no way that could possibly work
iterators are way too primitive
 
@DeadMG On the other hand, language integration also means more work for you.
 
@BartoszKP Nope.
 
I was thinking the same
 
@DeadMG C++ is too primitive.
 
@EtiennedeMartel That's another excellent reason not to do it. I have plenty of work making existing features work well.
 
Xeo
@DeadMG When did iterators enter the picture?
 
Functions have their own stack maintained by the library :|
 
user1804599
You can use mutable lambdas for some small set of very primitive generators.
 
user1804599
E.g. fibonacci sequence.
 
7:55 PM
fuck it. I want decltype(auto) in VC++.
 
@BartoszKP Except that doesn't produce generic ranges, it only produces co-routines.
so in other words, it's virtually worthless.
 
Xeo
@DeadMG wtf
 
I need to install clang on windows.
 
Xeo
"yield" doesn't necessarily mean what it does in C#
 
user1804599
7:56 PM
You can write iterators for coroutine-based generators.
 
@Xeo hm, what else do you want it to mean?
 
@DeadMG The example shows a good use case for this that it's not worthless. If you read a file/resource not knowing its size before hand
 
Xeo
btw, function_input_iterator
 
user1804599
@Xeo Gotta try that. :D
 
@BartoszKP So basically, compared to the generic range version, it's virtually worthless.
@not-rightfold Hmm, got links to that? I'd be interested to see all the terrible hacks involved.
 
Xeo
7:58 PM
1 min ago, by Xeo
btw, function_input_iterator
No terrible hacks, just an ephemeral storage that is filled on incrementing and returned on dereference.
 
@DeadMG What do you mean by generic range version?
 
Today was lame pun Monday and tomorrow is bad pun Tuesday
 
user1804599
@StackedCrooked mkdir: cannot create directory `/root/coliru/Web/../CompileArchive/4af0e31b1c5aba26': Too many links
 
user1804599
:V
 
@TonyTheLion then bull shit wednesday?
 
8:02 PM
Well, I'm not keeping up with C++ unfortunately right now, but the way it's done blew my mind :) Probably you guys do such things everyday, so I look a bit naive ; )
 
horripun Wednesday
Terripun Thursday
and Friday is hopeless pun
 
Xeo
$ tony --pundantic lounge.c++
 
@not-rightfold Ok. Apparently the CompileArchive was getting too big. I'm rm -rf'ing in now.
 
user1804599
:P
 
Xeo
@StackedCrooked Wait, wasn't that done hierarchically based on the first two letters?
 
user1804599
8:04 PM
Arg.
 
user1804599
Stupid Boost documentation.
 
Xeo
Always.
 
@Xeo No, that's the, err, real Archive.
 
Xeo
@StackedCrooked Ah
 
user1804599
Why don’t you just show which fucking header to include on every class/function reference page.
 
8:04 PM
The Compile archive only caches compilation, not the shared posts.
 
@Xeo :)
 
So it can be erased at any point in time.
 
@TonyTheLion At my work I use the ladies toilet in the attic. That one is rarely used.
 
8:06 PM
And it has good wifi.
 
user1804599
> no member named 'make_function_input_iterator' in namespace 'boost'
 
@Xeo You know, I looked at the sample code, and I'm instantly seeing exponential size explosion here- each pair of iterators requires a copy of the function object (plus I hope you don't need a move-only thingy).
 
user1804599
Well, since the documentation is terrible, we always have ack.
 
Xeo
@DeadMG Of course iterators will cause exponential explosion, duh
The idea behind said iterator is very simple, though
 
8:12 PM
@Xeo Requiring copyability concerns me more.
 
Xeo
You can also keep a ref or move vOv
 
and the other thing I'm seeing that concerns me is that the generator doesn't dictate the size of the range
 
Xeo
std::ref is your friend
 
the calling code does
 
Xeo
Eh, you can decorate it with the usual optional
 
8:16 PM
there's nothing about that on the page
 
user1804599
@StackedCrooked You just secretly wish you were a woman.
 
oh fuck. boost doesn't support MSVC2013RC.
 
@DeadMG btw. how are you? did your visit go well?
 
boost.config doesn't want to recognize it as VC++
 
3 hours ago, by DeadMG
I got a new blood test appointment, I got a medical certificate for the next month, I got a prescription, and more importantly, my doc owned up and finally suggested that I might actually have a serious problem.
 
8:23 PM
Does anybody else hate citations?
 
Xeo
I love them
 
@DeadMG all right, I'll have my fingers crossed for it to be as least serious as possible
 
@Xeo when using, or citing?
 
Xeo
Both!
 
or when being cited?
 
8:24 PM
You like that madness?
 
Xeo
Wait, are we talking about the same thing?
 
Perhaps not.
I am thinking of, say, a references page for some research paper.
And things like this:
Smith, J., & Doe, J. (2008). The sample book. Pittsburgh: BibMe.
 
@Pawnguy7 They're somewhat essential, aren't they?
 
Xeo
@Pawnguy7 Oh
 
@BartoszKP They have uses, yes. But guides for making them seem to be claiming to go up, down, and backwards while eating muffins.
 
8:26 PM
@Pawnguy7 Citations are great primarily when citing your own previous papers...
 
@Pawnguy7 MOTHERFUCKING MUFFINS BITCH
 
That is to say, they all seem to say different things.
 
one of the many things I wish to consume.
 
@JerryCoffin I don't follow.
 
@Pawnguy7 that's true, most top journals have their own format .. ;0
 
8:28 PM
Seems to take me an hour to do just five. And, according to the key, they were wrong.
Yet, I followed the instructions, from the source of the key.
"Publisher's Name in full."
And the answer shortened it.
And it seems like none of them know the proper way to cite electronic resources.
Or, worse yet, print resources found online.
 
@Pawnguy7 If you're citing somebody else's paper, they're pretty much just a PITA. When you're citing your own previous papers, they're still a PITA, but (if you do enough papers) they can make you look/seem like an authority on the subject -- and that's the main reason for publishing most academic papers anyway.
 
Regarding earlier conversation on Smalltalk - it just occured to me that Windows's "My Network Places" icon is even more childish than "Smalltalk". So if I use Windows, I can try Smalltalk as well ;0
 
@JerryCoffin I can see what you mean. I am yet to find a situation where I can cite myself, though.
Quite serious here, citing has taken nearly as long as writing the thing in the first place.
 
@Pawnguy7 Comes with age (and lots of previous papers). The other part is to be sure your titles are fairly generic so citing them can seem halfway reasonable, almost regardless of the subject of your current paper.
 
user1804599
Today is a wonderful day.
 
user1804599
8:35 PM
Just wonderful.
 
user1804599
I learned a lot.
 
@Pawnguy7 Keep the citations in a uniform format in a database, and write a small report generator to produce them in the desired format for a particular publication (journal, compendium, etc.)
 
Not a bad idea.
I think there are generators, actually.
Input stuff with form elements, etc.
Goes to show what a pain it is.
I am not going to be an English major, I can tell you that.
 
I have everything in bib files, and just use appropriate bibliography style.
 
user1804599
s/bib/boob/
 
8:46 PM
@BartoszKP bib files?
 
@Pawnguy7 LaTeX uses them to generate documents
@Pawnguy7 don't you use LaTeX? ;0
 
Never have, no.
 
@Pawnguy7 Consider using it. You won't have to worry about putting everything in the right format, you just download the appropriate style file
 
Ell
LaTeX is a pain to use :/
 
8:49 PM
One Chrome freeze later I am back.
 
@Pawnguy7 Of course, you will have to worry about compiling the document N-times in a row and about stupid unclear error messages in exchange
 
Link to messages, or I'll bring the gif back
 
However it's still worth it I suppose
 
@CatPlusPlus hm?
 
@Ell Yes, LaTeX is ugly as shit. But I think it's still the best option...
@CatPlusPlus sorry, I'm constantly forgetting about it : ) However, I'm curious about this gif
 
8:56 PM
not THE GIF
 
Even more curious now ;0
 
> Was looking to get into contact with you regarding a developer opportunity with a Leading International Hedge Fund based in London, they are looking for someone with your skillset to join their development team.
Hmmmm
I don't somehow think I would qualify. Hahah
 
hmm
 
@TonyTheLion You are working in the domain, right
 
maybe it's time that I re-evaluated desktop headphones
I've been buying the same model for seven years.
 
8:59 PM
@sehe I am. But only just recently.
 

« first day (1094 days earlier)      last day (3846 days later) »