« first day (1406 days earlier)      last day (3535 days later) » 

Ell
12:00 AM
can one download the entire room transcript?
 
If you scrape it
 
@Ell why would you want to do that?
 
Ell
@chmod711telkitty idk, just wondering
 
We'd probably try doing that if we had a chat to migrate to
 
Ell
yeah.
which we will have one to migrate to... soon :P
 
12:08 AM
@chmod711telkitty bedtime reading?
 
Ell
srsly long island iced tea best iced tea
 
@Ell recipe plz
 
@Code-Apprentice Speaking of which, my friends told me that she always fell asleep on the first page of her computer science book. If I am not mistaken, she was referring to a data & structures book illustrated in java
 
Ell
@Borgleader vodka, gin, rum, triple sec/cointreau, tequilla, lemon juice, 1 part each. 2 parts simple syrup (sugar water).
wow the lounge went quiet
 
im going to assume everyone is drunk.
 
12:19 AM
@Ell i sort of assumed a long island iced tea would involve... yknow... tea
i guess you covered it with teaquilla ;)
 
Ell
@Borgleader Nope :P
 
/cc @ThePhD
 
Ell
@Borgleader ahh painful :p
 
Who would ruin tea with alcohol
 
alcoholics?
although i guess in their case it would be ruining alcohol with tea
 
Ell
12:29 AM
man I'm pretty spaced out now
on alcohol
srsly you can't even tell that this drink is alcoholic by the taste
 
you and your juvenile liquors
 
Ell
MAn
damnit.
How do I put "a splash of" as an amount in a recipe
 
You start typing "a spl" and the rest is easy
 
Ell
I mean, on my recipes I just have a parts section
so it's 1 part rum or wutnut
but a splash
wtf. 2ambiguous4me
I'll just have an amounts part.
man
I'm manually doing web scraping
how c00l am I
 
if you have to do it by hand, not cool enough
 
12:45 AM
use python
re.findall + urllib2 = easy scaping
 
Ahaha urllib is terrible don't use urllib for anything
Also regex :cripes:
requests and BeautifulSoup
 
yes
regex and urllib
 
Don't use regex
 
I'll use whatever I want
 
(re is also kinda bad at Unicode)
 
12:47 AM
@CatPlusPlus you're beautiful
 
Ell
I'm used to decent scraping with ruby
but I'm okay doing it by hand
 
haven't had an issue with re and unicode for webscraping.
I'm not gonna use BeautifulSoup for scraping quickly when regex and urllib does the trick just fine.
 
Yes yes.
Whatever.
 
Ell
web scraping is usually 1 time only so it can afford to be terrible
 
12:50 AM
Temporary solutions are the most permanent ones (also you're all terrible for using broken tools that are harder to use than the ones built for this shit jesus christ)
urllib2 is cumbersome and doesn't do any TLS validation
requests is one-liner that Just Works
Crafting regex for HTML is the most :cripes: thing ever
BS supports CSS selectors and searching by tag name/attributes for easy navigation around the tree
But yeah do your quick solution in a shittier way
 
I have and I will.
 
You're terrible
 
Ell
I use xpath because css selectors aren't as poweful yet iirc
 
No.
I'm not terrible.
 
terriiible
 
12:54 AM
You're being a child.
 
Esp that you try to give people advice that harder to use broken tools are somehow better suited for the task
Fucking programmers.txt
 
I'm not going to argue about the topic too much
But you should really look at your character for a second there.
 
Ell
I'm spaced out anyhow
I'm tipsy + listening to massive attack
 
What character
 
Do some self-reflection every once in a while. It's good for you.
 
12:56 AM
'.' is a nice character
Fuck you I'll call out anyone giving people terrible advice about programming or otherwise
Ugh
 
Tsk.
 
Ell
hmm maybe I will scrape
 
If we keep on giving newblets bad advices on C++ programming here, eventually we will have less newblets asking homework questions on this chat
 
homework questions. Ha! never seen that here before.
 
because you are relatively new
 
Ell
1:00 AM
lol
 
@chmod711telkitty then I should log on more often
 
Ell
idk if that's srs or not
 
1:20 AM
This semester I'm going to lecture to my introductory c++ students about lambdas, inline namespaces and sfinae, just to give you guys some serious culling to do.
No, I jest.
 
How long have you been teaching, @CaptainGiraffe?
 
I'm actually quite surprised how few of my students are coming here. Not to chat but to SO.
 
@CaptainGiraffe are you tying to make them cry?
 
17 years
I'm trying to, quite successfully I might add, to make them realize that c++ is a great tool to learn different paradigms. c++-> java is easy. java -> c++ is quite difficult.
 
@CaptainGiraffe I agree.
 
1:25 AM
c++-> javascript needs another few lectures =)
 
I definitely found learning Java quite easy after already knowing some C++.
 
Ell
ahh my eyes
 
Java Java Java
 
Mumble has been deployed. It has channels and all. Owners should register themselves and then ping me for kick/ban rights.
3
fyi
 
Ell
ooh
 
1:29 AM
list of channels
 
Ell
what is address?
 
loungecpp.net default port
What else
 
joining in now
after this download is done
 
Ell
1:32 AM
@CatPlusPlus Night night cat, thanks for setting mumble up
 
1:51 AM
i can't enter
or maybe no one is on mumble?
nvm
 
@Ell Did you know about inline namespaces? I did not.
Sometimes I hate this crap. I have better things to do. And then I come back and see, this is quite neat code.
 
@CatPlusPlus omg I followed it, omg omg omg
 
2:30 AM
 
> I don't have the strangest coding skills but I have done a pretty good amount in c++.
I think he mistyped a letter there.
 
2 you mean ...
 
@StackedCrooked The irony.
 
2:54 AM
I have pretty strange coding skills myself.
 
user3010322
3:07 AM
Just. Ugh. ChristSo resharper just ordered the fucking layout of my type.
 
user3010322
When it ran its helpful reformatter on all my structs and classes.
 
user3010322
So now all my rendering is fucked because all my vertex types have had their types reorderedin crapabetical order.
 
Standard library maintainers would love that.
 
Xeo
@ThePhD wait. why is your rendering broken when the order of your class members changes?
Don't tell me your serialisation was about that
serialising vertices.
 
user3010322
Vertices are dumped to an array and sent to the graphics card.
 
user3010322
3:12 AM
I'm nto going to fuckign reorder before putting my vertices in the graphics card.
 
user3010322
That's asinine.
 
user3010322
It reordered the class layout and the declaration was based on teh original layout befor eit got reordered.
 
Was shocked for a time.
> Torvald’s report out on Parallelism and Concurrency is here.
So chat message reordering...
The thought of Linus Torvalds in a C++ committee meeting...
> The other folks in the room that have been experimenting with modules, Doug Gregor and Daveed Vandevoorde, noted that most of the proposal was very similar to their systems, and it was generally agreed that the three of them should get together and work out a common proposal.
Thank God.
 
@MarkGarcia ?
 
Sorry.
I like these redhat committee reports.
 
3:25 AM
> The File System public draft (PDTS) had received a number of National Body (NB) comments which needed to be resolved and in addition there were a number of issues identified by Microsoft’s implementation of the spec. With the author of the original Boost implementation and the Microsoft one present, as well as a number of people familiar with the POSIX file-related APIs, we were able to resolve all the issues one way or another and the updated draft is now ready for publication as an ISO TS.
cool
> Please coordinate with the networking study group to make sure
that the pathname grammar works together with the URI grammar
(pathnames should be a subset of URIs).
wait what..
I didn't know the comments were public.
That's pretty cool.
 
user3010322
@Rapptz That's not confusing.
 
That's not what I meant
std::filesystem::path shouldn't be used for URIs
(this got accepted)
 
user3010322
A URI should encompass the syntax of a filesystem::path, IIRC.
 
Mostly to prevent incompatibilities with special character handling, I think.
 
user3010322
I can't fucking find
 
user3010322
3:31 AM
the option that reorders my member names for a class in ReSharper
 
user3010322
I need it to stop doing that. It's really fucking up everything.
 
user3010322
@Borgleader That was painful, as @Ell said. Horrible.
 
I want std::bind_member. Basically std::bind which only binds this. Or std::bind_this.
 
std::mem_fn
 
Hmm...
 
user3010322
3:38 AM
Hm.
 
user3010322
In C#, is it possible to iterate over the members of a type and get the attribute on each type?
 
user3010322
Because in that case, I can remove the IVertex.VertexDeclaration altogether and just use reflection to walk over the members and generate a proper mapping.
 
user3010322
... Except that won't work entirely, because shaders expect things to be in mostly-memory-order.
 
@Rapptz It doesn't store the object or a reference to it like std::bind does. auto func = std::bind(&my_class::func, this, _1); func();
 
I don't think that works.
 
3:41 AM
std::bind_this(&my_class::func, this); Where my_class::func has several parameters.
@Rapptz The std::bind code above?
 
yes
std::mem_fn(&my_class::func)
then call it with *this as the first parameter!
:p
Wow
VS CTP still shit
 
I don't want to pass the object as the first parameter. coliru.stacked-crooked.com/a/9eaa93ebdf9a32f2
Anyway, I already have an implementation for bind_this stashed here somewhere.
 
this works apparently
namespace gf = gears::functional;
int main() {
    auto func = gf::curry(std::mem_fn(&my_class::func), my_class());
    std::cout << func(42);
}
So I guess that works with std::bind too
 
std::bind is more generic.
I smiled at gf. :)
 
gf::curry removes the need to do _1 etc.
otherwise it's (nearly) the same thing
it doesn't implement full INVOKE though it probably should
> Binary literals, sure, that's tiny. But ask any C++ front-end compiler dev, and they'll tell you that constexpr is one of the most difficult features in the language to implement.
 
3:52 AM
@Rapptz That's what I want with bind_this, but specific to binding member functions/objects.
 
you can steal the source
it's on github
it's more function application though
 
I'll just find my implementation (which I've painstakingly made to work in MSVC).
 
rip
I just realised
it'll be really easy to use full INVOKE semantics
I already have invoke that implements it
just need to replace the old shoddy one with the newer one
 
Ugh, today's kids are forgetting the old-fashioned art of absentmindedly reading the same half-page of a book over and over and then letting your attention wander and picking up another book.
5
 
4:04 AM
@Feeds my_life_in_a_nutshell.png
:(
 
Though it's really borderline UB as bind placeholders magically may not be of different types and whose types may not really be instantiable.
I wonder if the const and non-const versions can be made into one.
Ugh, this internet connection...
 
Xeo
@MarkGarcia wtf
what is that giant hacky thing
 
@Xeo Haha. It's simple really. There's just lots of duplication with the const and non-const versions and the "placeholder type generation". It could use some code makeover though.
 
Xeo
No, I mean, what is that used for?
I haven't followed the discussion
just saw the Coliru link
 
auto func = bind_object(&test::func, test()); instead of auto func = std::bind(&test::func, test(), _1, _2, _3);.
 
Xeo
4:19 AM
... wow
all that code for that?
6
A: How to implement an easy_bind() that automagically inserts implied placeholders?

XeoWith the indices trick and the ability to tell std::bind about your own placeholder types, here's what I came up with: #include <functional> #include <type_traits> #include <utility> template<int I> struct placeholder{}; namespace std{ template<int I> struct is_placeholder< ::placeholder<I>> :...

 
It's basically just a placeholder generator.
 
Xeo
easily adapted to member functions / objects instead of relying on std::function
 
@Xeo Wow. I haven't known of that "telling std::bind of your placeholder" thing.
@Xeo I don't rely on std::function.
 
Xeo
@MarkGarcia My code does
to get a signature
but it's easily adapted to whatever
 
If I'll rewrite it with std::is_placeholder then those DEFINE_INDEX_FOR_BIND_PLACEHOLDER would easily go away. Nice. Thanks.
 
Xeo
4:23 AM
you can just take the code I have in my answer, and duplicate some of the functions with R (C::*)(Args...)
I have a more general version lying around somewhere, which doesn't necessarily rely on std::function
 
@Xeo meh
 
@Xeo Yeah, getting the function signature sucks when you consider const and volatile.
 
Xeo
@MarkGarcia std::remove_cv is supposed to work on function types, IIRC.
 
And ref qualifiers.
 
Xeo
the annoying part is ref-qualifiers, which I don't think std::remove_reference is intended to remove
@Rapptz ?
 
4:25 AM
it's 'meh'.
 
Xeo
in what way?
 
std::function in a non-deducible context
 
Xeo
7 mins ago, by Xeo
easily adapted to member functions / objects instead of relying on std::function
 
but its correct answer — Guru 14 secs ago
 
Xeo
also to just take a signature
 
4:27 AM
^^ lol, nuke it!
 
member functions with the signature causes a lot of repetition
R T::* should be enough but then you use information
it all goes downhill from there really
also other callables, etc.
meh
 
Xeo
@Rapptz general callables are impossible with std::bind and no signature given.
 
not what I meant by 'general'.
wait
I didn't even say 'general'.
What are you talking about?
 
Xeo
Wait, what callables are you talking about then?
 
regular functions
 
Xeo
4:31 AM
Okay, I'll admit that the number of overloads for the interface function might get quite annoying
 
not so easy_bind now :v
I like the indices and placeholder trick though
lol
test.cpp:16: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for second:
5
a mini-rant in an error message?!
 
lol
 
Xeo
@Rapptz Not a rant, just an explanation, I'd say :P
 
it sounds like gcc-chan is angry
this error doesn't exist anymore apparently
just tried with a more modern compiler
clang and gcc accept it.
 
Xeo
prolly cause the standard got fixed
 
4:39 AM
yeah the question is from 2010
I thought it was funny though
 
user3010322
@Rapptz It's way ezpz.
 
5:05 AM
@Rapptz Where did you find that?
 
23
Q: Why is this ambiguity here?

Kirill V. LyadvinskyConsider I have the following minimal code: #include <boost/type_traits.hpp> template<typename ptr_t> struct TData { typedef typename boost::remove_extent<ptr_t>::type value_type; ptr_t data; value_type & operator [] ( size_t id ) { return data[id]; } operator ptr_t & () { retu...

 
lol
 
 
2 hours later…
6:56 AM
Wink.
Wink wink.
ROOM IS DEAD MODS ASLEEP POST PONIES!!!
 
Go cure your hangover.
 
@r.m I am going to get up to immediately be on my way to the next hangover :F
 
Ugh.
 
7:13 AM
@BartekBanachewicz Why is there Twilight on my screen.
 
user3010322
@melak47 @Borgleader Do you two have your OpenVG/DirectVG implementations somewhere?
 
Coliru really needs a new VPS :v
 
potatoes are the second popular thing on this chat after cats
 
7:39 AM
@Rapptz and redundency
 
Coliru Cloud™
 
¬_¬ I hate how this crappy work computer has outlook and chrome open, and is already struggling to function
 
7:59 AM
@BartekBanachewicz wank wank. ftfy.
 
-4
Q: why is output of the program other than 0?

tattwamasi amrutam#include <iostream> using namespace std; int main() { int a = 60; int b = 25; int loop_count = 0; for(loop_count = 0; a++ && b--; loop_count++) { // empty loop body } cout << loop_count << endl; return 0; } The question is to find the output of the...

Why would anyone answer this shit?
 
close and delete. lol
 
someone upvoted the answers!
 
8:29 AM
tsk
 
I sneezed
 
@Puppy follow through?
 
20
Q: Java `final` method: what promises it?

towiIn a Java class a method can be defined to be final, to mark that this method may not be overridden: public class Thingy { public Thingy() { ... } public int operationA() {...} /** this method does @return That and is final. */ public final int getThat() { ...} } That's clear, ...

 
what
 
A Java question tagged .. what
 
8:31 AM
lol
 
I can't remove the tag though
an answer actually answers C++11
 
It looks like the question legitimately uses and . What is the world coming to?
 
not really.
it's two different questions, or more.
 
it was more like a senseless side question..
I'm not even sure why he bothered tagging it
 
"What's the contract of a final method in Java?" and "What's the contract of a final method in C++11?".
 
8:36 AM
@Puppy indeed
 
Oh cool.
A mod manually did a better synonym, i.e. a merge with .
3
Q: Bug with C++14 "All time Questions Asked"

TheolodisIf you take a look at the overview of the C++14 Questions that have been asked so far, you are told that the count is around 30, while on the tag main page I can see 11 pages with a total of at least 300 QuestionsÂą. I think that this is related to the deletion of the c++1y tag, that has now beco...

 
@Mysticial No it doesn't. That's a different question.
 
I'm not sure why it doesn't merge by default.
Sounds like shitty behaviour.
 
I hope energy drinks are healthier than coffee, because I've sure been having one per morning for three weeks already
 
8:51 AM
I'm gonna go with... no...
 
Definite no.
 
it's tastier and quicker to wake me up though
and it's ice cold
 
Why don't you just lay off the caffeine and let time do its thing?
 
I feel better after a drink regardless of how much I sleep
maybe I'm addicted or sth
 
8:55 AM
Probably.
 

« first day (1406 days earlier)      last day (3535 days later) »