« first day (1435 days earlier)      last day (3516 days later) » 

9:01 PM
@sehe Link is broken or sth
 
It's not a link.
 
user3010322
... Huh.
 
any good way to write a logger class/func that i can use all over my code ?
 
user3010322
All these are const.
 
user3010322
I can't pass a const LOGFONT to the GDI functions....
 
user3010322
9:04 PM
.... <___>
 
user3010322
Yeah, I'm going to just poll the base directories.
 
user3010322
Fuck the police.
 
@Bilal no.
 
user784668
@ThePhD so don't
 
user3010322
set is ordered by strict-weak-ordering with <, right?
 
9:06 PM
yes
 
user3010322
I wonder if there's a sorted<> template?
 
@ThePhD What would that be? A class template?
 
@Puppy i'm just sick of std::cout all over the code.
 
user3010322
Yeah.
 
user3010322
std::sorted<std::vector>
 
9:07 PM
@Bilal std::cout sucks.
 
@Puppy maybe something like LOG("info") would be good
 
that sucks tremendously.
 
why ?
 
user3010322
push and emplace place things according to the second template parameter, I guess.
 
user3010322
std::sorted<std::vector<int>, std::less<>>
 
user3010322
9:08 PM
That looks like it'd be fun. :D
 
user784668
flat_set?
 
user3010322
Yeah, something like that.
 
user3010322
Kinky.
 
user3010322
Blergh.
 
user3010322
9:10 PM
Now I'm wishing for C#'s params String[] extra in C++.
 
user3010322
Why can't all the good ideas of most languages just be rolled into one fantastic language. :(
 
user1804599
Because they conflict with each other!
 
std::priority_queue could have been that perfect container.
or well, something similar to it except better
 
user1804599
I should try canned bread.
 
user784668
@ThePhD Haskell
 
user1804599
9:13 PM
Also Scala!
 
user784668
'cept there's no dependent typing :(
 
user1804599
Haskell has no varargs.
 
in Wide I'm trying to avoid having to add varags to the language
 
user1804599
Except with ugly type class hacks but those are ugly and hacks and ugly hacks.
 
user784668
@rightfold or existential quantification
 
user1804599
9:14 PM
Ugly hacks!
 
user1804599
Obscure!
 
Ell
@Puppy why?
 
user784668
Haskell sucks, it doesn't even have variables.
 
Ell
You'll want it eventually
 
I kinda disagree.
 
user1804599
9:15 PM
Oh wow, apparently canned bread actually exists.
 
most of the uses of varargs I've seen could be replaced with lambdas.
 
Ell
what about tuple? Isn't that a super simple example and one that you want?
unless I misunderstand
 
yeah, except that I have a language-supported tuple.
 
user784668
@rightfold well it's Haskell after all
 
user1804599
Doesn't mean you should write bad code in it.
 
user784668
9:16 PM
bad code is good code
 
Ell
@Puppy what about variant?
what about something else that you might not have thought about?
 
user784668
war is peace
 
definitely thinking about language-supporting variant
 
user784668
yada yada
 
but
 
Ell
9:17 PM
Isn't it better to put in the language support for variadics and have most things in library instead of supporting anything variadic in the language itsself
 
user1804599
@Fanael ...
 
I don't see why variant really needs variadics.
it needs a variable-length structure containing types.
that's not really the same thing.
for example, you could pass a tuple of types.
 
user1804599
Erlang has no variadics. They just explicitly pass lists instead.
 
user1804599
Works perfectly fine.
 
Ell
@Puppy I guess you could do anything variadic with tuples then
 
9:19 PM
@Puppy so what do you suggest ?
 
user784668
@rightfold dynamic typing
 
user1804599
@Fanael Completely unrelated.
 
@ThePhD You mean like std::initializer_list<std::string>?
 
user1804599
You can use explicit lists instead of varargs in statically typed languages as well. Look: def f(explicitList: List[String]) = ???; f(List("A", "B", "C")).
 
@Ell Well, not really. There are some parallels between language support for tuples and variadics, but they're not totally equivalent.
 
@R.MartinhoFernandes I tried to compile the version of ogonek i had on my computer (from a long time ago), using clang-cl. Alas I could not.
I am a sad panda
 
for example, right now I'm not sure what unpacking mechanism I'm going to use, but you probably can't do like f(tup) { g(unpack(tup)); }.
which you can with variadics.
 
user784668
@rightfold Works only when you don't need heterogeneous varargs.
 
what I really realized is that such functionality is useless compared to binding to g at the call site and then just passing g in.
 
user1804599
@Fanael Heterogenous lists. vOv
 
9:23 PM
@LightnessRacesinOrbit Thanks for the tips. I was afk. Will test them later. testcode
 
user784668
8 mins ago, by Fanael
@rightfold or existential quantification
 
@Fanael If the varargs are heterogenous then what are you usefully going to do with them?
 
user1804599
def f[L <: HList](explicitList: L) = ???; f(1 :: "2" :: HNil)
 
user1804599
Or def f(explicitList: List[Any]) = ???; f(List(1, "2")).
 
user1804599
But with the former you get more fine-grained control over the return type.
 
9:26 PM
@Loopunroller <grin/>
 
user1804599
And allow forwarding of arguments with compile-time checks.
 
@sehe Doesn't there have to be white space between the forward slash and the tag-name?
 
user784668
@Loopunroller no
 
no.
 
righty-right
 
user784668
9:27 PM
@Loopunroller yes
 
user784668
@Loopunroller depends
 
For the br-Tag?
 
user1804599
In HTML /> is equivalent to >.
 
user1804599
<br/> is the same as <br>.
 
user784668
9:27 PM
If it's a made up language where there always has to be a space between "n" and "/", then yes.
 
user1804599
In XML, <x/> is equivalent to <x></x>.
 
@ThePhD It can! ^
 
user3010322
@R.MartinhoFernandes That would work?
 
@ThePhD That's what it's for.
 
...
 
user3010322
9:28 PM
Hm. I'm not sure why my brain didn't let me make that association.
 
user3010322
I'd need the braces though, yes?
 
brace yourself
 
user1804599
{yourself}
 
Easy to wrap with variadics
 
user1804599
variotic
 
user3010322
9:30 PM
I wonder if I should store everything in a std::vector or if I can just store the std::initializer_list...
 
user3010322
I can probably just store the std::initializer list.
 
whether
and don't store an initializer list what the fuck is wrong with you
 
user3010322
u.u
 
user3010322
I don't know!
 
don't store init lists
they are non-owning references to stack-allocated implicitly compiler generated temporary arrays.
they have super short lifetimes
 
9:33 PM
@Puppy but they don't sport move semantics
 
user1804599
I'd just take a vector and be done with it.
 
yeah, not being able to move from init lists is shit.
 
8.5.4/5 and 8.5.4./6 in C++11
 
@Puppy std::move (range)?
 
the elements are const.
 
9:34 PM
Not the same of course
Oh
Yeah
 
(I consider initializer lists rather limited facilitators of uniform initialization - for containers. As such I'd say it's syntactic sugar for pythonistas, not for when control is required)
@Loopunroller it degrades to copy, since the elements aren't rvalues
 
Ell
@Puppy why would you want to move from them?
 
@sehe the elements are neither lvalues nor rvalues nor any other values
 
Ell
don't they just exist at compile time?
 
9:36 PM
don't confuse type for value category
 
no.
 
@Ell How would that work?
 
2 mins ago, by sehe
@rightfold http://coliru.stacked-crooked.com/a/739b6b7c217e4246 no braces
/cc @ThePhD (mistargeted the reply)
 
the elements in the list are compiler-generated temporaries.
 
@LightnessRacesinOrbit Don't try to play the language lawyer.
 
9:36 PM
@Loopunroller I'm not "trying" - I'm doing it.
 
^
 
@sehe I think we're not talking about the same thing, are we?
 
who's we here?
 
Ell
language lawyers are great
I wish I was one
 
user3010322
Why doesn't std::initializer_list have a .data()? :c
 
9:37 PM
language lawyers are necessary. at least with an aspiring language standard
 
@sehe You and me.
@LightnessRacesinOrbit No.
 
@ThePhD You mean &*list.begin()?
 
@Loopunroller i think we do. You can't move from initializer lists. Period
 
user3010322
9:38 PM
@Puppy Who the hell wants to write that. :l
 
user1804599
@Mysticial 404
 
@ThePhD C++ programmers.
 
@sehe Yeah, but talking about value categories of members, not expressions (involving members), doesn't make any sense.
 
> Or if you prefer 'softer' language: a large portion of the population of Stack Overflow StackOverflow is made up of borderline megalomaniacs with anti-social personality disorders
EPIC
 
user1804599
I think I have personality disorders.
 
9:39 PM
@rightfold how far apart are they?
 
user1804599
@sehe lol
 
user1804599
@sehe who?
 
user1804599
Oh lol.
 
the personalities, of course
@rightfold wee u!
 
user1804599
All my myselfs have personality disorders.
 
user1804599
9:40 PM
Not sure how far apart they are.
 
@Loopunroller What do you mean "no"?
 
May 14 '12 at 9:45, by sehe
^ So true. @RadekdaknokSlupik @daknok @daknok_t @WTP'-- @class_daknok_t please get your MPD treated?
@rightfold hamming distance or lehvenstein?
 
user1804599
I need hormone replacement drugs.
 
@LightnessRacesinOrbit You just quote a paragraphs. Where do you discuss the fine and subtle parts of the standard? Where do you derive conclusions based on non-explicit statements?
 
user1804599
DRUUGGSSSSSS MOAR MOAR DRUGGS
 
9:41 PM
@Loopunroller What the fuck are you going on about?
 
user1804599
Unrolling loops.
 
@Loopunroller do we need people to prove themselves or are you just subtly lighting a raging fire here?
 
@LightnessRacesinOrbit Everyone can quote something, that's not making you a language lawyer.
 
@Loopunroller You have to find and understand the quote first.
 
user1804599
 
user1804599
9:42 PM
whaha
 
You think real-world lawyers just randomly make up pieces of law to present in court?
 
@LightnessRacesinOrbit Not enough.
 
@Loopunroller Can't tell whether you're trolling or just monumentally retarded.
 
@LightnessRacesinOrbit Erm. Actually, sometimes one does wonder :)
@LightnessRacesinOrbit Why can't it be both?
 
@sehe Because rabbits
 
9:44 PM
@LightnessRacesinOrbit I was gonna ask you the same thing
 
user1804599
Thank God Java generics are erased.
 
@Loopunroller Why? See here:
Oct 31 '13 at 10:12, by sehe
Don't let the lobster hear you
 
user1804599
I want sausage.
 
Ell
@Puppy idk I prefer using data
 
9:46 PM
sure, but it's hardly a mandatory function
 
Ell
I agree
 
user1804599
Then write a free function data.
 
user1804599
Or extension method oh wait C++ haha.
 
Ell
@rightfold koenig lookup tho
or however you spell it :P
 
everybody calls it ADL now.
 
9:47 PM
> This episode includes the first instance of Cliff asking his signature question about his patients' contractions: "How far apart are they?"
 
@sehe polyheresy
 
user1804599
polymorphism
 
@Puppy Andrew's Devilish Lobotomy
@rightfold priapism
 
user1804599
prism
 
user1804599
It's the NSA WATCH OUT!11
 
9:49 PM
error: unknown type name 'char32_t' wtf clang-cl
 
user1804599
:tinfoil:
 
@LightnessRacesinOrbit "Finding the quote" Everyone who isn't totally stupid can search inside a document or look in the contents. It's not fucking hard. Same applies to understanding it. You know, read it and find the connection to the initial problem. That said and following your logic everyone who can open the standard document is a language lawyer which is obviously bullshit. Idk how that conclusion is a sign of monumental retardation
 
user1804599
> I just drank some WKD with ice in it. It was wicked.
 
I'd expect an (in)appropriate one-box for en.wikipedia.org/wiki/Priapism
 
user1804599
Priapism (/ˈpraɪəpɪzəm/) is a potentially painful medical condition in which the erect penis does not return to its flaccid state, despite the absence of both physical and psychological stimulation, within four hours. Priapism is considered a medical emergency, which should receive proper treatment by a qualified medical practitioner. There are two types of priapism: low-flow and high-flow; 80% to 90% of clinically presented priapisms are low flow disorders. Low-flow involves the blood not adequately returning to the body from the penis. High-flow involves a short-circuit of the vascular system...
 
user1804599
9:50 PM
Yup.
 
good job
 
@Loopunroller If you think "everyone who isn't totally stupid can search inside" the C++ standard and find the appropriate quote for any arbitrary question, then that's just further evidence that you don't have the faintest clue what you're talking about.
Parsing the C++ standard is not always easy.
 
@LightnessRacesinOrbit Are you seriously trying to make that (your) "work" sound hard and sophisticated? It's not.
 
Your continued arguing against me with your stupid constructions is the sign of "monumental retardation" that you're looking for. BTW please do not use the term "retard" as it is highly offensive. Thanks.
ok we're going with conclusion (a) here
 
@LightnessRacesinOrbit Okay, so you we're trolling the whole time. Should've known.
 
9:52 PM
@Loopunroller What? No, I was not.
what a strange little man
 
@LightnessRacesinOrbit come come don't be childish. And, maybe it's better to do the plonk if you announce it, 'cause it appears to not be working
 
@LightnessRacesinOrbit ... you used the term retard in "monumental **retard**ation" and accuse me of using it!? What the fuck man?
 
@Loopunroller cough
 
@sehe I was joking about the plonking. I don't actually plonk anyone
 
user1804599
@VladfromMoscow Why does "Vlad from Moscow" have three letters 'o'?:) — rightfold just now
 
9:55 PM
Or do i not own the privilegies to use offensive words in this Lounge? :p
 
@LightnessRacesinOrbit I was rolling on the floor laughing
 
@Loopunroller You just said it again; would you stop that? Otherwise I will have to begin flagging your posts for moderator attention. Try to talk like a grown-up here as this is a professional website. Thanks.
 
Fuckshittles. Party in club music room. Fucking disco. Fucking YMCA etc. Fuck.
 
@sehe You really should see a Doctor about that
@MartinJames Did you travel back to the 1970s or something? Fuck me
 
@Loopunroller You don't
@LightnessRacesinOrbit Actually, one but has to visit the country side of, say, Poland, to go back to discos featuring cassette decks playing the music to be expected
 
9:58 PM
@LightnessRacesinOrbit Let's put it this way: Someone who possesses enough intelligence to search and quote the standard successfully is automatically a language-lawyer?
 
No one claims that. You're trolling.
 
@sehe I didn't imply that. I am not trolling.
 
user1804599
@Xeo TBH I have, but not back then. Definitely would do it again if I had to choose between it and mint chocolate.
 

« first day (1435 days earlier)      last day (3516 days later) »