« first day (918 days earlier)      last day (4039 days later) » 

user142019
Hurray for Perl. while(<>){print join(' ',reverse split)."\n";}
 
@Fanael hmmm that may make sense
 
user142019
Ah fuck it.
 
@Fanael No.
he means "Types which are part of non-header-based APIs".
 
Why are static classes bad?
 
user142019
2:08 PM
They are good (in C#, at least).
 
Well, this is C#, but I notice I do this in C++ to.
 
user142019
C++ has no notion of static classes, though classes with only static members can substitute for that.
 
That is about what I do, yes.
 
user142019
In C++ they are bad and useless because there's namespaces.
 
user142019
In C++ they're only useful if you need template parameters for some reason, e.g. std::numeric_limits.
 
2:09 PM
Do you mean to say, instead of a class, have namespace-global variables and functions, basically?
 
user142019
Well yes.
 
user142019
You usually put "private" stuff in a namespace detail or something.
 
I would think this would be the same, functionally, but why is it better in terms of design?
 
@DeadMG ah, thanks for clarifying
 
@Pawnguy7 No! no global variables.
 
2:12 PM
How would to simulate privateness?
 
@Zoidberg well, when every thing in a class is defined as static, and constructors are private too, what would 'static' keyword do? but yes, name space are the correct solution to such requirements.
 
0
Q: In C++ why does reference to single character of std::string give a number

itsolsI have a string like this: std::string N; I assign a (test) value like this: N = "Ant"; To print the first character, I did this: std::cout << N[0]; But the output is 65 (i.e., the ASCII value) and not the actual letter. So I tried this: putchar(N[0]); Why does it give a number and is...

lolwut
 
user784668
@TonyTheLion what
 
> Like always, the dead had all the answers I was missing. It wasn't that they weren't eager to talk; quite the contrary, the dead had plenty to say and once they started, they would never shut up. Their words would keep you awake at night.
I love dark games.
 
holy fucking shit, it's been another 40 minutes and LLVM/Clang are still building.
 
2:19 PM
@DeadMG yup. :D
 
user784668
@DeadMG Windows?
 
yeah
 
@DeadMG It's gonna be another 40 minutes. :P
 
user784668
Oh.
 
user142019
Windhoos.
 
2:19 PM
it was arduous rebuilding them before, but lacking an SSD is a killer.
 
I should've moved the VM to the SSD for building clang!
 
Een windhoos is een wervelwind (een snel draaiende kolom lucht) die vaak als een trechtervormige slurf onder een onweerswolk zichtbaar is. Vooral in de zomerperiode, maar soms ook in de winter, gaan buien zo nu en dan vergezeld van windhozen. De hoos trekt met de bui mee en kan een spoor van vernielingen achterlaten. Soms bevat de windhoos objecten die tijdens de tocht over het aardoppervlak zijn opgezogen. De zichtbare slurf bestaat net als een wolk uit waterdruppeltjes. De windsnelheden bij een windhoos kunnen zeer lokaal oplopen tot enkele honderden kilometers per uur en de passage van...
quite different
to Windows
 
user784668
In 40 minutes I could probably crosscompile GCC and Clang.
 
user142019
@TonyTheLion It's a Dutch pun. :v
 
its a bad pun
:P
 
2:20 PM
Given an unlimited amount of time, what do you think the limit would be on compiler optimization?
 
user784668
26 secs ago, by Zoidberg
@TonyTheLion It's a Dutch pun. :v
 
user784668
 
user784668
FAST!
 
2:23 PM
Although. Do normal compilers aim for speed or compilation? I mean to say, do they actually consider how long it takes to compile?
 
@Fanael it's not fast. there is a lot of runtime code, including command line parsing
 
user142019
@Pawnguy7 what do you think the reason for -O1 and -O2 and -O3 and -O4 being there is?
 
user142019
The more optimizations you enable, the longer it takes.
 
user784668
@Zoidberg -O11
 
user142019
You can enable them separately.
 
user142019
2:25 PM
@Fanael clang goes to -O4. :x
 
@DomagojPandža OMG! I saw this gif before and didn't even think about Cat
 
user142019
-O4 turns on whole-program optimization by spitting out LLVM bitcode instead of regular object files and using LLVM to link instead of ld.
 
I love the "Fuck this thing in particular"
ahahahah
 
@Zoidberg Is this just considering time-wise, or is this in terms of what optimizations it enables? I consider the two distinct.
 
user1357851
@TonyTheLion He's obssesed with Cat++
 
user142019
2:26 PM
It looks funny when I see my hands moving while I type. I can see the reflection in my screen lightly.
 
user142019
1 min ago, by Zoidberg
The more optimizations you enable, the longer it takes.
 
@Zoidberg your screen sucks
 
@Telkitty "obsessed" is a bit harsh :p
 
@Telkitty Cat Plus Plus is awesome
 
user142019
@Abyx Uh no, not really.
 
user142019
2:27 PM
I haven't set the brightness level all up.
 
user142019
If I put it on 100% I don't see any reflections.
 
Glossy screens are cute.
 
user142019
Glossy screens are awesome.
 
ugh
 
@Zoidberg I am aware. I am saying, I would think that is not time-based (though that is a side effect), but rather based on what or how it tries optimizing, in that, running the same thing and somehow giving it unlimited amount of time might make it faster.
 
user142019
2:28 PM
They prevent people in the train from looking at your screen.
 
@Zoidberg lol
 
@Zoidberg yep, you don't see anything cuz you get blind
 
user142019
Huh?
 
user1357851
@melak47 he has a cat in his profile
 
Xeo
@Pawnguy7 If it had unlimited time, it could possibly simulate all possible inputs to the progam and optimize accordingly.
 
user142019
2:29 PM
FYI, 100% brightness is not the same as the luminosity of a thousand suns.
 
@Telkitty haha
 
Xeo
That's what analysis is all about
 
user142019
But yeah, you over-exaggerate everything so whatever.
 
@DomagojPandža a statment from you please; are you really obsessed with cat++?
 
@Zoidberg I don't
 
user1357851
2:29 PM
@TonyTheLion He's atypical, that's why we are obssesed with him :p
 
How can I have a variadic template that can be instantiated with 1...N template arguments?
 
I love Cat++. He's all cuddly and shit.
 
@Telkitty ohhhh Telkitty
 
user142019
@rubenvb static_assert(sizeof...(…), …) :v or SFINAE :)
 
@DomagojPandža <3
 
2:30 PM
I think he likes you, too!
 
@Xeo Yes. I am asking, if any compilers do this. Or, on the other hand, they basically have a list of //TODO and they are done when they are done.
 
Xeo
@rubenvb How about not making it a single variadic pack, but spilitting it up as T, Ts...?
 
user1357851
@DomagojPandža yes ... until you really try to hug him.
 
@Telkitty Well, I'm all for bromance as long as there isn't too much touching involved.
 
@Xeo I have that. But also one with only T that does the actual work. Maybe I'm thinking about this the wrong way :/
 
user784668
2:32 PM
@rubenvb x:xs
 
@Xeo yep, ... foo(T t, Ts... ts) { foo_impl(t, ts...); } ... foo_impl(Ts...)
 
Xeo
@rubenvb Okay, example please.
 
I want to be able to is_complete a template parameter pack.
 
Xeo
@rubenvb Psst: You can't overload class types
 
@Xeo you talking about the constexpr operator bool?
 
Xeo
2:35 PM
No, about the fact that there are two is_complete classes
 
user142019
Why are type traits not constexpr functions?
 
well duh, that's kind of the problem
@Zoidberg oh I asked that before here.
 
user142019
I know there is an implicit conversion that is constexpr.
 
Xeo
@Zoidberg Passing around the traits themselves
 
Something with trait tagging or whatchamacallit
 
user142019
2:35 PM
But why the structs.
 
user142019
@Xeo oh right. :P
 
user142019
Nice.
 
Xeo
Also, tag dispatching
 
that was it
 
Xeo
on true_type and false_type
 
2:36 PM
I guess maybe are_complete would do too for my problem
 
Xeo
Anyways, I'd actually put the "all of this" and "any of this" extra
and not reimplement it for every trait
Just one any<Traits...> and one all<Traits...>
Then you can just do template<class... Ts> using AllComplete = All<is_complete<Ts>...>;
 
@Telkitty You have something against cats?
 
user142019
Fuck cats.
 
Was that in 101 things to do with a dead cat or 101 more things to do with a dead cat?
oh yeah. 101 more things. page 68.
 
user1357851
@DomagojPandža Oh yeah people who have nicknames like XXXKitty usually hate cats >_<
 
2:45 PM
@Telkitty XXXKitty? sounds hawt.
 
@melak47 Sounds like Cicada a fat bald man in his mother's basement.
 
@Telkitty what does "tel" mean then?
 
user142019
Yay Enlightened badge!
 
user142019
@Abyx inb4 telephone :v
 
@melak47 Uhm, there's a strict policy against gifs in the room. :/
 
2:47 PM
huh? fuck policies
 
finally finished building LLVM and Clang
must be like 2 hours later :(
@Zoidberg There are.
 
user142019
@DomagojPandža It's not a strict policy if there are no room owners around! :>
 
Binmaster strikes.
 
user142019
I figured.
 
user1357851
@Abyx I did Telecommunications Engineering, so it went from TelecommuniCat -> TelCat -> Telkitty
 
2:49 PM
@DeadMG You did use a parallel build system right?
 
Nah, he builds in series.
 
@rubenvb Yep
 
user142019
Do a distributed build.
 
user142019
Buy a giant server farm.
 
@Telkitty btw, do you eat cats in your country?
 
user1357851
2:51 PM
Which country do you think I am from?
 
@Telkitty I don't know, where do annoying people come from?
 
@Telkitty dunno an asian one
 
user142019
@DomagojPandža My home.
 
user1357851
@DomagojPandža your mother's basement?
 
@Telkitty Modern houses don't have basements.
 
user1357851
2:53 PM
Ooh, your mother's garage then
 
"never tried", huh...
 
user142019
@DomagojPandža then where do people hide the kidnapped?
 
@Telkitty You were in my mother's garage? Why didn't she call me to shoot the trespasser? :(
 
Xeo
@rubenvb: Saw my rewrite of the trait?
 
@Zoidberg I don't know, kids usually nap on the couch. Even in beds nowadays.
 
user142019
2:56 PM
lol
 
I nap on the keyboard
 
user142019
I nap in a bed.
 
@Xeo yeah, but I haven't grokked it yet
 
I wouldn't call it rape, your honor. That word is so negatively charged. How about a cuddle with a struggle?
 
user1357851
@DomagojPandža you moved out of your mother's garage? woah, when?
 
2:57 PM
is it an N-parameter is_complete? (with N=1 or more)
 
@Telkitty She kicked me out when she learned I got filthy rich... Killing little annoying asian females who asked annoying questions.
 
user1357851
@DomagojPandža & Cat++ is cuddly, omg
 
Xeo
@rubenvb ya
However, as I said, just make a 1-param is_complete and seperate any and all traits
 
@Xeo I'll keep that in mind, but now I'm trying to fix all my compile errors XD
And thanks, yet again.
I've added you and @Luc to the top of my types.h++ file as co-authors.
 
nvm...
meh, I'm bored =\ programming is no fun anymore ='(
 
3:09 PM
pity that C++ has no overloadable short-circuited conditional operators, I’d need that now
 
0
Q: Forcing an alarm handler to be called every 1 second (in C)

JjangThe main idea of what I'm trying to do: My goal is that alarm_handler will be called every 1 second, despite of other signals (in this case, SIGUSR2). For that, I wrote alarm(1) before pause() statement. But, what is happening in-fact, is that if I recieve SIGUSR2 signal many times, alarm_handl...

if the system isn't realtime, how real it that?
 
user1357851
@DomagojPandža Oo I C, you only can overpower little Asian girls ... so you don't have the power to control a tall athletic one. Shame ...
 
Ell
gah I've forgotten how to do logarithms
 
Why is is_same<T, decltype(T(declval<Args>()...))>() not a bool if is_same has a constexpr operator bool()?
 
@Ell A quantity representing the power to which a fixed number (the base) must be raised to produce a given number.
 
3:14 PM
@Ell log(x) on a calculator
but be careful if log means ln or log_10
 
@rubenvb I don't believe it does. I believe it has an operator integral_constant<...>(), which is not necessarily the same thing.
 
@DeadMG hmm, okay. I think I worked around this by using sizeof instead of a is_same trick.
the types must be complete anyways for that trait.
 
user784668
@rubenvb log(x)/log(b) and now it's a non-issue
 
@rubenvb There's no SFINAE in there, how could it possibly work?
in order for the compiler to even know what is_constructible<T> is, it has to compile the decltype.
 
@DeadMG I'm trying to find a no-op replacement for the noexcept operator, which can be used instead of the sizeof here for the nothrow traits (see yesterday)
 
3:24 PM
So... vector::emplace_back does not return the newly added item. Any other easier ways to get the element that was just created, other than just getting the last element of the vector?
 
@rubenvb Not going to happen.
noexcept(expr) inherently has conditional semantics- it returns a bool. decltype and sizeof don't.
you must use them in a SFINAE context.
 
Xeo
@DeadMG No, it has an operator bool
@rubenvb It is convertible to a bool
But what you wrote there is just an is_same<...>
 
@Nican you mean a reference to the new object?
 
Xeo
@KonradRudolph Why?
 
@bamboon Yes, the reference.
 
3:28 PM
@Xeo I have a “match” type that contains whether a match so far is valid, and at which position to resume matching. And I’d like to write auto result = successful_match(current); return result && successful_match(result.next_group);
And I can write this by overloading explicit operator bool but that way I lose the position information in the result of the expression
 
Xeo
mhm
 
Hm, the only thing that I see, vector::emplace returns an iterator to the new element.
 
Xeo
Yeah, you'll have to lazy that up yourself
and(result, [&]{ return successful_match(result.next_group); }), something like that
 
Eww
That no longer has any real readability advantage over using if …
 
Xeo
:)
 
3:30 PM
Also, and is not the bestest choice for a function name ;)
 
Xeo
I know, I know
 
@Nican yes, you can use that, emplace is to insert what emplace_back is to push_back. But then you can also just call back after emplacing_back.
 
Xeo
@KonradRudolph So wait, what would an overloaded operator&& return?
 
@Xeo Like in Python, have a && b be the same as if a then a else b
… and analogously for a || b
 
How does this look then? haven't tested it big though.
 
3:32 PM
wait, the other way round
 
@sbi Quite possibly, but there were a lot of people there. If you hung around for the standards meeting, then probably :)
 
huh, that A constructor is private
 
Xeo
@rubenvb Your is_constructible also tests is_copy_constructible
@rubenvb overload resolution doesn't care a bit about private
Also, I see no private A constructor
 
@Xeo there's no public: and it's a class.
oh it was empty
sorry
doing two thing at once is not one of my perks
let me keep trying. I'll get this at one point :)
 
Xeo
Fix up the is_constructible though
 
3:36 PM
well yeah, it doesn't work :)
 
Xeo
2 mins ago, by Xeo
@rubenvb Your is_constructible also tests is_copy_constructible
Is what I mean
 
@AndyProwl Superfast bug fix support is a big plus for CATCH after all, I think. ;)
 
@bamboon Thanks!
 
Hmm. Would it make sense to write a proposal for expanding the types of && and ||? Does it break anything?
 
@bamboon Oh, he fixed it already?
 
Xeo
3:37 PM
Or rather, it actually tests is_move_constructible
 
That's awesome
 
I made a fun question
C++ vs Java
 
@AndyProwl yep
 
@Xeo yeah, that's part of "it doesn't work" ;-)
 
:P
The term you're looking for isn't "auto", it's "type inference". There are quite a few questions about type inference in Java, though they mostly refer to generics, so I'm not sure how to find a duplicate... — delnan 1 min ago
I feel evil :D
 
3:37 PM
@Xeo why is that? I see no rvalue refs?
 
@bamboon Perfect, going to download. Thank you for pinging me!
 
0
Q: Is there auto in Java?

Games BrainiacPlease vote to close this question, if one like it has been asked before, I was not able to find a question like this. So, where is the question, is there an auto variable type in Java like you have in C++? An example: for ( auto var : object_array) std::cout << var << std::endl; I know t...

 
Xeo
@rubenvb temporary T - foo(T(...))
 
@Xeo ah yes that would be silly if that didn't move.
 
Xeo
Note that making a copy is a valid implementation for moving :)
(on the class side)
 
3:39 PM
Let's see what the jury says for this one
 
Xeo
operator,(A, true_type) :D
 
@Xeo oh bullocks
I'll just prohibit overloading operator, when using my library.
 
Xeo
lol
 
Or I hide true_type
 
Xeo
operator,(A, T)
 
3:44 PM
any way to specify I want default operator,? I guess not though..
 
Xeo
void
Can't overload operator, with void on either side
 
What are you babbling?
 
Xeo
either decltype(T(...), void(), true_type{}) or decltype(void(T(...)), true_type{})
 
That's some fucked up shit XD
 
user1357851
@DomagojPandža Why suddenly gone all quiet? Did mommy come down to the garage and confisticate your keyboard?
 
3:54 PM
@Telkitty Telkitty, go annoy someone else. I'm enjoying Xeo's generic stuff.
 
Xeo
@rubenvb Hey, it works.
 
Hm, why does the C++14 not allow the syntax [](x) x; and instead mandates [](auto x) { return x; }? Hadn’t that been discussed to death on cpp-next?
 
Xeo
unnamed parameters, [](int)x; - is it []{ return (int)x; } or [](int){ return x; }
 
ah damn, yes, I remember that. Still, no reason to mandate auto in parameter list
 
Xeo
> unnamed parameters
 
4:00 PM
Also, not really an ambiguity if you make empty argument list () mandatory
 
Xeo
@KonradRudolph But they're currently not - breaking change
Also, I'm really glad the expression-only syntax isn't in
 
@Xeo How is that a problem in [](x) { return x; }?
@Xeo Why (apart from the ambiguity)?
 
Xeo
?
DECIDE! xD
 
:p finished deciding now
 
Xeo
@KonradRudolph See the second paragraph under "impact on the Standard" here
 
4:03 PM
thanks
a well, damn. Somehow this feels like a missed opportunity. How I wish we could just break compatibility
Python 3 ftw (not that anybody is using that …)
 
@Xeo You should submit a revised paper sometime in the next couple of months. You really want to get it in Chicago.
 
Xeo
@DeadMG I already sent the revised paper to Clark Nelson
Who actually wanted to talk to you during the meeting about that
 
I met Clark
 
@Xeo Hey, it's C++ :P
 
but EWG didn't seem to get the memo that they had missed your paper
 
Xeo
4:06 PM
@KonradRudolph Even if we could break compatibility, I still wouldn't want the expression-only syntax because it would fuck over my proposal :P
 
I found Cat++'s house
 
Xeo
@DeadMG I hope I can somehow manage to be in Chicago :s
 
@Xeo Yeah, I wasn’t referring to this specific case in isolation, more on getting the whole package – dropping current function declaration syntax (along with lambdas) altogether and redesign them under a uniform syntactic interface
 
@Xeo Didn't you say you lived close to Chicago?
4
 
Xeo
4:08 PM
@DeadMG Huh?
Remember, I'm from Germany?
 
oh, I musta been confused with someone else
I hope that I also will get to go to Chicago
 
ITT Xeo is American.
 
Deus Ex: Pony Revolution
 
Awwwww yeah.
@R.MartinhoFernandes Get it?
 
Whos the first guy (on the left) ?
 
4:12 PM
When he's at school, @Mysticial is at least sort of close to Chicago (something like a 2 1/2 hour drive, IIRC). I do seem to recall somebody else saying they were (probably) closer than that, but I can't remember who it was now.
 
@Borgleader Looks like Bishop from Aliens.
 
ah that makes sense
 
Anyway. Mareep is an Electric type.
So they're electric sheeps.
 
guys
How do you accept a function object as a parameter so that the caller can directly use lambdas?
 
template<class Func> void whatev(Func f)?
 
4:17 PM
@EtiennedeMartel dat creativity
 
I almost crapped my pants at that pun.
 
@EtiennedeMartel That would also accept strings, integers, and apple pies
 
Problem is, the title of the strip gives it right away: Do Electric Sheep Dream of Androids?
@kbok Depends on what whatev does with f.
Do strings, integers and apple pies have an overloaded operator()? Don't think so.
 
@EtiennedeMartel you might underestimate apple pies.
 
I can't speak for apple pies
 
4:19 PM
In my world, apple pies aren't callable.
They don't even have a phone number.
2
 
Xeo
Hm. I just noticed that the lone x in int x = 5; x; is also an id-expression.
 
@EtiennedeMartel haha, nice played.
 
Xeo
I think I'll have to somehow restrict the identifier parts of id-expression
Since the X in struct X is also an identifier
Although that might be fun, allowing you to create make functions through []class-name
The question is then, how that interacts with []std::vector, which is a valid identifier, but not a class-type.
So many questions x_x
 
@EtiennedeMartel lol
 
user142019
4:24 PM
@EtiennedeMartel Functions don't have phone numbers either, yet they're callable.
 
@Zoidberg OH SHIT TWILIGHT SPARKLE
 
user142019
lol
 
I'm impressed.
 
user142019
Oké!
 
i can see it already, 6 months from now, everyone will have pony avatars
 
Xeo
4:27 PM
lol (10k+)
 
@Borgleader It's the virus.
 
@Borgleader nope
 
@Xeo 10k+?!
 
@Xeo How is that funny and/or 10k+?
 
Xeo
Woops
wrong link
There we go
 
4:29 PM
Its deleted...
 
That proposal was interesting. Sounds much like your fancy :)
@Borgleader "10k+" ....
 
Xeo
@sehe Twist: I'm the author.
 
@sehe oh thats what he meant by 10k+
 
@Xeo TIL I really didn't know your real name. And yes I was aware that you proposed something in the field. I never saw the actual title so I had just "sniffed" that it was right up your alley from the 3 sentences that I read :)
 
user142019
4:55 PM
Hurray, my SQL code works!
 
user142019
At least, I think it does.
 
@Zoidberg : You learnt SQL now?
 
user142019
Not now, silly. :P
 
user142019
But I learnt about STABLE and RETURNS NULL ON NULL INPUT today! :P
 
@Zoidberg Wow. Zoid used a smiley. I'm so proud of you Zoidy! :P
 
4:57 PM
 
user142019
def self.show(app, id)
    project = app.db[%q{SELECT "Name" FROM "FindProjectByIdAndMemberId"(?, ?);}, id, app.session[:user_id]].single_record
    raise Sinatra::NotFound unless project
    app.haml :'projects/show', locals: { project: project }
end
 
user142019
^ Ruby is the greatest language ever.
 
heck no
Python deserves that spot.
 
user142019
Actually, Haskell does.
 
Python + Django = Pure Bliss! :D
Nah
 
4:58 PM
SNUSP does.
 
Haskell is not general purpose
 
user142019
INTERCAL
 
user142019
@GamesBrainiac wat
 
@Morwenn : Wtf is that?
 
haskell is so great that nobody write in it
 
4:59 PM
@GamesBrainiac 2D brainfuck with some more instructions.
 
@Morwenn My brain just got fucked right now.
 
user142019
@Abyx Indeed, that's one strong point. Not too many morons who don't know what they're doing = good.
 
Hello, Cruel World
 
user142019
Beat that, PHP and C++!
 

« first day (918 days earlier)      last day (4039 days later) »